Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my shell script I have to access all the log files in the directory. I have set chmod -R 777 to the directory. From this all the log files that are currently available in this directory are set with read,write and execute permissions. Is there anyway I can give the same permissions to the log files generated later, after the permissions has been set.

share|improve this question
This may help.… – NeonGlow Feb 27 '13 at 11:16
@ NeonGlow chmod -R is the one I have used for that directory. – Rudra Feb 27 '13 at 11:19
I think, that question @ SO has the same requirement as yours. It says If I create a new folder or file the chmod of that should be also 755. If the answers there are correct then it should work. Anyway I didn't check it for myself. – NeonGlow Feb 27 '13 at 11:22
@NeonGlow no it is not happening... – Rudra Feb 27 '13 at 11:25
Sorry for false information. Hope this will be useful.… – NeonGlow Feb 27 '13 at 11:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.