- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File permission tracking
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
03-30-2009 07:58 AM
03-30-2009 07:58 AM
I have a set of directory trees with funky (i.e. customized to please certain apps) access permissions. The "problem" is that OS and App patches will sometimes reset file permissions, which results in App breakage.
What I'm looking for is a script or tool or idea I could code myself that would generate a list of file/permission pairs for a directory tree, allowing me to diff the results after a patch in order to restore the permissions the App needs to run.
Any ideas ?
Thanks !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2009 08:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2009 08:26 AM
03-30-2009 08:26 AM
Re: File permission tracking
Thanks James, this is exactly what I needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2009 08:27 AM
03-30-2009 08:27 AM
Re: File permission tracking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2009 08:33 AM
03-30-2009 08:33 AM
Re: File permission tracking
Ooops, I missed a "7".
# # perl -MFile::Find -le 'find(sub{printf "%04o %s\n",((stat)[2])&07777,$File::Find::name},@ARGV)' /path
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2009 08:37 AM
03-30-2009 08:37 AM
Re: File permission tracking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2009 08:28 PM
03-30-2009 08:28 PM
Re: File permission tracking
HP-UX patches shouldn't do this. Do you have an example permission change you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 06:10 AM
03-31-2009 06:10 AM
Re: File permission tracking
You are right the HP-UX patches do not directly cause this.
Here is a more precise description of what happens.
A proprietary App is installed on an HP-UX Box.
The App uses an Oracle 10gR2 DB, Oracle Application Server, Java, Oracle ProCOBOL and some straight COBOL through Microfocus.
Yeah, its a nightmare.
Some administratives instances in the company have insisted that the App's files, RDBMS files and OAS files belong to three separate users IDs.
The App manufacturer uses only one user ( the oracle user ) to drive everything.
This has led to security "compromises" in the form of loosening lib folder permissions both in OAS and RDBMS, crossed groups, context switching scripts and other nastiness.
When an HP-UX QPK is applied, standard procedure mandates that the Oracle binaries and libraries be relinked.
The Oracle relink scripts will reset library and binary file permissions to their correct, default values. THIS results in App breakage, in the described environment.
The HP-UX standard patch bundles are therefore not to blame, nor are the Oracle relink scripts.
The cause of all this wears a tie, sits in a closed office and does not know what "SMTP" means.
I hope this clears it up :)