- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: visiting a directory
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
07-13-2005 01:59 PM
07-13-2005 01:59 PM
Is there a way to find out whether any particular user has read a file or visited a particular directory ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 02:08 PM
07-13-2005 02:08 PM
Re: visiting a directory
You can turn on the history for this purpose. Check the thread at this url below :
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=865864
Hope this can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 02:15 PM
07-13-2005 02:15 PM
Re: visiting a directory
This file exists in the user's home direcotry.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 03:58 PM
07-13-2005 03:58 PM
Re: visiting a directory
Add script log_file
at the end of .profile of all users.
Now whatever they will do will be recorded in it.
At the end you can do
grep Path_to_check log_file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 05:28 PM
07-13-2005 05:28 PM
Re: visiting a directory
First option is to turn on history
Second one is use auditing if your hpux OS environment is in Trusted (secured) mode then auditing feature will enable you to browse through system activities
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 06:24 PM
07-13-2005 06:24 PM
Re: visiting a directory
#!/bin/ksh
#!/bin/ksh
CD=/usr/bin/cd
(
printf "$(date) $LOGNAME OLDDIR=$PWD ";
${CD} $@
printf "NEWDIR=$PWD\n"
) >> /tmp/cdlog.$(date +'%b_%d_%y')
exit 0
# END #
Put this file in /usr/sbin/cd
# chmod 755 /usr/sbin/cd
# chown bin:bin /usr/sbin/cd
Put this in /etc/profile file.
# alias cd='/usr/sbin/cd'
You can see log files are created in /tmp/cdlog.
hth.