Hey, wait there,
You are giving up to fast! Iwas only trying to find another complicated way to accomplish the given task...
Your reasoning was valid, but lack of practice... finger gives you all you need, you just had to figure out how to use it
To make it easy I put in script form rather than a one-liner:
Replacing the cat /etc/passwd... by a true users list would be far better (no daemons or other accounts in...)
Last edited by vbe; 03-26-2009 at 09:08 AM..
Reason: spelling...
I would like to find out the last time all users have logged in or out. I tried the last command, but it could not find the wtmp file in /var/adm (I searched in othe directories also). This is an AIX rs6000 4.2.1 system. We are moving our applications from this system to an AIX 5.2 system and I... (11 Replies)
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
I need a command that will list all the users and their last login date & time. I was trying the last command and the who command, but can't get exactly what I need.
I just need the output to be user name and last login date .
Thanks for your help! (3 Replies)
Hi,
Can I get a script to list out all the users, who has not logged on since last 90 days. Last command in not working due due to /var/adm/wtmpx is more than 2 GB.
Thanks in advance.
Regards,
Roni (10 Replies)
i'm sorry if yesterday i posted this thread in unix for dummies forums, :D
i am a newbie in C programming
i want to get active users list and their login time...
i have search and learn about passwd and utmp, but i only can get user list without their login time...
do you have an idea... (2 Replies)
I need to find what users are currently logged onto the system that is easy just a simple who | awk '{ print $1 }' (thats all I need for the part), but I also need to find how long they have been logged on and the total amount of file space they are using.
Thanks in advance, I have been looking... (3 Replies)
How can I get the list of logged in users in the system programmatically?
I can get the list with 'who' or 'users' commands but I need to get the list programmatically...
May someone help, please?
Thanks in advance. (2 Replies)
1. The problem statement, all variables and given/known data:
Show all users who are currently logged in, sorted from earliest to latest log in time. The log in time includes the month, day, and time.
2. Relevant commands, code, scripts, algorithms:
finger, who, sort, pipe, head, tail,
... (8 Replies)
Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:) (5 Replies)
Discussion started by: saloliubliu
5 Replies
LEARN ABOUT ULTRIX
chfn
chfn(1) General Commands Manual chfn(1)Name
chfn - change system finger entry
Syntax
chfn [ loginname ]
Description
The command is used to change information about users. This information is used by the program, among others. It consists of the user's
real name, office room number, office phone number, and home phone number. The command prompts the user for each field. Included in the
prompt is a default value, which is enclosed between brackets. The default value is accepted simply by typing <CR>. To enter a blank
field, type the word `none'. This is an example:
% chfn
Changing finger information for doe
Name [John Doe]:
Office number [ABC-1/K0]: DEF-2/K1
Office Phone []: 1863
Home Phone [5771546]: none
The command allows phone numbers to be entered with or without hyphens. No entries may contain colons, commas, or control characters.
It is a good idea to run after running to make sure everything is the way you want it.
The optional argument loginname is used to change another person's finger information. This can only be done by the superuser.
Restrictions
The encoding of the office and extension information is installation dependent.
Because two users may try to write the file at once, a synchronization method was developed. On rare occasions, a message that the pass-
word file is "busy" will be printed. In this case, sleeps for a while and then tries to write to the file again.
If the passwd entry is distributed from another host will not modify it.
See Also
chsh(1), finger(1), passwd(1), passwd(5yp)chfn(1)