16

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

1 Answer 1

17

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

So:

chmod 0755 <file>
7
  • Why 0644 to set 755 ... ? Commented Aug 3, 2009 at 11:33
  • Indeed, should be chmod 0755 <file>
    – DavidM
    Commented Aug 3, 2009 at 12:02
  • Updated, he can change back if he wants :-) Commented Aug 3, 2009 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
    Commented Aug 3, 2009 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
    Commented Jul 11, 2013 at 22:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .