Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: leiw on June 01, 2007, 01:29:03 PM
-
I already commented the following line. but the user login still mounted
their home drive ???
/etc/samba/smb.conf
#logon script = netlogon.bat
/home/e-smith/files/samba/netlogon/netlogon.bat
#REM to set the time when clients logon to the domain:
#REM net time \\servername /set /yes
#REM
#REM To map a home directory to drive h:
#REM net use h: /home
Thanks
-
I already commented the following line. but the user login still mounted
their home drive ???
/etc/samba/smb.conf
#logon script = netlogon.bat
/home/e-smith/files/samba/netlogon/netlogon.bat
#REM to set the time when clients logon to the domain:
#REM net time \\servername /set /yes
#REM
#REM To map a home directory to drive h:
#REM net use h: /home
Thanks
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.
-
I already commented the following line. but the user login still mounted
their home drive ???
/etc/samba/smb.conf
#logon script = netlogon.bat
/home/e-smith/files/samba/netlogon/netlogon.bat
#REM to set the time when clients logon to the domain:
#REM net time \\servername /set /yes
#REM
#REM To map a home directory to drive h:
#REM net use h: /home
Thanks
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.
Thanks
-
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 :-)
-
Leiw
why don't you use the login scrip rpm ... I use it and it works great.
cd to your install dir.
download the RPM
wget http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/loginscript/RPM/smeserver-loginscript-0.2-8.noarch.rpm
then do
Yum localinstall smeserver-loginscript-0.2-8.noarch.rpm
Do the
signal-event post-upgrade; signal-event reboot
Then go to your web interface and look under Collaboration you will see Login script manager.
Setup your login requirements there ... it even has a bit of an example.
Any problems let me know ... I have it running nicely.
You may want to have a read of this thread as well:
http://forums.contribs.org/index.php?topic=32788.0
Regards,
Tib[/code]