- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Checking File 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
03-25-2002 09:20 PM
03-25-2002 09:20 PM
I require the solution for the mentioned query asap:
Scenario: User "a" modified the file permissions of "xxx" file. How user "b" can identify who has modified the "xxx" file?
Hope to find the solution from the expert brains.
Regards,
Sanjay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 09:29 PM
03-25-2002 09:29 PM
SolutionIf that file was properly secured only the root and the owner of the file can do it.
If that file "xxx" had write permission for the group members any body from that group might have done it.
If it had write permission for the others any body can change the permission on it.
But there is no way to find who has changed the permission of a file to it's present state.
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 09:34 PM
03-25-2002 09:34 PM
Re: Checking File Permissions
might be out of luck. Do have system accounting or auditing running?
Solutions:
If the file was owned by 'root' change the root
password.
Implement 'sudo'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 09:37 PM
03-25-2002 09:37 PM
Re: Checking File Permissions
do an ll on the file, when was it changed ?
do a last | more to see who was logged when the file was modified
if you have any idea who may have changed it you could check there .sh_history in there home directory, you will be able to see their last commands
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2002 11:00 PM
03-25-2002 11:00 PM
Re: Checking File Permissions
as far as i know there is no information stored in the inode who changed the filepermissions. So there is no way to check this afterwards.
The only thing i can think of is some kind of auditing. This already helped me a lot on a Novell Server. But i don't have experience with the auditing that comes with HP-UX.
Hope this helps
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 02:40 AM
03-26-2002 02:40 AM
Re: Checking File Permissions
Just tested it out, and even though my test file has 777 permissions, a different user cannot chmod it. Does the permission on the directory holding the file have anything to do with this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 02:54 AM
03-26-2002 02:54 AM
Re: Checking File Permissions
I agree absolutely!
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 08:38 AM
03-26-2002 08:38 AM
Re: Checking File Permissions
One can change the file permissions if
1. He is a root user.
2. If the user is belongs to group membership of that file.
3. Owner of that file.
If you want to find out who changed the file permissions, just keep focus on group members of that file. Then examine the .sh_history fiel and you will come to kno who changed the file permissions.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 09:03 AM
03-26-2002 09:03 AM
Re: Checking File Permissions
if the directory that holds the file has the write bit set for user or group of user who wants to modify the file, and has not set the sticky bit, then this person could replace the file with a namesake file of his own with other permission bits.
Thus, he indeed can indirectly chmod of a file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 07:33 PM
04-29-2003 07:33 PM
Re: Checking File Permissions
Thanks for your response and sorry for the delay in assigning points.
Yes, the issue was resolved after using the "scmd" command. Worthwile trying it.