- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Retrive the 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
Discussions
Discussions
Forums
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
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-07-2010 06:06 PM
тАО07-07-2010 06:06 PM
Is there any way to retive the old permissions of all the Files under /oracle_pub.
[xxtredg51:/]#chmod -R 755 /oracle_pub
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 06:12 PM
тАО07-07-2010 06:12 PM
Re: Retrive the permissions
are you asking or telling the answer.
well there is no way to recover the permission.
You can on the other hand fix the permission of root file system (almost all) with swverify.
There is nothing you can do to oracle_pub, other than restore or if you know the permission earlier.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 06:15 PM
тАО07-07-2010 06:15 PM
Re: Retrive the permissions
looking for some answers....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 06:54 PM
тАО07-07-2010 06:54 PM
Re: Retrive the permissions
If not, you could try restoring from your backup to a different directory, or different server, and then look at the files that were restored to see their ownership and permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 07:21 PM
тАО07-07-2010 07:21 PM
Re: Retrive the permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 08:34 PM
тАО07-07-2010 08:34 PM
Re: Retrive the permissions
there is no magic for the issue you have.
Second
the only way to have permission backup is run
ls -lRt /oracle_pub > your_backup
Third,
I hope I have not provided the answer again
so 0 point again :)
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 08:53 PM
тАО07-07-2010 08:53 PM
Solutionexecute this comand before the permission change
find /oracle_pub -exec ls -ld {} \; |awk '{print $1,$3,$4,$9}' >> /tmp/file_dir_permission
the above command will create a file named "file_dir_permission" on /tmp and the contents will look like below
-rw-r--r-- root sys /tmp/unzip-6.0-ia64-11.31.depot
drwxr-xr-x root sys /tmp/mars_backup
-rw------- hpsmdb users /tmp/.s.PGSQL.50006.lock
srwxrwxrwx hpsmdb users /tmp/.s.PGSQL.50006
-rw-r--r-- root sys /tmp/iSCSI-00_B.11.31.03_HP-UX_B.11.31_IA_PA.depot
Regards!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 09:23 PM
тАО07-07-2010 09:23 PM
Re: Retrive the permissions
-If you have previous output of the /oracle_pub directory ( like # find . -type f -exec ls -l {} \; > oracle_pub_orig_files.list ) , you can check and reset the permissions to it's original values.
- Also if you have backup (netbackup or Dataprotector backing up the data) you can restore it on a different directory and retrive the old permissions.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 09:50 PM
тАО07-07-2010 09:50 PM
Re: Retrive the permissions
You could use my scripts in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1215123
One will save the info and the other will restore them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2010 10:08 PM
тАО07-07-2010 10:08 PM