Server Fault is a question and answer site for system and network administrators. 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'm trying to mount a samba share using smbfs as root (on ubuntu-server), but every time I mount it it's mounted as root:dialout

Here is the fstab entry (line breaks added for presentation)

// /root/mount_point smbfs ¬
auto,username=user,password=pass,uid=root,umask=000,user,defaults 0 2

How can I make it mount as the root group?

share|improve this question
up vote 4 down vote accepted

Add the gid=root option to the options. Also, use the cifs client rather than smbfs, as that is more modern.

share|improve this answer

// /root/mount_point smbfs ¬ auto,username=user,password=pass,uid=root,gid=root,umask=000,user,defaults 0 2

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.