- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I accidently recursively change ownership on /etc,...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 07:52 AM
07-02-2006 07:52 AM
I accidently recursively change ownership on /etc, /stand & /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 08:50 AM
07-02-2006 08:50 AM
Re: I accidently recursively change ownership on /etc, /stand & /opt
Most of the files are owned by root:sys, root:root or bin:bin.
The best way to restore it is ignite, anyway.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 09:06 AM
07-02-2006 09:06 AM
Re: I accidently recursively change ownership on /etc, /stand & /opt
The problem is since the ignite yesterday I've added lv's to vg00 and the other vg's. I've also made changes to other files. Anyway to pick and choose what I restore?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 01:01 PM
07-02-2006 01:01 PM
Re: I accidently recursively change ownership on /etc, /stand & /opt
Worst case scenario is you can get the original permissions from swverify (swverify check_permissions=true) and use the output to script something to set them back...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 02:04 PM
07-02-2006 02:04 PM
Re: I accidently recursively change ownership on /etc, /stand & /opt
This is probably a production machine so Ignite is your only choice simply due to the massive number of modified files. There are two classes of MOST DANGEROUS commands to use in Unix:
# rm,mv,cp -r without the -i option
and
# chown -R or chmod -R
Of course, find with -exec can be disastrous too.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 04:00 PM
07-02-2006 04:00 PM
Re: I accidently recursively change ownership on /etc, /stand & /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 08:21 PM
07-02-2006 08:21 PM
Re: I accidently recursively change ownership on /etc, /stand & /opt
As far as the pain index goes, if you have an Ignite or any system backup that includes the three directories, this is far less painful than trying to re-construct from sw-utils.
You might want to build a database of all the files on a similar system (assuming Ignite or backup does not exist) and then change permissions based on that.
Good system.
ls -alR /opt > file.opt
ls -alR /stand > file.stand
ls -alR /etc > file.etc
You can now read these neat little data files and change permission. This will almost certainly work on /etc/ and /stand
/opt will probably require some manual adjustments to work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 02:12 PM
07-03-2006 02:12 PM
Re: I accidently recursively change ownership on /etc, /stand & /opt
no parameters needed to look at all the HP software. It won't help with other applications that did not use swinstall.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 01:16 AM
07-04-2006 01:16 AM
Re: I accidently recursively change ownership on /etc, /stand & /opt
Run "swverify /*". When it completes (probably about 5-15 minutes depending on your system) it will output a swlog command that will allow you to manipulate the output for that particular job. Look for: "NOTE: More information may be found in the agent logfile using the command "swjob -a log
Using this swlog command: swjob -a log
Doesn't help you with the permissions for your applications, unless yo are lucky enough that they installed with sw-tools.
Good luck!