[Samba] Samba settings for public and HOME

Jeenu V jeenuv at gmail.com
Fri Nov 26 08:23:50 MST 2010

On a Lucid server, I've two sections defined in my /etc/samba/smb.conf
file: one is the default [homes] section and another public share that
I'm using share files in LAN.

   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0600
   directory mask = 0700
   valid users = %S
   guest ok = no

   comment = Shares
   path = /work/share
   browseable = yes
   read only = yes
   create mask = 0600
   directory mask = 0700
   guest ok = yes

With the default security = user, I can't have the public share
accessible to the world, because it asks for password and rejects
anyone without right credentials. To circumvent that I set security =
share. Now I'm able to see the directory 'share' when I do \\my-server
from Windows. However, the problem I face is that, I can't access my
home directory by saying \\my-server\jeenu; it says not accessible.
However, I'm able to map it via Tools->Map Network Drive, by giving
the right credentials.

My question is how can I (or any one) have the best of both the
worlds? I.e. without having my home directory network mapped, how to
access the share by typing \\my-server and access their home directory
by \\my-server\jeenu.

FWIW, I've:
  map to guest = bad user


More information about the samba mailing list