Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am setting up a Samba server on Ubuntu and need to create users on the server. However I am not sure which options I need to set with useradd in order for the user to work.

  1. Does the samba user need a shell?

  2. Does the samba user need a defined home directory?

  3. Would it be a good idea to make a special group just for samba users or is it okay to use the default group?

share|improve this question
  1. No, Samba does not use this.

    (Some other services, such as ftp, require a shell to ensure that the account belongs to a human. Samba uses its own account database instead.)

  2. No, the home directory is not needed.

    The only exception is the special [homes] share, accessible at //server/username.

  3. It depends on how you intend to manage access to files – if all users are to be treated equally, use the default group. If Samba users need additional restrictions, use a separate group. (Starting with the default might be okay.)

share|improve this answer

Your Answer


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.