I have made the permission of chmod command to 000 for security ( as chmod 000 /bin/chmod), but now how can I recover it ?
================
1) cd /bin
cp -v tar chmod_new
cp -v chmod chmod_new
mv chmod_new chmod
2) Recover with rpm command
[root@vps-1088274-8001 ~]# rpm -qf /bin/chmod
coreutils-5.97-34.el5
[root@vps-1088274-8001 ~]#
=================
================
1) cd /bin
cp -v tar chmod_new
cp -v chmod chmod_new
mv chmod_new chmod
2) Recover with rpm command
[root@vps-1088274-8001 ~]# rpm -qf /bin/chmod
coreutils-5.97-34.el5
[root@vps-1088274-8001 ~]#
=================
Comments
Post a Comment