- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Fixing permissions
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
04-16-2002 06:07 AM
04-16-2002 06:07 AM
chown -R bogus:bogus * from the Root directory on our N-Class server..
What a night.
We restored from tape however directories and many files still show incorrect permissions.. Does anyone here have any pearls of wisdom short of handing out resumes that might aid us in the recover process?
Constructive input is great appreciated..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:11 AM
04-16-2002 06:11 AM
Re: Fixing permissions
Good luck
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:15 AM
04-16-2002 06:15 AM
Re: Fixing permissions
Plan B: If you have a similar known good system, you could do a find scan on the filesystems and create a file listing filename, owner, group, and permissions and use that to feed a script on your bad system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:16 AM
04-16-2002 06:16 AM
Re: Fixing permissions
Otherwise, you'll have to find a working system, do something like:
find / -exec ls -ld {} \; | awk '{print $1,$9}' > permissionslist.txt
to get all the file permissions, then write a script to parse this file on the broke machine and set permissions accordingly. Something using cut -c...
A very slow way, but it should work...
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:16 AM
04-16-2002 06:16 AM
Re: Fixing permissions
What kind of backup did you restore from? Some backup's allow you to overwrite the existing ownerships with what is on tape. Another way is to create an INDEX of what is on tape and what the ownerships WERE, then write a script to "restore" those ownerships. Of course you did give that person that changed them a good caning?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:17 AM
04-16-2002 06:17 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa7ef6c96588ad4118fef0090279cd0f9,00.html
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:19 AM
04-16-2002 06:19 AM
Re: Fixing permissions
Andreas Voss once wrote a script to fix this very kind of problem:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa7ef6c96588ad4118fef0090279cd0f9,00.html
Otherwise, if you are on 11.x, have a look at the 'check_patches' utility (see the man pages).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:19 AM
04-16-2002 06:19 AM
Re: Fixing permissions
We are able to get in a do things now but many subsystems ie printing etc, are still not working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:22 AM
04-16-2002 06:22 AM
Re: Fixing permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:29 AM
04-16-2002 06:29 AM
Re: Fixing permissions
Great topic:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html
Great help in finding them:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1e6f84534efbd5118ff40090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:37 AM
04-16-2002 06:37 AM
Re: Fixing permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:43 AM
04-16-2002 06:43 AM
Re: Fixing permissions
For users files you must write a script that read you backup tape ( only listing), and run chown for each file....
If you use tar:
tar tvf /dev/rmt/xxx > /tmp/list.1
and then awk'd list.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 06:53 AM
04-16-2002 06:53 AM
Re: Fixing permissions
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 07:08 AM
04-16-2002 07:08 AM
Re: Fixing permissions
is there a quick fix to reactivate accounts globally?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 07:13 AM
04-16-2002 07:13 AM
Re: Fixing permissions
You need to open a new thread for a new question.
Also, you need to score ALL responses with something, even if that's an "N/A", although based on virtually every response thus far in this thread you have received a great out-pouring of help.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 01:28 AM
08-15-2005 01:28 AM