Sharing an external hard drive in Ubuntu using Samba
- by cambraca
/media/MYDISK is where my hard drive is mounted automatically. I created a symlink using:
ln -s /media/MYDISK /home/camilo/MYDISK
chmod 777 /home/camilo/MYDISK
I'm setting up smb.conf like this:
[myshare1]
comment = external disk
browsable = yes
path = /home/camilo/MYDISK
guest ok = yes
read only = no
create mask = 0775
Also, in the [global] section I tried adding the following lines:
follow symlinks = yes
wide links = yes
unix extensions = no
The problem is that when browsing the shared folder in Windows 7, I get a "\\etc\myshare1 is not accessible" error.
When pointing the path to a regular folder it works fine. Also, when I point it directly to /media/MYDISK, it shows the same error.
EDIT: to make it more interesting, I have no graphical interface, so I need to touch the config files directly..