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>
Related videos on Youtube
Author by
davidmytton
Updated on September 17, 2022Comments
-
davidmytton over 1 year
What are the correct permissions for /etc/init.d/ scripts and what chmod options sets them?
-
Kyle Brandt almost 15 yearsWhy 0644 to set 755 ... ?
-
kobrien almost 15 yearsIndeed, should be chmod 0755 <file>
-
Kyle Brandt almost 15 yearsUpdated, he can change back if he wants :-)
-
Marcin almost 15 yearsWhy do regular users need to see where all the configs and other system-only stuff is? I set it all to 0700
-
LapTop006 almost 15 yearsClearly 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 almost 11 yearsThis 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 about 6 yearsWhat about file ownership? Any references to manpages?