Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-19-2005, 09:57 AM   #1
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Rep: Reputation: 15
display all users on system

Hello everybody. I'd first like to thank you in advance for your time.

I'm installing a new LAMP on my Slackware 10 system, and ran accross the user generation with mySQL. When I tried to add the user it told me that the user already exists. This led me to wonder what users are already registered on my system. I googled around a little bit, but only found information about the "who" command, which, if I understand, only shows users that are logged on to my system. Since I'm really the only one who uses this computer, people aren't logging on that often, so I was wondering if there was a way to just list all the users that are registered on my computer...

Appreciate your help,

James Kassemi
Old 02-19-2005, 10:49 AM   #2
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
awk -F":" '{ print $1 }' /etc/passwd
Old 02-19-2005, 12:12 PM   #3
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks alot. There sure are a load of users already registered . Take it easy,



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 to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 01:59 AM
X display on another system unzari Fedora 2 04-28-2005 02:14 AM
[FC2]Why does the users command display multiple users? Harkov Fedora 1 07-10-2004 10:24 PM
Display users on specific Port peter_jansen Linux - Networking 4 06-01-2004 04:22 PM
Display Last Login message for users smile_laguna Linux - Newbie 4 02-28-2004 02:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 AM.

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