- Connect and mount the drive to the Ubuntu computer. (The format of the drive, NTFS vs EXT4, doesn’t seem to matter for this to work so I ended up formatting it as NTFS for future portability.)
- Do not right-click on the drive and go into the sharing options via the drive’s properties. This will not work.
- Make sure you have Samba installed. (You can find it in the Ubuntu Software Center titled “SMB/CIFS file, print, and login server for Unix”)
- Install, if you haven’t already, install the Samba GUI. (Also in the Ubuntu Software Center titled “Samba” with a description of “Create, modify, and delete samba shares”.)
- Open a Terminal session and run the Samba GUI from the command line with
# sudo system-config-samba
- File|Add Share
- Browse for the drive you wish to share and select it
- Change the share name if you’d like to. (For this example my share name is “Media01”)
- Check “Writeable” if you wish to be able to write to this drive from other computers on the network.
- Check “Visible” if you’d like others to see the share while browsing the network.
- On the Access tab, select “Allow access to everyone” (This will avoid the problems of having to specify usernames and passwords in programs like XMBC and MediaPortal.)
- Click OK (You should be done at this point but you’re not. This is what caused me the most headaches to find.)
- Back at the command line:
# cd /etc/samba
# sudo pico smb.conf
(Feel free to use the editor of your choice. I like Pico.)- Scroll to the bottom of the file. There you should find
[Media01]
(remember that’s the name of the share I created.) - Add the following new line in that section:
force user = username
(In my case username is “msauers” since that’s the username I log in to Ubuntu with. Replace with your username.) - Save the edited file.
# sudo restart smbd
(restarts Samba)