Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: JoshuaR on November 19, 2009, 04:54:03 AM

Title: quick netlogon question
Post by: JoshuaR on November 19, 2009, 04:54:03 AM
I normally use a vbs logon script instead of a batch file. To change from the default 'netlogon.bat', is it as simple as modifying /etc/e-smith/templates/etc/smb.conf
and changeing this line from:
Code: [Select]
'logon script = netlogon.bat';to something like:
Code: [Select]
'logon script = netlogon.vbs';?

Thanks,
Josh
Title: Re: quick netlogon question
Post by: Stefano on November 19, 2009, 08:22:15 AM
you should:
- create /etc/e-smith/templates-custom/etc/smb.conf directory
- copy ithere the template fragment
- edit it as you suggested
- expand /etc/smb.conf
- restart samba

this is the right way for your modification to survive to SME's packages updates
Title: Re: quick netlogon question
Post by: JoshuaR on November 19, 2009, 09:05:45 AM
and to expand is just as simple as running:
Code: [Select]
expand-template /etc/e-smith/templates-custom/etc/smb.conf?
Title: Re: quick netlogon question
Post by: CharlieBrady on November 19, 2009, 02:23:04 PM
and to expand is just as simple as running:
Code: [Select]
expand-template /etc/e-smith/templates-custom/etc/smb.conf?

Not quite. You want:

expand-template /etc/smb.conf
Title: Re: quick netlogon question
Post by: JoshuaR on November 19, 2009, 11:24:55 PM
Many thanks Stefano and Charlie   :grin: