Yosel Lazaro Vera Gonzalez
2016-Mar-02 13:04 UTC
[Samba] changing location for the profiles and sysvol folder
Is it possible to define a different location for the profiles and sysvol folder during the provision of samba4 ? how can I do it ?
Rowland penny
2016-Mar-02 13:41 UTC
[Samba] changing location for the profiles and sysvol folder
On 02/03/16 13:04, Yosel Lazaro Vera Gonzalez wrote:> Is it possible to define a different location for the profiles and sysvol folder during the provision of samba4 ? how can I do it ?No, You cannot do this, during the provision a smb.conf is created that is based on how Samba was configured when compiled, no profiles share is created and sysvol is hard coded to be in PREFIX/var/ You could compile Samba yourself and set ' --localstatedir' to wherever you want the 'sysvol' directory to be created, but this would also affect everything else that ends up in PREFIX/var/. Rowland
Marc Muehlfeld
2016-Mar-02 16:50 UTC
[Samba] changing location for the profiles and sysvol folder
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