drwxrwxrwx 10 user staff 340 Jul 12 21:49 .
drwxrwxrwx 4 user staff 136 Jul 12 21:49 ..
-rw-rw-rw- 1 user staff 6148 Feb 6 2011 .DS_Store
-r-xr--r-- 1 user staff 36232 Feb 5 2011 lorem_ipsum.txt
-rw-rw-rw- 1 user staff 55 Feb 5 2011 new_file.txt
-rw-rw-rw- 1 user staff 81 Feb 5 2011 newer_file.txt
-rw-rw-rw- 1 user staff 17 Feb 5 2011 overwrite_test2.txt
-r-xr-xr-x 1 user staff 0 Feb 10 2011 ownership.txt
-rw-rw-rw- 1 user staff 81 Feb 5 2011 short_file.txt
drwxrwxrwx 3 user staff 102 Feb 5 2011 test1
I am starting to learn some basics of using the Terminal /Unix and I am stuck on one particular thing. I understand that chmod is used to change permissions on different files and folders and that the syntax is "chmod mode filename". I have been able to mostly do what I want but for some reason on this lorem_ipsum.txt I cannot remove the execute (x) right from the group. I can add and remove others (R and W) but the execute command I cannot do anything with. other files (ownership.txt) seem to have a similar issue. However, other files such as new_file.txt I can move things as I want.
All files and folders are in my home directory
any ideas are welcome
Thanks
[doublepost=1469557122][/doublepost]so I was finally able to do it but I had to do the following
chmod =rw lorem_ipsum.txt
This alone does not make sense since I didnt specify a mode to change, only the permission.
What am i missing?
drwxrwxrwx 4 user staff 136 Jul 12 21:49 ..
-rw-rw-rw- 1 user staff 6148 Feb 6 2011 .DS_Store
-r-xr--r-- 1 user staff 36232 Feb 5 2011 lorem_ipsum.txt
-rw-rw-rw- 1 user staff 55 Feb 5 2011 new_file.txt
-rw-rw-rw- 1 user staff 81 Feb 5 2011 newer_file.txt
-rw-rw-rw- 1 user staff 17 Feb 5 2011 overwrite_test2.txt
-r-xr-xr-x 1 user staff 0 Feb 10 2011 ownership.txt
-rw-rw-rw- 1 user staff 81 Feb 5 2011 short_file.txt
drwxrwxrwx 3 user staff 102 Feb 5 2011 test1
I am starting to learn some basics of using the Terminal /Unix and I am stuck on one particular thing. I understand that chmod is used to change permissions on different files and folders and that the syntax is "chmod mode filename". I have been able to mostly do what I want but for some reason on this lorem_ipsum.txt I cannot remove the execute (x) right from the group. I can add and remove others (R and W) but the execute command I cannot do anything with. other files (ownership.txt) seem to have a similar issue. However, other files such as new_file.txt I can move things as I want.
All files and folders are in my home directory
any ideas are welcome
Thanks
[doublepost=1469557122][/doublepost]so I was finally able to do it but I had to do the following
chmod =rw lorem_ipsum.txt
This alone does not make sense since I didnt specify a mode to change, only the permission.
What am i missing?