LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2007, 01:38 PM   #1
BobTheSlob
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
Why are there so many users in passwd relating to system services


I don't have a problem with my system, I'm just wondering. For example, here is my passwd file

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13roxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
james:x:1000:1000:James,,,:/home/james:/bin/bash

Where are there all these users? That drives me crazy. I would ideally like my passwd file to have USERS in it, not all these random things.

Can someone explain the theory behind this?

Thanks
 
Old 09-03-2007, 02:04 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
In most cases the theory is to have user accounts that are set up for specific purposes. The most important ones for a desktop are the root, man, and nobody accounts. Some of the other accounts can be removed but don't experiment until you do some research on each account. For example believe it or not the man utility requires the man user account in order to work as it is originally installed. I found that out when I changed the permissions on the /usr directory and found that the man utility didn't have permission to read the man files! The nobody account is good because it is the least privileged account. It is useful for running the updatedb utility. You can prevent the updatedb utility from reading the files in the /home directory if you change the owner of the /home directory to root:users and change the permissions on that directory to 770. The nobody account does not have any privileges so it can only access files that have at least read permission for "others".
 
  


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 On
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 12:59 AM
can i see users passwd if i am root!! venki Linux - General 8 04-26-2007 09:45 AM
/etc/passwd, users are missing setenv02 Linux - General 5 05-07-2006 04:05 PM
Showing Users from passwd kemplej Programming 1 12-30-2004 10:10 AM
Change/import passwd for many users kelper Linux - General 1 08-26-2003 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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