Please state your Operating System and version and preferred Shell in questions.
There is no generic unix command to show who has an account but is not logged in. There are enhanced versions of "finger" on some unixes but this is non-standard.
We can subtract "who -u" from "logins". We could equally use "listusers" instead of "logins" or even read /etc/passwd directly.
For example:
Hi,
Suppose I have a programme called Menu. This menu has various choices as we would expect from a Menu.
Now Can you Please help me as I want the details of the Users to be registered to some file , Whoever has entered this particular Program . Basically to see the username and the time that... (2 Replies)
I have an RS6000 server running AIX and on occasion all users are logged out of the server "connection closed by foreign host" is the error message. Normally a user can press enter and get a Login prompt, but they get the message "connection refused" and then the users can wait a minute or so and... (2 Replies)
hello all
say im logged in to account ar root , but I can't change any thing there ( like username )
if someone is already logged in also . how can I know who is ( user name ) also connected to the user im using ? (2 Replies)
We have two NIC cards in our IBM RS/6000 F50 running AIX 4.3.3
We are trying to make sure we have moved all users to log in through the new NIC.
10.22.x.y (old)
10.22.x.z (new)
How can I tell which users are still using the old address for logging in so I can update their work station to... (5 Replies)
Im "supporting" at least 2500 HP-UX workstations with CAD-related software with the B.11.11 build. I cant say anymore than that because of my companys sligtly paranoid security policy .
The last few days a new problem has arised from nowhere.
The problem is that users gets logged off when the... (5 Replies)
Discussion started by: Laoinjo
5 Replies
7. Post Here to Contact Site Administrators and Moderators
How do I find this out? I have a feeling its a simple command such as who, but I just don't know what it is. I've had a search on here but either I can't put it into the right search criteria or there isn't a topic on it.
Thanks.
EDIT: Delete this thread, as I posted it I noticed the... (0 Replies)
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)
So I'm trying to write a single line command So I have to use last first in this command and I've figured out the format my professor wants it in, something like thislast | cut -d' ' -f1,15 | sort > check | uniq -c.... and I never can get it right, when I just last command I get something... (2 Replies)
Discussion started by: DoubleAlpha
2 Replies
LEARN ABOUT MINIX
logins
logins(1M) System Administration Commands logins(1M)NAME
logins - list user and system login information
SYNOPSIS
/usr/bin/logins [-admopstux] [-g group...] [-l login_name...]
DESCRIPTION
This command displays information on user and system logins known to the system. Contents of the output is controlled by the command
options and can include the following: user or system login, user id number, passwd account field value (user name or other information),
primary group name, primary group id, multiple group names, multiple group ids, home directory, login shell, and four password aging param-
eters. The default information is the following: login id, user id, primary group name, primary group id and the account field value. Out-
put is sorted by user id, system logins, followed by user logins.
OPTIONS
Options may be used together. If so, any login that matches any criteria are displayed.
The following options are supported:
-a Add two password expiration fields to the display. The fields show how many days a password can remain unused before it
automatically becomes inactive, and the date that the password expires.
-d Selects logins with duplicate uids.
-g group Selects all users belonging to group, sorted by login. Multiple groups can be specified as a comma-separated list. When
the -l and -g options are combined, a user is only listed once, even if the user belongs to more than one of the selected
groups.
-l login_name...Selects the requested login. Multiple logins can be specified as a comma-separated list. Depending on the nameservice
lookup types set in /etc/nsswitch.conf, the information can come from the /etc/passwd and /etc/shadow files and other
nameservices. When the -l and -g options are combined, a user is only listed once, even if the user belongs to more than
one of the selected groups.
-m Displays multiple group membership information.
-o Formats output into one line of colon-separated fields.
-p Selects logins with no passwords.
-s Selects all system logins.
-t Sorts output by login instead of by uid.
-u Selects all user logins.
-x Prints an extended set of information about each selected user. The extended information includes home directory, login
shell and password aging information, each displayed on a separate line. The password information consists of password
status (PS for password, NP for no password or LK for locked). If the login is passworded, status is followed by the date
the password was last changed, the number of days required between changes, and the number of days allowed before a change
is required. The password aging information shows the time interval that the user receives a password expiration warning
message (when logging on) before the password expires.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)SunOS 5.10 5 Jul 1990 logins(1M)