System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to list default perms of system files

SOLVED
Go to solution
paul_xedos
Frequent Advisor

How to list default perms of system files

Hi,

A user has run "chmod -R 777 /" in order to 'tidy things up'. Is there a way of finding out the default perms of system files by means of the package database so that I can knock up a chmod script to revert things back?

Thanks
Paul
3 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to list default perms of system files

Hi:

You can attempt a full repair by doing (with patience):

# swverify -F \*

This will take some time, but should fix things. Then, break the user's fingers and/or at the least don't give him/her root access.

Regards!

...JRF...
P Muralidhar Kini
Honored Contributor

Re: How to list default perms of system files

Hi Paul,

Check the following link for more details about default premissions -
http://g4u0420c.houston.hp.com/en/A1700-90014/ch07s08.html
http://docs.hp.com/en/B2355-90672/ch12s06.html

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
paul_xedos
Frequent Advisor

Re: How to list default perms of system files

Chaps,

Thanks very much for your help. The swverify did the trick - or at least I think it is, as its still running but its looking good so far

Cheers
Paul