Friday, August 4, 2017

How to restore chmod exicutable permission

If a careless sysadmin executes this command  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";' 
 

No comments:

Post a Comment

How to Install docker-compose CentOS7

 Install Docker-compose on CentOs7 Linux. yum install -y epel-release yum install -y python-pip pip install --upgrade pip pip install ...