[Samba] changing location for the profiles and sysvol folder

Marc Muehlfeld mmuehlfeld at samba.org
Wed Mar 2 16:50:04 UTC 2016


Hello Yosel,

Am 02.03.2016 um 14:04 schrieb Yosel Lazaro Vera Gonzalez:
> Is it possible to define a different location for the
> profiles and sysvol folder during the provision of
> samba4 ? how can I do it ?

* Stop Samba
* Change the paths in smb.conf for
  * your profile share
  * sysvol + netlogon share (the latter is a shared
    subfolder of the sysvol path)
* Move the folders to the new location
* Start Samba


You can see, by using "smbstatus" during a domain member logon, that the
Sysvol stuff is loaded by the Windwos client from the new location:

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock
   SharePath   Name   Time
--------------------------------------------------------------------------------------------------
1094         10000      DENY_WRITE 0x120089    RDONLY
EXCLUSIVE+BATCH  /sysvol
samdom.example.com/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
  Wed Mar  2 17:32:25 2016


Also "samba-tool ntacl sysvolreset" uses the path from smb.conf and
fixes ACLs on the new destination, if necessary.


Regards,
Marc



More information about the samba mailing list