Sharing an external hard drive in Ubuntu using Samba
Posted
by
cambraca
on Super User
See other posts from Super User
or by cambraca
Published on 2011-01-07T20:23:42Z
Indexed on
2012/03/18
18:05 UTC
Read the original article
Hit count: 337
/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..
© Super User or respective owner