11-10-2008
get all user's login time
hi all, i need yor help!!!
i am a newbie in programming
i want to get user list and their login time...
i have search and learn about pswd and utmp, but i only can get usr list without their login time...
do you have an idea to solve my problem?
thanx
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have asked by our security team to implement an automatic time out for user logins after a specified time interval. I have never heard of this feature in Unix before.
Does anyone know of a way to accomplish this for HP-UX 11i? (2 Replies)
Discussion started by: keelba
2 Replies
2. Shell Programming and Scripting
Hi,
My requirement is that i am login from ROOT in a script but when any
command is coming which is logging to sqlplus then i have to run it with normal user as only normal user have permission to connect to sqlplus .
i tried making a script like this :
#! /bin/ksh
su -... (3 Replies)
Discussion started by: rawatds
3 Replies
3. Solaris
Hello World ~
HW : SUN Fire V240
OS : Solaris 8
Error message prompts 'rmclomv ... SC login failure ...' on terminal.
and
Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S)
The System is in normal operation, though
In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies
4. UNIX for Dummies Questions & Answers
How do I get the last login time of a particular user?:confused: (1 Reply)
Discussion started by: g.ashok
1 Replies
5. Solaris
My OS is Solaris 10, I would like to know if there is any way to restrict user login to the system (either remote or console login) after certain time, say 20:00 on Mon to Fri and whole day on SAT and SUN???
Sorry that I am a new user on Unix System.
Any comment is fully appreciated!!!
Alex (7 Replies)
Discussion started by: alessandro31
7 Replies
6. AIX
I want to set the "logintimes" variable for a user on a server who need access mornings and night how to I set the "logintimes" I want the user to log in from 08:00 to 12:00 and 17:00 to 21:00 is this possible? (1 Reply)
Discussion started by: daveisme
1 Replies
7. Shell Programming and Scripting
Hi Every body,
I would need a shell script program to login as different user and perform some copy commands in the script.
example: Supppose ora_toms is the active user
ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands
... (9 Replies)
Discussion started by: ujjwal27
9 Replies
8. AIX
I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs.
I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies
9. Shell Programming and Scripting
now i have logged in username : ramesh in unix
Now i have to created script file to login into another user and have run a command inside that user and after executing the command i have to exit from that user.
Inside script, i have to login into su - ram along with password : haihow and have to... (4 Replies)
Discussion started by: rammm
4 Replies
LEARN ABOUT OPENSOLARIS
listusers
listusers(1) User Commands listusers(1)
NAME
listusers - list user login information
SYNOPSIS
listusers [-g groups] [-l logins]
DESCRIPTION
Executed without any options, this command lists all user logins sorted by login. The output shows the login ID and the account field value
from the system's password database as specified by /etc/nsswitch.conf.
OPTIONS
The following options are supported:
-g groups Lists all user logins belonging to group, sorted by login. Multiple groups can be specified as a comma-separated list.
-l logins Lists the user login or logins specified by logins, sorted by login. Multiple logins can be specified as a comma-separated
list.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------------------------------------+
|ATTRIBUTE TYPE ATTRIBUTE VALUE |
|Availability SUNWcsu |
+-----------------------------------------------------------+
SEE ALSO
nsswitch.conf(4), attributes(5)
NOTES
A user login is one that has a UID of 100 or greater.
The -l and -g options can be combined. User logins will only be listed once, even if they belong to more than one of the selected groups.
SunOS 5.11 18 Mar 1994 listusers(1)