04-02-2007
Last user login date
I have been asked to create a report of when users last logged into an AIX box. Upon login, this information appears to be available but I have not located it yet. Any help?
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just... (5 Replies)
Discussion started by: jerome
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Discussion started by: amittal
1 Replies
3. Shell Programming and Scripting
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Discussion started by: amittal
1 Replies
4. 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
5. 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
6. Shell Programming and Scripting
I need to increment a date value through shell script.
Input value consist of start date and end date in DATE format of unix.
For eg.
I need increment a date value of 1/1/09 to 31/12/09 i.e for a whole yr.
The output must look like
1/1/09
2/2/09
.
.
.
31/1/09
.
.
1/2/09
.
28/2/09... (1 Reply)
Discussion started by: sunil087
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
10. UNIX for Advanced & Expert Users
Hi Experts,
Need your support
Redhat 6.5
I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login
to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
WHO(1) BSD General Commands Manual WHO(1)
NAME
who -- display who is logged in
SYNOPSIS
who [-abdHlmpqrsTtu] [file]
who am i
DESCRIPTION
The who utility displays a list of all users currently logged on, showing for each user the login name, tty name, the date and time of login,
and hostname if not local.
Available options:
-a Same as -bdlprTtu.
-b Time of last system boot.
-d Print dead processes.
-H Write column headings above the regular output.
-l Print system login processes (unsupported).
-m Only print information about the current terminal. This is the POSIX way of saying who am i.
-p Print active processes spawned by launchd(8) (unsupported).
-q ``Quick mode'': List only the names and the number of users currently logged on. When this option is used, all other options are
ignored.
-r Print the current runlevel. This is meaningless on Mac OS X.
-s List only the name, line and time fields. This is the default.
-T Print a character after the user name indicating the state of the terminal line: '+' if the terminal is writable; '-' if it is not; and
'?' if a bad line is encountered.
-t Print last system clock change (unsupported).
-u Print the idle time for each user, and the associated process ID.
am I Returns the invoker's real user name.
file By default, who gathers information from the file /var/run/utmpx. An alternative file may be specified.
FILES
/var/run/utmpx
SEE ALSO
last(1), mesg(1), users(1), getuid(2), utmpx(5)
STANDARDS
The who utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A who utility appeared in Version 6 AT&T UNIX.
BSD
January 17, 2007 BSD