How to restore chmod exicutable permission

Spread the love
If a careless sysadmin executes this command on your linux server   chmod 444 /bin/chmod – what do you do to fix this?

Solution !

This command  will fix it if you are root user, Most unix and linux based OS’s have perl installed and available by default.

#perl -e 'chmod 0755, "/bin/chmod";' 
See also  How to increase swap size in linux

Leave a Comment