is there an easy way to optain a list of users on my box?
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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) :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.