[CentOS] [Samba] Samba 4.1.7 + CentOS 6.5 - Home's directory mounting in W7 + Roaming of Profils

Thu Jun 5 12:39:47 UTC 2014
John Doe <jdmls at yahoo.com>


From: Pascal Blétard <paddelman at hotmail.com>

> 1) Is it possible to configure Samba (4.1.7) directly from GNU/Linux (CentOS 
> 6.5) for automatically mount the user's home directory to "H:" 
> when he connects to the domain ?

This worked for me:

/etc/samba/smb.conf
  logon script = logon.bat
  logon path = \\%L\Profiles\%U
  logon home = \\%L\%U
  logon drive = h:

  [netlogon]
   path = /home/SAMBA/netlogon/
   browseable = no
   read only = yes
   write list = Administrator root @smb-admin

/home/SAMBA/netlogon/logon.bat
  net use H: \\FILER\home
  net time \\FILER /set /yes

JD