Operating System - HP-UX
1836380 Members
2455 Online
110100 Solutions
New Discussion

HP-UX: AUTH-root, pwd-/, 'chmod 777 *' execution!!

 
SOLVED
Go to solution
민제식
Occasional Contributor

HP-UX: AUTH-root, pwd-/, 'chmod 777 *' execution!!

Server : HP-UX
root authority,
directory : / (root),
execution : 'chmod 777 *'

how restore??
help~
3 REPLIES 3
RAC_1
Honored Contributor
Solution

Re: HP-UX: AUTH-root, pwd-/, 'chmod 777 *' execution!!

From backup. Restore backups to alternate location. Check what are the perms. and script will do that.
There is no substitute to HARDWORK
Cheryl Griffin
Honored Contributor

Re: HP-UX: AUTH-root, pwd-/, 'chmod 777 *' execution!!

# swverify -v -x fix=true \*

From the man page at http://docs.hp.com/en/B2355-90692/swverify.1M.html

fix=false If true, runs vendor-specific scripts to correct and report problems on installed software. Fix scripts can create missing directories, correct file modifications, (mode, owner, group, major, minor), and recreate symbolic links. If false, fix scripts are not run.
"Downtime is a Crime."
Matti_Kurkela
Honored Contributor

Re: HP-UX: AUTH-root, pwd-/, 'chmod 777 *' execution!!

If the command was EXACTLY "chmod 777 *", it might not be that big a problem: you just need to check the permissions of every file and directory at the root level. Everything that is located inside sub-directories should be OK.

If you keep your root directory clean, the command
chmod 555 /dev /etc /home /net /opt /sbin /stand /usr /var
should fix most of the damage.

Check also the permissions of the directories /usr/bin and /usr/lib, because /bin and /lib are symbolic links pointing there.

But if the command was "chmod -R 777 *", you need to fix the permissions of all the files in the system. Restoring from backup might be less painful.
MK