Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently installed Ubuntu Server 10.04. I selected samba file server from the install menu and everything works fine. The problem is, the samba daemon is running as root which has me a little nervous.

I added a 'samba' group and a user called 'samba' to that group, but I can't get the daemon run under it. MySQL from the LAMP seems to run as its own user.

share|improve this question
This is not abandoned (it has a good, upvoted answer, and only unanswered questions can be considered abandoned), and it does appear to meet the description of too localized in any other way. I recommend we reopen this. – Eliah Kagan Apr 13 '13 at 9:15

Running Samba is slightly different to running apache or mysql.

When you connect to the web server all processes are run as user www-data, when you connect to mysqld all processes are run as user mysql.

But when you connect to samba a new process is forked with your user credentials. Only root can fork processes as other users.

It is correct that samba is running as root.

share|improve this answer

Your Answer


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