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 unfamiliar with Samba and need some help.

I have an Ubuntu server that has a folder that is being shared and can be seen on windows and requires a user name and password on the windows side. I want to be able to create another folder like it for a different user.

Samba is set up and working I just don't know how to create another folder to be shared.

share|improve this question
There might be a graphical way to do it, but normally you would create an entry for the share in /etc/samba/smb.conf. – user55325 Dec 19 '12 at 15:49
So in the smb.conf file if I add a section called [new_share] path = /user/home/new_share Would I have to create a folder called new_share in the path – jenglee Dec 19 '12 at 17:01
Yes, if that's the one you want to share. – user55325 Dec 19 '12 at 17:47
up vote 2 down vote accepted

You would want to edit the /etc/samba/smb.conf file with the parameters (with sudo perms). Just adjust this to fit your needs at the bottom of the file:

    comment = Some Comment Text Here
    path = /mnt/sharedfolder/
    browseable = yes
    read only = no
    writable = yes
    guest ok = no
    create mask = 0644
    directory mask = 0700
    valid users = username

Depending on your samba configurations, you may need to add a user to the samba users as well with smbpasswd -a username, that would require "username" to be a user on the local machine first. Also, you can space separate multiple users or even set up a guest one with an administrative user with more permissions.

I have had it work without restarting samba, but it's worth doing..

sudo /etc/init.d/samba restart

To mount this (from windows) you would need to do: \\servername\sharename wither username as the user and whatever password you have on the system.

Here is the Samba page for the Users/Security

share|improve this answer
thank you for your answer. This is exactly what I did and it worked. – jenglee Dec 19 '12 at 19:33

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.