Rowland penny
2019-Aug-27 14:28 UTC
[Samba] How can i know the user home directory with wbinfo or smbclient.
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
Juan Ignacio
2019-Aug-27 14:55 UTC
[Samba] How can i know the user home directory with wbinfo or smbclient.
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 10.20.1.5:/domain/samba/jfk/homes/staff/adscripcion/$USER/ /home/DOMAIN/$USER/ That part: 10.20.1.5:/domain/samba/jfk/homes/staff/adscripcion/$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. Thx. 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 >
Rowland penny
2019-Aug-27 15:04 UTC
[Samba] How can i know the user home directory with wbinfo or smbclient.
On 27/08/2019 15:55, Juan Ignacio via samba wrote:> 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.It is going to be a lot easier to do it the other way around, store the home directory on Linux and mount it from there. But it is your domain, so try it your way first, if you must. Rowland
Reasonably Related Threads
- How can i know the user home directory with wbinfo or smbclient.
- How can i know the user home directory with wbinfo or smbclient.
- How can i know the user home directory with wbinfo or smbclient.
- should sub(perl=TRUE) also handle \E in replacement, to complement \U and \L?
- Samba 4 Member server show diferent UID than Ad Server