LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-30-2009, 05:34 AM   #1
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Rep: Reputation: 15
list the users


Hi,

Can anybody please tell me the command to listout the user names?I am using Centos 5.0.
 
Old 04-30-2009, 05:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
getent passwd
 
Old 04-30-2009, 06:02 AM   #3
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Original Poster
Rep: Reputation: 15
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.
 
Old 04-30-2009, 06:58 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-30-2009, 11:34 AM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
centos, list



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 list all users in shell? binary_0011 Linux - Newbie 2 05-02-2006 11:40 AM
List of users nickyboy Linux - Newbie 1 04-20-2006 01:15 PM
list of users Ab3n Linux - Newbie 3 03-08-2006 12:30 PM
list out the users. bruse Linux - Newbie 2 07-19-2005 08:46 AM
List all users eam Linux - Newbie 7 05-15-2005 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:33 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