How to restore chmod exicutable permission

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";' 


Popular posts from this blog

Another instance of Certbot is already running - Solved - Linux guru

Install Apache Using Ansible Playbooks

Setup password less SSH on linux

Create aws s3 bucket using cli

Secure nginx with Let's Encrypt on Ubuntu 18.04