[Samba] [homes] share not created unless linux user has a home directory in /etc/passwd

Mark Reidenbach mark.a.reidenbach at gmail.com
Thu Aug 11 21:24:23 MDT 2011


The /home/samba/homes/user directory already exists and does not need to be
created.  The problem is that samba does not create the \\server\user share
because it seems to be checking if there is an entry for the linux home
directory in /etc/passwd.  Adding a value of "/home/user" to /etc/passwd
causes the \\server\user share to be set up and mapped to
/home/samba/homes/user even though the passwd home directory, /home/user,
does not exist.

On Thu, Aug 11, 2011 at 10:13 PM, David Roid <dataroid at gmail.com> wrote:

> Hello Mark,
>
> You can write a preexec script for homes share to check and make home
> directory under /home/samba/homes, regardless of the home directory value
> from /etc/passwd.
>
> -David
>
> 2011/8/12 Mark Reidenbach <mark.a.reidenbach at gmail.com>
>
>> When adding a domain user to a samba 3.6 PDC I found that the [homes]
>> share
>> was not created.  It turns out there was no home directory specified in
>> /etc/password for this user.  Once a linux home directory was added the
>> [homes] share worked, but I would expect this to work anyway since a
>> different path is being used for windows home directories than for the
>> linux
>> users.   Is this expected behavior or a bug?
>>
>> [homes]
>>        comment = Home Directories
>>        path = /home/samba/homes/%S
>>        strict allocate = yes
>>        read only = No
>>        create mask = 0700
>>        browseable = No
>>        valid users = %S
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>
>


More information about the samba mailing list