Unix Technical Forum

What are system accounts?

This is a discussion on What are system accounts? within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hello, I am wondering what exactly is a system account? I am looking for a way to create users ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:11 AM
Bjoern
 
Posts: n/a
Default What are system accounts?

Hello,

I am wondering what exactly is a system account? I am looking for a way
to create users that can't log on (and have no passwords), ie that are
only used to run demons (like 'nobody' is for httpd). I suspect that
system accounts might be the ticket?

Would it be enough to create one with useradd -r without specifying a
password?

Another thing I seem to remember (I think it was in the manual to some
ftp server) is to set the users shell to something impossible, maybe
that would be another/better/the only way? I've seen some accounts in
/etc/passwd with /bin/false as shell, is that it? On the other hand
'nobody' appears to be preconfigured with /bin/bash...

Or should I just stop worrying too much, set up users with a password
that nobody knows, and be done with it?

Many thanks in advance!


Bjoern


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:11 AM
Peter T. Breuer
 
Posts: n/a
Default Re: What are system accounts?

Bjoern <bjoern_p1@gmx.net> wrote:
> I am wondering what exactly is a system account? I am looking for a way
> to create users that can't log on (and have no passwords), ie that are
> only used to run demons (like 'nobody' is for httpd). I suspect that
> system accounts might be the ticket?


Edit your passwd file to taste, and stop stumbling over nomenclature.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:12 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: What are system accounts?

Bjoern wrote:

> Hello,
>
> I am wondering what exactly is a system account? I am looking for a way
> to create users that can't log on (and have no passwords), ie that are
> only used to run demons (like 'nobody' is for httpd). I suspect that
> system accounts might be the ticket?
>
> Would it be enough to create one with useradd -r without specifying a
> password?


I'd also urge you to set the shell to "/sbin/nologin", and make sure it
has a UID less than 500 or so to indicate that it is in fact a system
account, not a local user account.

> Another thing I seem to remember (I think it was in the manual to some
> ftp server) is to set the users shell to something impossible, maybe
> that would be another/better/the only way? I've seen some accounts in
> /etc/passwd with /bin/false as shell, is that it? On the other hand
> 'nobody' appears to be preconfigured with /bin/bash...
>
> Or should I just stop worrying too much, set up users with a password
> that nobody knows, and be done with it?


See above. What you need depends on the specific account. If you need to
be able to "su" to that user's account and run normal shell commands,
such as "postgres" for a postgresql daemon, then you may need an active
shell.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:12 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: What are system accounts?

Bjoern wrote:

> Hello,
>
> I am wondering what exactly is a system account? I am looking for a way
> to create users that can't log on (and have no passwords), ie that are
> only used to run demons (like 'nobody' is for httpd). I suspect that
> system accounts might be the ticket?


I forgot to add: if you're running an NIS server, there is a setting for
Linux's version of NIS to prevent publishing NIS accounts with UID's
less than some specific number. This allows you to have system accounts
on your NIS server that are not published to the clients, preventing all
sorts of fascinating conflicts. So it's also helpful to keep system
accounts with low-numbered UID's.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 08:13 AM
Bjoern
 
Posts: n/a
Default Re: What are system accounts?

Many thanks for the helpful answers!


Bjoern

Nico Kadel-Garcia wrote:
> Bjoern wrote:
>
>> Hello,
>>
>> I am wondering what exactly is a system account? I am looking for a
>> way to create users that can't log on (and have no passwords), ie that
>> are only used to run demons (like 'nobody' is for httpd). I suspect
>> that system accounts might be the ticket?

>
>
> I forgot to add: if you're running an NIS server, there is a setting for
> Linux's version of NIS to prevent publishing NIS accounts with UID's
> less than some specific number. This allows you to have system accounts
> on your NIS server that are not published to the clients, preventing all
> sorts of fascinating conflicts. So it's also helpful to keep system
> accounts with low-numbered UID's.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com