07-01-2008
Why does "last" not work? Does it take endless time until it is done displaying the 2GB wtmp? Or does it bring an error?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to automatically logout from the system inactive users depending on their functions.
For example there are users that I would like to logout after 15 minutes of inactivity, but there are others that I would like to logout after 30 minutes of inactivity.
It's possible to do this??? (6 Replies)
Discussion started by: rrivas
6 Replies
2. Shell Programming and Scripting
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
Discussion started by: kungfuice
7 Replies
3. UNIX for Dummies Questions & Answers
Is this possible?
Say I create an account today and in 90 days I want it to be turned off.
Is this sort of thing possible using the built in components of a Unix system?
(Using Solaris 9)
I see things about password expires, but what if the person changes his password on the 89th day,... (1 Reply)
Discussion started by: LordJezo
1 Replies
4. Solaris
I need actuall script which List all inactive users who has not logged on since last 90 days
Thanks in advance.
Di! (17 Replies)
Discussion started by: haridham
17 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I'm trying to do a list of user that never connected to a couple of servers. I want to do a diff between the servers lists, and print out only the users that never has logged on each server. Here my first step :
SERVER01:
# finger `egrep -v -e "^\s*#" /etc/passwd | awk '{ print $1 }' |... (4 Replies)
Discussion started by: gogol_bordello
4 Replies
6. Programming
How can I get the list of logged in users in the system programmatically?
I can get the list with 'who' or 'users' commands but I need to get the list programmatically...
May someone help, please?
Thanks in advance. (2 Replies)
Discussion started by: xyzt
2 Replies
7. Shell Programming and Scripting
Hi,
How to find the users who did not login into a UNIX box (thru ssh/ftp or any other way) for last 90 days?
I think of using "finger" or "last" command to findout each user's last login and then find number of days between today and that day. Is there any other better way or anyone prepared... (1 Reply)
Discussion started by: reddyr
1 Replies
8. Shell Programming and Scripting
Hi everyone,
At work we were told to check the list of users of an application server and delete all those that have left the company or don't need access to the application anymore. Here's what I came up with. Would you be as kind as to tell me your opinion and whether there is a faster / easier... (4 Replies)
Discussion started by: gacanepa
4 Replies
9. Shell Programming and Scripting
Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:) (5 Replies)
Discussion started by: saloliubliu
5 Replies
10. Shell Programming and Scripting
Dear All,
I need your help in finding out users not logged in to linux system for more than 90 days. I found a script from our forum i am getting error while using that.
from the code i have debugged line by line to see where i am getting the problem. i found out the below line i am getting... (5 Replies)
Discussion started by: Sachinlinux
5 Replies
LEARN ABOUT DEBIAN
rawtmp
RAWTMP(1) General Commands Manual RAWTMP(1)
NAME
rawtmp - display wtmp entries in raw form.
SYNOPSIS
rawtmp [-da] [-w wtmp|-] [-X[3|4]d] [-s start] [-e end] [-b H:M:S] [--help] [--version]
DESCRIPTION
Rawtmp is a utility to dump the raw data in a wtmp or utmp file to the screen for viewing. It may be useful to anyone who wishes to divine
the nature of the data stored in the wtmp or utmp files. It may also be useful to extract special wtmp entries that are not documented
anywhere (like those netdate puts in the wtmp file).
If on a logout, when the username is encoded in the ut_user field by replacing the first character of the username with a null, rawtmp will
print the contents of the user field with a leading dot '.' to denote the null character. Only agetty and tacacs control software are cur-
rently known to use this logging method.
OPTIONS
Rawtmp understands the following command line switches:
--help Outputs a verbose usage listing.
--version
Displays the version of rawtmp.
-w wtmp
Select a different input file instead of the default (/var/log/wtmp).
-X[3] Read a wtmp file maintained by versions 3.3 or 3.4 Tacacs terminal server access control software.
-X4 Read a wtmp file maintained by version 4.0 of Tacacs terminal server access control software.
-d Output the time in MMM DD HH:MM:SS format instead of raw time for a more human readable form (and to actually know what day you're
looking at!).
-a Print the contents of the ut_addr field (in quad-dotted notation) instead of using the ut_host field. Note: ut_addr is almost never
used and more than likely contains garbage information.
-b hours[:minutes[:seconds]]
Consider only those utmp entries that fall within the last few hours/minutes/seconds from the current time, disregarding the rest.
-s start
Selects the starting date of the report, in mm/dd/yy format.
-e end Selects the ending date of the report, in mm/dd/yy format.
FILES
/var/log/wtmp login database.
AUTHOR
Steve Baker (ice@mama.indstate.edu)
BUGS
Could use some filtering options.
SEE ALSO
last(1), sac(8)
UNIX Manual RAWTMP(1)