- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- knowing directory and file access
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
08-18-2005 07:30 PM
08-18-2005 07:30 PM
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:58 PM
08-18-2005 07:58 PM
Re: knowing directory and file access
The only thing you can know is when the file or directory were last modified with "ll" command.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:04 PM
08-18-2005 08:04 PM
Re: knowing directory and file access
There is an audit funconality that can be turnrd on and monitor user activity but I am not sure if that is exact what you want.
You can find information with "man 5 audit".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:14 PM
08-18-2005 08:14 PM
Re: knowing directory and file access
http://www.cert.org/security-improvement/implementations/i042.05.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:20 PM
08-18-2005 08:20 PM
Re: knowing directory and file access
You can also use "last -R" to see what all users connected to system in past and then may be you can go thr' suspected users shell history i.e. .sh_history or .bash_history files in thier home directory.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:23 PM
08-18-2005 08:23 PM
Re: knowing directory and file access
Also see this interesting link below:
http://docs.hp.com/en/B2355-90121/ch01s05.html?btnNext=next%A0%BB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2005 08:28 PM
08-20-2005 08:28 PM
Re: knowing directory and file access
#last -R can provide the subject information, but use of Auditinf feature in a trusted system environment is the best option
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2005 04:36 AM
08-21-2005 04:36 AM
Re: knowing directory and file access
for getting the information of system events use audisp command. Description as follows.
#audisp -u username -e eventname -t start time -s stop time
Supported events are admin, close, create,delete, ipcclose, ipccreat, ipcdgram, ipcopen,login,modaccess, moddac, open, process, readdac, removable,uevent1, uevent2, and uevent3
for example
#audisp -u robert -e delete -t 0101000005 -s 0130002205
the above would give you the delete operations performed by the user robert in between 2005 ,Jan-1 00:00am to Jan-30 10pm
For a better understanding about events see the man page of audevent.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2005 08:03 AM
08-21-2005 08:03 AM
Re: knowing directory and file access
Is there a command to find out whether auditing has been enanbled on a system ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2005 08:35 AM
08-21-2005 08:35 AM
SolutionIt will report the current state.
It is easier to use SAM to setup auditing since there are so many choices for audited events. Note also that on a busy system, the auditing logfiles will grow very rapidly. Note also that the default location for the logfiles is /.sedure which is the root filesystem--a very bad location for logfiles. Change the default directory to something like /var/adm.
And note that you cannot restrict the logs to a specific set of users--all users will be logged. If what you are trying to accomplish is to find a user that is exceeding their authority or skill, start looking at the user's shell history file, .sh_history
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2005 04:38 PM
08-21-2005 04:38 PM
Re: knowing directory and file access
if you dont' have it, you will get the following message:
# audsys
cannot open and lock /.secure/etc/audnames;
verify that the auditing system has been installed properly,
and the /.secure/etc directory exists, prior to running this command
#
btw, why would you be willing to know that?
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2005 05:26 PM
08-21-2005 05:26 PM
Re: knowing directory and file access
--- /etc/profile --
export HISTFILE=/var/history/.sh_history.${USER}
export HISTSIZE=2000
set -o $EDITOR
echo "Login @ `date`" >> ${HISTFILE}
You can audit this file for file access.
Using auditing also, you can do it. To check audit enablment,
1. go to sam -> Auditing and security --> Audited user -->
It will prompt for a window which asks input to convert machine with auditing. Else it will not prompt.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 04:13 PM
09-02-2005 04:13 PM
Re: knowing directory and file access
Sorry to reply.
#audsys will give you the information.
eg:-
#audsys
auditing system is currently off
current file: /.secure/etc/audfile2
next file: none
statistics- afs Kb used Kb avail % fs Kb used Kb avail %
current file: 1000 656 35 409600 362199 12
next file: none
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 04:14 PM
09-02-2005 04:14 PM