Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Tyrone Miles on February 15, 2002, 03:30:36 PM

Title: smb.conf
Post by: Tyrone Miles on February 15, 2002, 03:30:36 PM
Is there a way I can change the logon script statement from netlogon.bat to
%U.bat. I know how to change it but what do I need to do to stop e-smith from changing it back if I reboot etc?
Title: Re: smb.conf
Post by: guestHH on February 15, 2002, 04:42:31 PM
Hi,

You have to make a custom template. See http://www.e-smith.org/custom/

Regards,
guestHH
Title: Re: smb.conf
Post by: Robert Heaton on February 15, 2002, 05:28:21 PM
Hi,

You can make a custom template or edit this file on your SME server;

/etc/e-smith/templates/etc/smb.conf/11logonScript


Kind regards,
Rob.
Title: Re: smb.conf
Post by: Tyrone C. Miles on February 15, 2002, 05:32:45 PM
So I should be able to copy 11logonScript over to my custom folder and from there edit it?

Do I need to reboot for the templates to take effect or can I just restart samba?

Thanks for everyone's help! :)
Title: Re: smb.conf
Post by: Tyrone C. Miles on February 15, 2002, 05:37:12 PM
Once I make my own template does that template edit my smb.conf file? Because even after I copied the 11logonScript template over the the custom folder and changed the logon script to be %U.bat when I check the smb.conf file it still shows the logon script to be netlogon.bat?
Title: Re: smb.conf
Post by: guestHH on February 15, 2002, 08:25:57 PM
Hi,

You have to expand the template by: /sbin/e-smith/expand-template /etc/smb.conf

This will fix you a new smb.conf with the parameters you entered in your custom template fragment.

Regards,
guestHH
Title: Re: smb.conf
Post by: Tyrone C. Miles on February 15, 2002, 08:45:50 PM
Opps, thanks a lot Mr Wang, I knew there was something simple I was forgetting!