- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: processes accessing a file
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
10-12-2010 05:04 AM
10-12-2010 05:04 AM
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-12-2010 05:18 AM
10-12-2010 05:18 AM
Solutionlsof will be your friend . You should be dowlaod a depot at http://hpux.connect.org.uk/
Regards ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-12-2010 05:24 AM
10-12-2010 05:24 AM
Re: processes accessing a file
fuser and lsof come to mind.
fuser -u yourfilehere
lsof yourfilehere
Note that lsof is not part of a standard HP-UX install and must be installed separately.
See the fuser and lsof (if installed) man pages for more information.
>>what kind of access they have (read/write, etc)
You would have to see what user started the process that is accessing the file, see what groups that user is a member of and then look at the permissions on the file to determine what can be done.
For example, if the user 'fido' is accessing file /a/b/c/file1 and fido is part of groups grp1 and grp3. Do an 'ls -l' on /a/b/c/file1 and look at the permissions.
Say file1 is:
-rwxrwxr-x 1 user1 grp3 123456 Oct 12 08:03 file1
The file is owned by user1 (who has read, write and exec permission) and the group is grp3 (which also has rwx permission). Since 'fido' is a member of grp3 it can read, write and execute the file.
>>can more than one process access a file?
Absolutely!!!!!! It would be hard to be a multi-user operating without that capability!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-12-2010 06:09 AM
10-12-2010 06:09 AM
Re: processes accessing a file
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP