[Samba] One account can access samba, another can't.

Stan Hoeppner stan at hardwarefreak.com
Thu Jul 8 20:07:13 MDT 2010

Michael Sullivan put forth on 7/8/2010 2:41 PM:

> [homes]
> path=/samba/michael
> valid users=michael
> writable=yes
> path=/samba/amy
> valid users=amy
> writeable=yes

I'd suggest you set the UNIX HOME variable to match these non standard home
paths.  For instance, the default UNIX home dir is set as, in my case:

[08:57:34][stan at greer]~$ set

In your case, set the HOME variable for each UNIX user account according to
the correct but non standard path you are using:


Read your distro documentation on how to set the user HOME variable.  After
you've done so, you should be able to use something like this in smb.conf:

   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0775
   directory mask = 0775
   valid users = %S

with success.

There are probably other ways to skin this cat, but this is the setup I've
been using and it works perfectly, albeit on Debian Lenny with Samba 3.2.5
(workgroup--not a domain controller).  Once you've done this you can browse
Windows Network Neighborhood and map the user home share to a drive letter.


More information about the samba mailing list