Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In linux I only see a /home/[[me]] directory. However, I know there are at least 20+ other users (root, www-data, etc..).

How come some users don't have user directories - and is it possible to create new users without a home directory?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Many of these users are created as system users. On Debian/Ubuntu, you can do that with adduser --system. If you only want to avoid creating a home dir (not creating a system user), you can use adduser --no-create-home.

I'm sure, there's an equivalent for non-Debian systems (with useradd etc). The useradd manpage tells me:

-M Do not create the user's home directory
-r, --system Create a system account.
share|improve this answer
    
Ok, so then Ubuntu/Debian has two types of users - system and normal? Where can I find a listing of all system users then? –  Xeoncross Mar 21 '10 at 18:28
2  
@Xeoncross: All users are the same - they're just used for different purposes. A "system" user account is one which doesn't belong to a person, but instead to a program. This is an Unix convention, not Debian-specific. –  grawity Mar 21 '10 at 18:51
1  
From the useradd manpage: System users will be created with no aging information in /etc/shadow, and their numeric identifiers are choosen [sic] in the SYS_UID_MIN-SYS_UID_MAX range, defined in /etc/login.defs, ... –  Chris Lercher Mar 21 '10 at 19:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.