[Samba] How can i know the user home directory with wbinfo or smbclient.

Juan Ignacio juan.ignacio.pazos at gmail.com
Tue Aug 27 14:55:00 UTC 2019

Yes i have something like that on the user.
But my objective is from the linux client machine get that attribute or
info to mount or sync the windows home.

I have that line on my script for example:

rsync -avzX -e "ssh -o StrictHostKeyChecking=no -i /home/public/id_rsa"
--progress -m --chown=$USER:$GROUP
root at$USER/

That part:$USER/ is
the windows home of the user , i like get the line
:/domain/samba/jfk/homes/staff/adscripcion/$USER/   "The windows home"
from some command or know if it is possible.


El mar., 27 ago. 2019 a las 11:29, Rowland penny via samba (<
samba at lists.samba.org>) escribió:

> On 27/08/2019 14:54, Juan Ignacio via samba wrote:
> > I set the homeDirectory directly in the AD object.
> > For it i like know if i can access to that info throw some tool.
> >
> Have you set it something like:
> \\fileserver\users\username
> If you have, then you only need a root preexex script and these lines in
> smb.conf:
>      winbind use default domain = yes
>      template homedir = /home/%D/users/%U
> and the '[homes]' share needs to look like this:
> [homes]
>     comment = Home Directories
>     browseable = no
>     read only = no
>     valid users = %S
>     root preexec = /usr/local/sbin/mkhomedir.sh %U %H
> Rowland
> --
> 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