Server Fault is a question and answer site for system and network administrators. 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

What are the correct permissions for /etc/init.d/ scripts and what chmod options sets them?

share|improve this question
up vote 12 down vote accepted

The common set is simply 755 even though only root should be running them.


chmod 0755 <file>
share|improve this answer
Why 0644 to set 755 ... ? – Kyle Brandt Aug 3 '09 at 11:33
Indeed, should be chmod 0755 <file> – DavidM Aug 3 '09 at 12:02
Updated, he can change back if he wants :-) – Kyle Brandt Aug 3 '09 at 12:04
Why do regular users need to see where all the configs and other system-only stuff is? I set it all to 0700 – Marcin Aug 3 '09 at 12:35
This is giving execute permissions to world (what?) and group (ok, sure). Why would that ever be a good thing, or necessary in this case? – Kzqai Jul 11 '13 at 22:36

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.