[Samba] question on homedir template options

Rowland penny rpenny at samba.org
Mon Apr 12 19:19:48 UTC 2021


On 12/04/2021 20:06, Serge Erlikh via samba wrote:
> Hello dear Samba experts!
>
> I've samba running on a linux server with user home directories located in
> a bit unusual way.
>
> The directories are grouped by first letter in username like in this
> example:
>
> user: John Doe
> username: jdoe
> home directory: */home/J/jdoe*
>
> Samba works with winbind using ADS and authenticates.
>
> So far if I use template homedir = /home/%U
>
> and create /home/jdoe folder it works, but I need to configure it to use
> the existing folders grouped by the letter.
>
> Is there any way to configure this using variables in samba/winbind config?
No, the only chance you have of getting this to work, is to use the 
winbind 'ad' backend and set the homedir using the unixhomedir 
attribute, but you will have to fill in the rfc2307 attributes as well.

Rowland






More information about the samba mailing list