LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   list the users (http://www.linuxquestions.org/questions/linux-server-73/list-the-users-722670/)

masatheesh 04-30-2009 05:34 AM

list the users
 
Hi,

Can anybody please tell me the command to listout the user names?I am using Centos 5.0.

acid_kewpie 04-30-2009 05:45 AM

getent passwd

masatheesh 04-30-2009 06:02 AM

But I need to differentiate with the users which are created bydefault in linux.Please tell how to do it?The motivation is,if unauthorised user creates an user in different name like default user,I will need to identify this.

acid_kewpie 04-30-2009 06:58 AM

if you're not going to ask full and complete questions, don't expect us to be psychic and know what you really meant.

you can't define a "default" user outside of root and a few others, as most accounts that you didn't add are service accounts, and so created during the installation of a service like apache, squid, ldap etc... Only thing you probably want to look at is the uid of the user. on redhat systems, local human uesrs start from 500.

anomie 04-30-2009 11:34 AM

Quote:

Originally Posted by masatheesh
The motivation is,if unauthorised user creates an user in different name like default user,I will need to identify this.

Sounds like a good job for a HIDS.

Also check out rkhunter. IIRC, it will warn you about newly created users/groups.


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