- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Looking for a use log 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
02-06-2002 10:49 PM
02-06-2002 10:49 PM
Looking for a use log file
Could you tell me which log file can show their login status? I want to delete some inactive users according the log file. Thanks a lot!
Regards
ajk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 11:08 PM
02-06-2002 11:08 PM
Re: Looking for a use log file
you can create an ascii log file with:
last >
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 11:11 PM
02-06-2002 11:11 PM
Re: Looking for a use log file
There is /var/adm/wtmp and /var/adm/btmp which can be viewed with last and lastb (see "man last").
And there is who -a.
Hardy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 11:20 PM
02-06-2002 11:20 PM
Re: Looking for a use log file
Use w,last and lastb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 11:58 PM
02-06-2002 11:58 PM
Re: Looking for a use log file
Try
#who -uH
look for idle time column.
Another command is finger
#finger username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 12:08 AM
02-07-2002 12:08 AM
Re: Looking for a use log file
The ksh and sh have an option to timeout the users after an idle period expressed in seconds.
This can be set in the profile of the user.
man page of posix gives
TMOUT If set to a value greater than zero, the shell will
terminate if a command is not entered within the
prescribed number of seconds after issuing the PS1
prompt. (Note that the shell can be compiled with a
maximum bound for this value which cannot be exceeded.)
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 02:16 AM
02-07-2002 02:16 AM
Re: Looking for a use log file
This will look for all users that have been idle for over two hours and zap them.
Use grep -v
[2-9] in the script = two - nine hours, so [1-9] will zap users over one hours idle.
who -u | egrep " [2-9]:" | grep -v root | awk '{print $7}' | xargs kill
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 03:07 AM
02-07-2002 03:07 AM
Re: Looking for a use log file
you can solve your problems by setting the TMOUT variable for each user:
in $HOME/.profile make the following entry
TMOUT=3600
this makes a shell killing itself, if there was no action by the user for a period of an hour ( 3600 seconds... ). If they use CDE, please look into $HOME/.dtprofile and take care of the following variable at the end of the script:
DTSOURCEPROFILE=true
It has to be uncommented. ( Remove the # )
Allways stay on the bright side of life!
Peter