Solved

listing users - not necessarily logged on.

Posted on 2003-10-23
4
434 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now