- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Check Users's command and time(ip)
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
Discussions
Discussions
Forums
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
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-04-2005 02:32 PM
тАО08-04-2005 02:32 PM
in history file(.sh_history)
Because I'd like to check
multiple users's action and time(ip).
If it is not possible
let me know another method.
shell is O.K.
thanks~
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 07:55 PM
тАО08-04-2005 07:55 PM
Re: Check Users's command and time(ip)
HISTFILE=/tmp/`who -u am i|awk '{ print $1"_"$8"_"$2 }'|sed 's/\///g'`.hist
So you will get, for each user that logs in the server, separate history files under /tmp
( foe example: /tmp/root_10.115.0.3_pts0.hist )
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:08 PM
тАО08-04-2005 08:08 PM
Re: Check Users's command and time(ip)
You will have importatn additional security features such as auditing or access restrictions (terminal, time and serial) you could use.
RGDS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:13 PM
тАО08-04-2005 08:13 PM
Re: Check Users's command and time(ip)
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:19 PM
тАО08-04-2005 08:19 PM
Re: Check Users's command and time(ip)
this is an integration fo my previous reply:
don't forget the following line at the end of .profile:
export HISTFILE
Regards,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:23 PM
тАО08-04-2005 08:23 PM
Solutionyou can start new history file every IP-Address with time details as,
-- /etc/profile --
$HISTFILE=/var/history/.sh_history_$(who -mu | awk '{ print $NF }'
echo "$LOGNAME is logged @ $(date +'%d_%m_%y')"
---
It will create HISTFILE for every IP-Address and update time of starting session in the history file.
hth.