- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- List Users who access a file
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
05-28-2010 10:57 PM
05-28-2010 10:57 PM
List Users who access a file
please help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2010 11:20 PM
05-28-2010 11:20 PM
Re: List Users who access a file
why do you need to know that.
Please provide more data in detail.
Btw, to see if a file aceess by user use:
# fuser filename
The pid will be listed.
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2010 01:11 AM
05-29-2010 01:11 AM
Re: List Users who access a file
>>How can I know the Users who access a file for last 30 days
Its impossible task to know who access a file how many times.
"fuser" can tell the current status of that file who is using......
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2010 01:18 AM
05-29-2010 01:18 AM
Re: List Users who access a file
#grep -i
But who access the files ..no idea.!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2010 05:54 AM
05-29-2010 05:54 AM
Re: List Users who access a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2010 05:34 PM
05-29-2010 05:34 PM
Re: List Users who access a file
at docs.hp.com there is a document on auditing. You can audit specific users or system calls. In order to do this you will need to audit system calls.
Just thought of another ides. You could use IDS9000. IDS 9000 is a intrusion detection software but it has kernel templates that allow you to watch access or creation of files. You would have to custimize the paramaters for the template for that specific file.
IDS9000 has its own documentation and is available for multiple HPUX releases.
Your question did not clarify whether this is a request for past access or future access. I hope thse suggestions help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2010 08:56 PM
05-29-2010 08:56 PM
Re: List Users who access a file
To figure out, who performed any action, most of which may require root-permissions, you have to look at the information, stored in /etc/wtmp . You may access these with command "last" or, getting some additional information, by executing:
#cat /etc/wtmp
#tail -1000 > /etc/wtmp.txt
#vi /etc/wtmp.txt
http://docs.hp.com/en/5991-8678/ch06s03.html
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2010 10:39 AM
05-30-2010 10:39 AM
Re: List Users who access a file
You probably mean:
tail -1000 /var/adm/wtmps > /etc/wtmp.txt
But this would have lots of binary data in it. So it is just easier to use last(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2010 11:01 AM
05-30-2010 11:01 AM
Re: List Users who access a file
>Taifur: getting some additional information, by executing:
...instead of 'last()', a more parsable (and more information-rich) format is to do:
# /usr/sbin/acct/fwtmp -X < /var/adm/wtmps > /tmp/wtmps
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2010 07:25 PM
05-30-2010 07:25 PM
Re: List Users who access a file
Iam having HP RP5470 with
HP-UX unix B.11.11 U 9000/800 1126454616 unlimited-user license
We having Oracle 10g.