Answer» I have a question related to granting permissions.
I have created a directory tree, 3 levels and have GRANTED the required permissions to each directory. However when I create a file in them, the file does not inherit the permissons and I am having to manually set them for each new file which is time consuming.
I an using 'chmod' to set the permissions.
How can I set the permissions for the FIRST parent directory and have all lower level directories and files (existing and any new files, directories) have the same permissions ?
Is this even possible ? I have reviewed the chmod -R option but I'm not SURE if indicating recursive is what I should be using....use "chmod -R 777 parentDirName"Thanks for your reply.. I ran the cmd per your instructions and all child directoires / files did have the permissions applied to them. However, I created a new file in one of the directories and it still did not ASSUME the same permissions as the parent directory...I had to rerun the cmd to set the permissions.Quote from: BRIANH on JULY 13, 2010, 03:08:19 PM .... I created a new file in one of the directories and it still did not assume the same permissions as the parent directory...I had to rerun the cmd to set the permissions.
I'm not the best one to try to explain it, but until someone comes along that can - this might be some useful background reading material for you. I suspect that somebody here will be telling you to use the command at this link. http://ss64.com/bash/umask.html
I hope that helps.
|