What are the correct permissions for /etc/init.d/ scripts?

31,619

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

So:

chmod 0755 <file>
Share:
31,619

Related videos on Youtube

davidmytton
Author by

davidmytton

Updated on September 17, 2022

Comments

  • davidmytton
    davidmytton over 1 year

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

  • Kyle Brandt
    Kyle Brandt almost 15 years
    Why 0644 to set 755 ... ?
  • kobrien
    kobrien almost 15 years
    Indeed, should be chmod 0755 <file>
  • Kyle Brandt
    Kyle Brandt almost 15 years
    Updated, he can change back if he wants :-)
  • Marcin
    Marcin almost 15 years
    Why do regular users need to see where all the configs and other system-only stuff is? I set it all to 0700
  • LapTop006
    LapTop006 almost 15 years
    Clearly because I can't type ;-P As for using 0700, you can, I don't see the point, almost all of the scripts on a machine will come from a vendor so it's easy to get a copy if you want.
  • Kzqai
    Kzqai almost 11 years
    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?
  • deed02392
    deed02392 about 6 years
    What about file ownership? Any references to manpages?