Solved

listing users - not necessarily logged on.

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtualizing TAPE on dual VIOS 3 116
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 137
Write an app 10 74
Shell Script on AIX 7 145
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 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