chmod -R 777 /. - RHEL 5.5

Posted by user1263746 on Server Fault See other posts from Server Fault or by user1263746
Published on 2012-06-29T07:26:18Z Indexed on 2012/06/29 9:17 UTC
Read the original article Hit count: 307

A shell script testing went bad and it issued

chmod -R 777 /.

to the system, instead of

chmod -R 777 ./

and as expected it wiped the critical meta data. We have turned off the system and it will not function properly the next time it is turned on.

I am told that

rpm --setperms -a 

rpm --setugids -a

should atleast fix the permission of the packages maintained by rpm. Is it worth doing?

And is there any script available which will copy the permission from an identical system? To atleast get the box working. The Box is running RHEL5.5

Thanks!

© Server Fault or respective owner

Related posts about rhel5

Related posts about file-permissions