The home drive is probably mounted by the default samba configuration. Have a look in the /etc/templates/etc/smb.conf folder ( I believe it should be there, otherwise it might be /etc/templates/etc/samba/smb.conf).
If you want to modify this section make a copy of the file into the same directory structure in the templates-custom folder and regenerate the configuration files and restart the service. for more details have a look at the Development documentation in the wiki.
The path should /etc/e-smith/templates/etc/smb.conf, inside has
many config file, I used vi to see the 61netlogonshare and
11logonScript, those two scripts also include netlogon, so I don't know
modify the scripts.[/quote]You should not be looking for the home drive, but for the logon drive, this should be in the 11logonHome segment.
It contains of a database entry so you can easily modify it, but as you want to disable it, we probably have to comment the lines out. Never change the original files, but instead make a copy of them to the custom folder:
[list=1]
- So first we make sure that the full path inside the custom tree is created:
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf
- Than we copy the fragment to the custom tree:
cp /etc/e-smith/templates/etc/smb.conf/11logonHome /etc/e-smith/templates-custom/etc/smb.conf/
- Now we need to edit the copy, therefore we navigate to the custom tree (otherwise nano complains that the filename is to long and cannot open the file):
cd /etc/e-smith/templates-custom/etc/smb.conf/
- You can use vi or some other editor, but I preffer nano
nano 11logonHome
This will open the configuration snippet. - Now we can comment out the relevant lines with a #. Modify the following line
return "logon home = $logonHome";[/li][/list]
}
to read #return "logon home = $logonHome";
return "";
}
.
After that exit Ctrl+X and confirm that you want to save with the suggested file name. - We have changed the configuration file templates but we still need to regenerate the new configuration file:
expand-template /etc/samba/smb.conf
- The last step is to make samba aware of the modified changes and therefore we need to restart it:
/etc/rc7.d/S91smb restart
If samba restarted properly it should read something like this:Restarting nmbd [ OK ]
Restarting smbd [ OK ]
- Now try if this works like we want by login in as a domain member on a M$ Windows system joined to the domain.[/list:o]Disclaimer: I have done this as a thought experiment and did not test it, if it does not work please come back here and we will try to work it out
