15

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

17

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

So:

chmod 0755 <file>
| 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
  • 1
    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
  • 6
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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