LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-25-2002, 09:12 PM   #1
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
is there an easy way to optain a list of users on my box?


I need to know if any users have been added to my box without me knowing. The only way that I can think of doing that is to acutally look at the file that the users are stored. But i want to know if theres an easier and quicker way. Is there?
 
Old 09-25-2002, 09:26 PM   #2
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
Arrow cut

cut -d: -f 1 /etc/passwd

Realistically you want some kind of Intrusion Detection System, or IDS. Something like fcheck or tripwire will tell you what changed and when, which is much more useful; many rootkits never add another user as it's too easy to detect.
 
Old 09-25-2002, 09:45 PM   #3
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
I typed that in and this came up :

root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
smmsp
mysql
rpc
gdm
pop
nobody
brian
george

I dont think Im supposed to have all those... Am I? Which ones can I delete, how and how can I check to make sure that I can infact delete them?
 
Old 09-25-2002, 09:54 PM   #4
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
you need some basic unix training. A lot of those accounts are normal, and even required.

If you cat your /etc/passwd you'll see username:#:#:blahblahblah... the first # is the user ID (UID), and the second is the group ID (GID) -- the big thing to watch out for is that only one, root, has 0:0.

The only other real piece of advice I can give is that on many systems, "real" user accounts (i.e. not machine accounts) start at 1000. anything under that is used by the machine (or added by a rootkit to try and look innocent) :-)
 
Old 09-25-2002, 10:17 PM   #5
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
Thnx man... I get what your talkin bout exactly now.Thanks again.
 
Old 09-26-2002, 05:13 AM   #6
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Also, check out the lastlog command.
It will list all the users and the last time they logged in.

Of course, the system user names should NEVER have logged in...

Regards,
Peter
 
Old 09-26-2002, 07:15 AM   #7
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
The problem with 'last' and friends is that they only track logins -- buffer exploits and the like don't put entries into lastlog.
 
  


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
How can I list all RPM's installed on my box? abefroman Linux - Software 2 11-07-2005 05:41 PM
Search Box History List akosombo Fedora 0 05-06-2005 07:36 PM
Best distribution for easy to setup out of the box secure web server? jimdaworm Linux - Security 11 04-05-2005 01:45 AM
renaming your box (this SHOULD) be easy milesstandish Linux - Networking 2 03-29-2004 07:38 AM
Easy Mail Server for 6-10 users? MikHud Linux - Software 6 02-15-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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