- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reset owner of system files
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
10-07-2003 06:06 PM
10-07-2003 06:06 PM
We do have a similar system where we may check what the correct ownership should be.
Espen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 06:36 PM
10-07-2003 06:36 PM
Re: reset owner of system files
find / -xdev -print -exec mgstat -o name {} \; > /filelist
This will create a file (/filelist) that should contain every file and the owner. Then copy this file to your other server and do.
cat filelist | perl -n -e "$name=$_;$file=<>;`chown $name $file`;"
I would test this with a simple filelist first if I were you. IT works for me though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 06:41 PM
10-07-2003 06:41 PM
Re: reset owner of system files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 07:23 PM
10-07-2003 07:23 PM
SolutionOn the "good" system:
--
find / -type f -exec ls -ld {} \; 2>/dev/null|awk '{printf ("chown %s:%s %s\n", $3, $4, $NF)}' >/tmp/fixperms.sh
--
ftp /tmp/fixperms.sh to the bad system, and run it as root.
--
Then take away root access from your DBA.
In fact do that first.
He doesn't need it.
I am a DBA (ex unix admin) and haven't had a root password for years...
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 09:25 PM
10-07-2003 09:25 PM