- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- File permission tracking
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-30-2009 08:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-30-2009 08:27 AM
03-30-2009 08:27 AM
Re: File permission tracking
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-30-2009 08:37 AM
03-30-2009 08:37 AM
Re: File permission tracking
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 :)
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP