04-02-2007
Quote:
Originally Posted by JTeter
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!
this thread may answer ur query...
https://www.unix.com/showthread.php?t...ighlight=login
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
LOGIN(1) BSD General Commands Manual LOGIN(1)
NAME
login -- log into the computer
SYNOPSIS
login [-pq] [-h hostname] [user]
login -f [-lpq] [-h hostname] [user [prog [args...]]]
DESCRIPTION
The login utility logs users (and pseudo-users) into the computer system.
If no user is specified, or if a user is specified and authentication of the user fails, login prompts for a user name. Authentication of
users is configurable via pam(8). Password authentication is the default.
The following options are available:
-f When a user name is specified, this option indicates that proper authentication has already been done and that no password need be
requested. This option may only be used by the super-user or when an already logged in user is logging in as themselves.
With the -f option, an alternate program (and any arguments) may be run instead of the user's default shell. The program and argu-
ments follows the user name.
-h Specify the host from which the connection was received. It is used by various daemons such as telnetd(8). This option may only be
used by the super-user.
-l Tells the program executed by login that this is not a login session (by convention, a login session is signalled to the program with
a hyphen as the first character of argv[0]; this option disables that), and prevents it from chdir(2)ing to the user's home direc-
tory. The default is to add the hyphen (this is a login session).
-p By default, login discards any previous environment. The -p option disables this behavior.
-q This forces quiet logins, as if a .hushlogin is present.
If the file /etc/nologin exists, login dislays its contents to the user and exits. This is used by shutdown(8) to prevent users from logging
in when the system is about to go down.
Immediately after logging a user in, login displays the system copyright notice, the date and time the user last logged in, the message of
the day as well as other information. If the file .hushlogin exists in the user's home directory, all of these messages are suppressed. -q
is specified, all of these messages are suppressed. This is to simplify logins for non-human users, such as uucp(1). login then records an
entry in utmpx(5) and the like, and executes the user's command interpreter (or the program specified on the command line if -f is speci-
fied).
The login utility enters information into the environment (see environ(7)) specifying the user's home directory (HOME), command interpreter
(SHELL), search path (PATH), terminal type (TERM) and user name (both LOGNAME and USER).
Some shells may provide a builtin login command which is similar or identical to this utility. Consult the builtin(1) manual page.
The login utility will submit an audit record when login succeeds or fails. Failure to determine the current auditing state will result in
an error exit from login.
FILES
/etc/motd message-of-the-day
/etc/nologin disallows logins
/var/run/utmpx current logins
/var/mail/user system mailboxes
.hushlogin makes login quieter
/etc/pam.d/login pam(8) configuration file
/etc/security/audit_user
user flags for auditing
/etc/security/audit_control
global flags for auditing
SEE ALSO
builtin(1), chpass(1), newgrp(1), passwd(1), rlogin(1), getpass(3), utmpx(5), environ(7)
HISTORY
A login utility appeared in Version 6 AT&T UNIX.
BSD
September 13, 2006 BSD