Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Default users at install
PostPosted: Wed Apr 29, 2009 1:04 am 
Offline
Junior Member

Joined: Thu Apr 23, 2009 9:17 pm
Posts: 26
Website: http://www.trazoi.com
Location: Melbourne, Australia
I'm new to Linux administration, doubly so for servers. I've noticed that by default Linux (in my case Debian 5.0) installs a whole bunch of default users, which I assume is to manage their own individual processes without a security risks to other programs.

Is it a good or bad idea to remove some of these users? As a beginner I'm not sure which are needed, but at the least for a remote server I don't why I'd need a user for games or for the print daemon.

_________________
David Shaw, a.k.a. "Trazoi"


Top
   
PostPosted: Wed Apr 29, 2009 1:50 am 
Offline
Junior Member

Joined: Sun Nov 16, 2008 4:35 am
Posts: 38
trazoi wrote:
Is it a good or bad idea to remove some of these users? As a beginner I'm not sure which are needed, but at the least for a remote server I don't why I'd need a user for games or for the print daemon.


These users exist because a package installed on the server said it needed them. Whether any particular one will actually end up being used depends on what you do with the system, but just yanking things out that the OS put there itself is a very bad idea. Think about the tech support horror stories you hear about people who started deleting all those "extra" files they "never use" and wound up trashing their system.

And there's really no reason to remove them. They consume no resources beyond the few bytes they occupy in the passwd and related files, and they can't be logged into (unless you decide to enable them and set a password for them -- don't do that), so there's no security risk.


Top
   
PostPosted: Wed Apr 29, 2009 1:54 am 
Offline
Junior Member

Joined: Thu Apr 23, 2009 9:17 pm
Posts: 26
Website: http://www.trazoi.com
Location: Melbourne, Australia
nknight wrote:
And there's really no reason to remove them. They consume no resources beyond the few bytes they occupy in the passwd and related files, and they can't be logged into (unless you decide to enable them and set a password for them -- don't do that), so there's no security risk.

Sweet, thanks. I wasn't sure if they had full user rights, passwords and all. If they're there effectively just as labels to quarantine file access then I won't worry about them. I was just a little bit surprised there were so many of them. ;)

_________________
David Shaw, a.k.a. "Trazoi"


Top
   
PostPosted: Wed Apr 29, 2009 3:17 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
trazoi wrote:
Sweet, thanks. I wasn't sure if they had full user rights, passwords and all. If they're there effectively just as labels to quarantine file access then I won't worry about them.

You can verify that none of them have passwords by looking at the second field in /etc/shadow.
man 5 shadow wrote:
If the password field contains some string that is not valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in, subject to pam(7).

A "valid result of crypt" looks something like $1$EPlC0/$zcsNziSht7Vt335LyraXZ/. Also you will often see in /etc/passwd such accounts having their shell set to /bin/false or /sbin/nologin which prevents a normal login. It is still possible (and common) for processes to run as these users. For example, postfix starts as root (it needs to in order to e.g. listen on port 25) but then drops most privileges and switches over to the postfix user. I don't know exactly what would happen if you removed the postfix user account, but I assume it isn't good...


Top
   
 Post subject:
PostPosted: Wed Apr 29, 2009 3:37 am 
Offline
Junior Member

Joined: Thu Apr 23, 2009 9:17 pm
Posts: 26
Website: http://www.trazoi.com
Location: Melbourne, Australia
Ah, interesting, thank you.

Now I'm curious as to what the difference is between having a ! or a * as the password. The shadow man page doesn't say, and I'm sure that's a devil of a thing to try and Google for!

Pre-edit: Decided to search on a whim before pressing submit, and found out that * means nothing can match, while ! means the account is locked.

_________________
David Shaw, a.k.a. "Trazoi"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group