chmod directory write permission
I have a directory that needs write permission to a specific file.
What would be the proper chmod syntax to do so Lets say the folder I want to have writer permissions is "joe" and the file that the joe folder needs to write to is "homework.conf" current user |
Sounds like a homework question.
|
To the OriginaL Poster:
I'm assuming that you are either the owner or a member of the group for that directory. To see who the owner and the group is for that directory, cd into the directory that holds that directory and do a Code:
ls -l directory Code:
ls -l directory rwxrwxrwx, some will be blank '-' meaning that that permission is not turned on. The first set of rwx is for the user, the second for the group and the third for everybody else. So if you are the owner make sure that you have a 'w' in the first set of permissions. If you are in the group then make sure you have a 'w' in the 2nd set of permissions. If you are not part of the group and are not the owner then you need a 'w' on the 3rd set of permissions. To be able to set permissions on a file you need to be the owner of that file. So let's say you are the owner of the file and the first set of permissions is missing the 'w' then do a Code:
chmod u+w filename |
Typos: the first ls -l directory should be ls -ld directory and the second should be ls -l
|
All times are GMT -5. The time now is 07:44 AM. |