I've created a new domain in Zentyal Development 6. To quote their documentation:
By default each LDAP user has a personal /home/ directory on the server. If the File Sharing module is active this directory will be accessible to the specific user (and only to the user) through SMB/CIFS. Furthermore, if a Windows client host is joined to the domain this directory will be automounted as drive H:.
This reads as though disabling this is as simple as disabling the File Share module. However, this is not possible without also disabling the Directory Services module.
Domain Controller and File Sharing in Same Module (image)
This is NOT desirable in my environment. I've searched high and low for a way to turn this off, but I have been unsuccessful. There does not appear to be a way to disable this functionality in the web console and if I modify the configuration in dsa.msc
the configuration is re-set after a minute or two.
This does not appear to be connected with any group policies as the policy item for this setting is left Not Configured
, which tells me this is something with Zentyal itself.
There are a few forum posts on the Zentyal forums which have users asking about the same thing, but these either have no answer or in the case of the last one, relies on setting a group policy to fight override Zentyal.
It's worth noting that in the documentation linked above, there is a "General Settings" tab in the File Sharing module. This is missing in my configuration.
Imho, Domain Services and File Share should be two separate and disparate components that you would install separately. Following this pattern, disabling the home drive configuration is good, but disabling or removing Samba entirely would be even more ideal. Domain Controllers hosting files seems like a terrible design flaw and security hole in my mind, which is likely why Windows Server best practice says that you should NEVER install Domain Service and File Share roles on the same server.
Edit: I found this Zentyal document and two settings within:
SAMBA (/etc/zentyal/samba.conf
)
# Uncomment this if you want to skip setting the home directory of the
# users while saving changes
#unmanaged_home_directory = yes
USERS (/etc/zentyal/users.conf
)
# whether to create user homes or not
mk_home = yes
I set both of these items to 'no', but this saw no effect. The file share was created and new users have a home drive set.