Computing.Net > Forums > Unix > Login History command (shell script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Login History command (shell script

Reply to Message Icon

Name: Ray
Date: May 15, 2003 at 09:33:38 Pacific
OS: Unix
CPU/Ram: na
Comment:

Hi,

If i have a user name (not user id) can i see his/her login entries for the past 6 months?... is there a command for this, or is this much information available?

Basically i have a text file with a list of names in. I have to search the login history of the system against the names in this file.

The complicated bit is that the user of this shell script has to enter a date and time, and then the script has to to check against this tade and time, to see if the users in the text file list where logged in at that time. If they where not logged in then their name, id, and any other details availale should be compiled in a seperate text file?.....

Is this possible? bit of a tricky on for me!

Many thanks

Ray



Sponsored Link
Ads by Google

Response Number 1
Name: Jimbo
Date: May 16, 2003 at 01:28:21 Pacific
Reply:

You can start by seeing if you have the 'last' command available.

last USERNAME

shows the logins on the system since the
/var/adm/wtmpx file was created.

This works on Solaris.
-jim


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Login History command (shell script

ftp shell script skip login www.computing.net/answers/unix/ftp-shell-script-skip-login/4887.html

Unix SHELL SCRIPTS www.computing.net/answers/unix/unix-shell-scripts/4885.html

a simple shell script question www.computing.net/answers/unix/a-simple-shell-script-question/1832.html