LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2006, 02:14 AM   #1
boybawang
LQ Newbie
 
Registered: Sep 2006
Location: Philippines
Distribution: CentOS 4, Red Hat 9
Posts: 2

Rep: Reputation: 0
Display Linux users


Hi everyone,

I just want to ask how I can display a list of all the users on my machine? Not just the currently logged on users but all of them.

Thank you very much for your replies.
 
Old 09-26-2006, 02:39 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

This gets asked quite often, you could have used the search :}

One possible way:

awk -F: ' $3 > XXX {print $1}' /etc/passwd


XXX depends on your distro; in Slack, use 100 (the System/daemon users are
all lower than that). Debian: use 1000. Some others: maybe 500 :}


Cheers,
Tink
 
Old 09-26-2006, 02:53 AM   #3
boybawang
LQ Newbie
 
Registered: Sep 2006
Location: Philippines
Distribution: CentOS 4, Red Hat 9
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks!

Wow, thanks! I've been googleing it all over and I just couldnt find the right keywords for it. So when I got to LQ, i'm just really desperate. hehehehe
Thank you very much. I think I'll be quite a frequent visitor here
 
Old 09-26-2006, 03:20 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by boybawang
Wow, thanks! I've been googleing it all over and I just couldnt find the right keywords for it. So when I got to LQ, i'm just really desperate. hehehehe
Thank you very much. I think I'll be quite a frequent visitor here :D
You're welcome ...


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can i display a information for all users when they login? lnthai2002 Linux - General 1 02-21-2006 07:04 PM
display all users on system jkassemi Linux - Newbie 2 02-19-2005 11:12 AM
[FC2]Why does the users command display multiple users? Harkov Fedora 1 07-10-2004 09:24 PM
Display users on specific Port peter_jansen Linux - Networking 4 06-01-2004 03:22 PM
Display Last Login message for users smile_laguna Linux - Newbie 4 02-28-2004 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration