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

Title: netlogon.bat problem
Post 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
Title: Re: netlogon.bat problem
Post by: cactus on June 01, 2007, 02:18:27 PM
Quote from: "leiw"
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.
Title: Re: netlogon.bat problem
Post by: leiw on June 02, 2007, 09:57:09 AM
Quote from: "cactus"
Quote from: "leiw"
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
Title: Re: netlogon.bat problem
Post by: cactus on June 02, 2007, 11:56:18 PM
Quote from: "leiw"
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]
Title: netlogon.bat problem
Post by: Tib on June 04, 2007, 01:19:38 AM
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

Code: [Select]

Yum localinstall smeserver-loginscript-0.2-8.noarch.rpm


Do the
Code: [Select]

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]