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

initlinuxstartup

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

Best Answer

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

So:

chmod 0755 <file>