LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-08-2006, 12:11 AM   #1
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Rep: Reputation: 30
Daemon Accounts


What is the purpose of Deamon Accounts in the passwd file? What are they necessary for?
 
Old 02-08-2006, 02:24 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
These accounts are intended to run specific software. You can restrict these accounts in order to limit their access to the system. Also, these accounts can belong to unique groups in order to provide specific access to their files that normal users cannot access.

For example, the nobody account is used to perform the updatedb. The updatedb utility maintains the file database used by the locate command. The nobody account can only see into directories that have read access to "other". So if you were to set your /etc directory to root:users with drwxr-x--- permissions then the nobody account could not see into that directory. In that case you would break the ability of the nobody account to keep the file database up to date and your locate command would not be able to locate files in that directory.

The ftp account is intended to run ftp server software.

The www account is intended to run a web server. The files in the web server's directory can belong to this account. This could prevent normal users from altering these files directly. It also allows you to put the www files in a chroot jail. This prevents the www server from seeing the normal system files. So it works both ways for this account. You protect the normal system files from the www server and you protect the www files from normal users.

One security task is to delete those accounts that you don't need. That prevents a potential attacker from using these accounts, which may have no password or which may have been misconfigured to have a command shell. Normally these accounts do not have a normal shell. Their shell is either a binary to do a specific job such as ftpd or they have a binary that cannot be used to perform any work, such as /bin/false.
 
  


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
samba accounts/ unix accounts Buzz88 Linux - Newbie 3 09-25-2005 08:16 AM
qmail -- new accounts can't receive mail, but old accounts can b:z *BSD 1 07-13-2005 12:42 AM
Accounts bhughesiii Linux - General 2 09-16-2004 01:54 PM
Getting Fetchmail to poll multiple user accounts in daemon mode davidbalt Linux - Newbie 0 02-23-2004 05:21 PM
User Accounts petey *BSD 4 09-26-2002 09:28 AM

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

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