First, add the folder you want to share in your Shared Folder list. That is System Administration Shared Folders (if this menu item is missing, pres Alt-F2 and run "shares-admin"). You may need to click on the Unlock button and enter your password. Click the Add button. On the opening dialog, choose the path of the folder and the name by which the folder will be exposed. Make sure that you selected Share through: Windows networks (SMB) and that you unchecked the Readonly checkbox. Click Ok and close the Shared Folders dialog.

Now, edit the /etc/samba/smb.conf file as root to change the authentication method:

sudo gedit /etc/samba/smb.conf

Go to the Authentication section and uncomment the security=user line. (You uncomment the line by removing the preceding semicolon). Make it look like this:

####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user

# You may wish to use password encryption. See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true


Now, you have to setup a password for the user that will have remote access to your shared foders. Run this command:

# smbpasswd your-username
New SMB password: *******
Retype new SMB password: *******
#


Now go to the other computer and open Nautilus. At the location type:

smb://your-username@host/folder-name

Replace your username, host name (or IP) and the folder's name (make sure you use the share name as it may differ from the folder's real name). You should be able to browse and modify the contents of the remote folder by now.

4 Comments

  1. Ghuloomo says:

    But there is no Shared Folders in System >> Administration !!
  2. giannis says:

    It was there until version 8.04! Anyway, I updated the post... Thanks!
  3. Rony Mattar says:

    Hello! thanks for the article.
    I just didn't understand the last section, you said go to the other computer and open Nautilus, what is Nautilus? I'm new to Ubuntu and I would like to understand the whole tutorial you wrote.

    Thanks for your time
    Rony
  4. OneEyedMan says:

    It is true that the shared folders option is not there. However, you can browse to the folder using Nautilus (the file browser) and choose to share it. These these directions are fine.

Leave a Reply