Running into a strange issue - I have 700
file permissions on the current directory, and I am able to create and remove files (which get created with 600
), however whenever I try to read or edit the file I get a permissions denied/read only. When I change the file specifically to 604
, I am able to read and write the file. I've confirmed that the full path to the directory has proper permissions as well.
Example below:
mike@desktop:~/testdir$ ls -alh
total 8.0K
drwx------ 2 mike domain users 4.0K Dec 22 12:20 .
drwx------ 19 mike domain users 4.0K Dec 22 12:20 ..
mike@desktop:~/testdir$ touch test.txt
mike@desktop:~/testdir$ cat test.txt
cat: test.txt: Operation not permitted
mike@desktop:~/testdir$ ls -alh
total 8.0K
drwx------ 2 mike domain users 4.0K Dec 22 12:21 .
drwx------ 19 mike domain users 4.0K Dec 22 12:20 ..
-rw------- 1 mike domain users 0 Dec 22 12:21 test.txt
mike@desktop:~/testdir$ vim test.txt (got read only error message when saving)
mike@desktop:~/testdir$ ls -alh
total 8.0K
drwx------ 2 mike domain users 4.0K Dec 22 12:21 .
drwx------ 19 mike domain users 4.0K Dec 22 12:21 ..
-rw------- 1 mike domain users 0 Dec 22 12:21 test.txt
mike@desktop:~/testdir$ chmod 604 test.txt
mike@desktop:~/testdir$ vim test.txt
mike@desktop:~/testdir$ ls -alh
total 8.0K
drwx------ 2 mike domain users 4.0K Dec 22 12:21 .
drwx------ 19 mike domain users 4.0K Dec 22 12:21 ..
-rw------- 1 mike domain users 0 Dec 22 12:21 4913
-rw----r-- 1 mike domain users 6 Dec 22 12:21 test.txt
-rw------- 1 mike domain users 0 Dec 22 12:21 .test.txt.swo
-rw------- 1 mike domain users 0 Dec 22 12:21 .test.txt.swp
mike@desktop:~/testdir$ cat test.txt
Hello
I can also mv
and rm
the file when it has 600
permissions.