Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

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

So:

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
2  
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
show 1 more comment

Your Answer

 
discard

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.