LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 02-21-2006, 03:49 AM   #1
manomohan
Member
 
Registered: Jul 2005
Location: india
Distribution: Fedora core 3
Posts: 42

Rep: Reputation: 15
Show users


How can i list out all the users in the system via command prompt or terminal ?
 
Old 02-21-2006, 03:54 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Code:
who
some extra characters to make the message long enough
 
Old 02-21-2006, 04:03 AM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
To get a list of currently logged in users, the command is (suprisingly) users.
Code:
users
 
Old 10-10-2006, 05:22 AM   #4
baddah
Member
 
Registered: Feb 2006
Location: Cape Town,South Africa
Distribution: Fedora Core 8
Posts: 188

Rep: Reputation: 30
Hi,i cant see the difference between users and who command.Both only show the users currently logged in.I am looking or a command to show all usernames,groupnames ,etc so that i can check if their might be a username i dont know of on a server.

Thanks for any reply.Cheers
 
Old 10-10-2006, 05:39 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by baddah
Hi,i cant see the difference between users and who command.
users is from BSD, who is from SysV Unix.
Quote:
Both only show the users currently logged in.
Indeed
Quote:
I am looking or a command to show all usernames,groupnames ,etc so that i can check if their might be a username i dont know of on a server.
That wasn't your initial question.
A simple way would be "cat /etc/passwd", but that wouldn't take into account authentication made from different database (like NIS, LDAP, etc ...).
 
Old 10-10-2006, 08:17 AM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
(1) cat /etc/passwd is OK for <quote>on a server<UnQuote>
(2) contact your dba

Note that even background processes require a login - may be "anonymous"

End
 
Old 10-10-2006, 12:00 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by AnanthaP
(1) cat /etc/passwd is OK for <quote>on a server<UnQuote>
What do you mean ?
Quote:
(2) contact your dba
These databases aren't usually handled by dbas but better by system administrators.
Quote:
Note that even background processes require a login - may be "anonymous"
Precisely all processes require a userid/groupid, however, they need not to be defined in /etc/passwd or anywhere.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
show last users login wisdom Programming 3 11-17-2005 02:56 AM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 09:01 AM
sshd_config banner to show users IP tommytomato Linux - Security 5 06-20-2004 05:50 AM
why does gkrellm show multiple users? |2ainman Linux - Software 1 04-17-2004 07:37 AM
copying kde configuration for 2 users OR 2 users on 1 x session for vnc blackphiber Linux - General 0 02-26-2004 08:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration