Rowland, thanks for your effort, I highly appreciate it! From what I had read before... [home] would be an arbitrarily named share and its preexec command would execute whenever a domain user connects to it [homes] is a special purpose section in the smb.conf that comes into play whenever a domain user connects to his or her home dir defined on the DC What MJ is telling seems to confirm this distinction. (continued in my response to him) Am 21.10.2015 um 13:21 schrieb Rowland Penny:> On 21/10/15 12:13, Ole Traupe wrote: >> Rowland, I apologize: I have overlooked this answer of yours before >> my last post. >> >> >> I think you may still be missing the obvious, >> >> I was suspecting that. >> >> >> '[homes]' *does not work* on a DC. >> >> You mean in general or in my assumed use case? >> >> >> > > I am now beginning to think it doesn't work at all, if samba4 is > involved in any way. I knew that it wouldn't work on a DC (probably > because the user is DOMAIN\username and not just username), but from > my experiment (see my earlier post) it doesn't seem to work at all, > try your setup with '[home]' and a path line. > > Rowland >
On 21/10/15 13:32, Ole Traupe wrote:> Rowland, thanks for your effort, I highly appreciate it! > > From what I had read before... > > [home] would be an arbitrarily named share and its preexec command > would execute whenever a domain user connects to it > [homes] is a special purpose section in the smb.conf that comes into > play whenever a domain user connects to his or her home dir defined on > the DC > > What MJ is telling seems to confirm this distinction. > > > >If you read this Samba wiki page: https://wiki.samba.org/index.php/User_home_drives It says this: Do not name the share "[homes]", as this is a special share (see the smb.conf manpage)! <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html> The "[homes]" share on an AD DC cannot handle the automatic folder creation we will setup below and as such will not work! I am now beginning to believe the above is not true. Before a user can connect to their homeshare it must exist, it is the link to this, that Samba creates i.e. it changes '[homes]' to the username and connects to that. This is working for me on a Debian 4.1.17 DC just as it has always done on a member server, I just never tried it before. Rowland
Oh, and of course the auto-creation works if you put the path \\server\home\user into the "Profiles" tab of the user properties in the ADUC console. This is explicitly, what the samba wiki suggests, as it is directed to using Windows clients. As soon as you press "Ok", the folder is created Am 21.10.2015 um 14:52 schrieb Rowland Penny:> On 21/10/15 13:32, Ole Traupe wrote: >> Rowland, thanks for your effort, I highly appreciate it! >> >> From what I had read before... >> >> [home] would be an arbitrarily named share and its preexec command >> would execute whenever a domain user connects to it >> [homes] is a special purpose section in the smb.conf that comes into >> play whenever a domain user connects to his or her home dir defined >> on the DC >> >> What MJ is telling seems to confirm this distinction. >> >> >> >> > > If you read this Samba wiki page: > https://wiki.samba.org/index.php/User_home_drives > > It says this: > > Do not name the share "[homes]", as this is a special share (see the > smb.conf manpage)! > <https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html> The > "[homes]" share on an AD DC cannot handle the automatic folder > creation we will setup below and as such will not work! > > I am now beginning to believe the above is not true. Before a user can > connect to their homeshare it must exist, it is the link to this, that > Samba creates i.e. it changes '[homes]' to the username and connects > to that. This is working for me on a Debian 4.1.17 DC just as it has > always done on a member server, I just never tried it before. > > Rowland >
On 10/21/2015 02:52 PM, Rowland Penny wrote:> I am now beginning to believe the above is not true. Before a user can > connect to their homeshare it must exist, it is the link to this, that > Samba creates i.e. it changes '[homes]' to the username and connects to > that. This is working for me on a Debian 4.1.17 DC just as it has always > done on a member server, I just never tried it before.This is what we observe, yes. The only problem with this that ADUC autocreation does NOT work with this, rather unfortunate. If someone knowns of a way to make ADUC NOT create the homdir, we would like to know. The preexec in smb.conf does it, and ADUC should simply accept whatever we type for homedir. MJ