Solved Make command survive reboot

Hi,

Could someone please tell me if the following command will persist at reboot?
Or do I need to add them into a file somewhere?
chmod o= /etc/fstab
chmod o= /etc/ftpusers
chmod o= /etc/group
chmod o= /etc/hosts
chmod o= /etc/hosts.allow
chmod o= /etc/hosts.equiv
chmod o= /etc/hosts.lpd
chmod o= /etc/inetd.conf
chmod o= /etc/login.access
chmod o= /etc/login.conf
chmod o= /etc/newsyslog.conf
chmod o= /etc/rc.conf
chmod o= /etc/ssh/sshd_config
chmod o= /etc/sysctl.conf
chmod o= /etc/syslog.conf
chmod o= /etc/ttys
and
sysctl -w net.inet.icmp.bmcastecho=0
sysctl -w net.inet.ip.redirect=0
sysctl -w net.inet.ip6.redirect=0
sysctl -w net.inet.icmp.maskrepl=0
sysctl -w net.inet.ip.sourceroute=0
sysctl -w net.inet.ip.accept_sourceroute=0

Thank you
 
The chmod(1) command will change file mode persistently. Only running some another command during system start-up may check and change this mode. I am not aware of any such command/procedure.

The sysctl values have to be entered in the /etc/sysctl.conf file to be set up again after reboot, see sysctl.conf(5).
 
Last edited by a moderator:
Back
Top