Solved

listing users - not necessarily logged on.

Posted on 2003-10-23
4
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

752 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