Solved

listing users - not necessarily logged on.

Posted on 2003-10-23
4
438 Views
Last Modified: 2010-04-21
does anyone know of a command that list all users. both logged on and logged off?  the list doesn't not need to distinguish who is logged on and logged off. i just need a complete list.

i tried 'finger' 'w'  and 'who' they give me only logged on users.

thanks,
0
Comment
Question by:tekel
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
Satalink earned 125 total points
ID: 9610131
cat /etc/passwd|awk -F\: '{ print $1 }'
0
 
LVL 6

Expert Comment

by:bira
ID: 9610290
lsuser ALL|cut -f1 -d' '
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9610326
u can try using logins also.
man logins.

it has bunch of options which can be useful if u are looking for some special login names.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9610382
On solaris:
there is also a good command called

listusers.


it will list all the users in a nis environment.
if u want to see only local users. it will be like
cat /etc/passwd.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question