Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

  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
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.