Koozali.org: home of the SME Server

quick netlogon question

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
quick netlogon question
« 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
Life's tragedy is that we get old too soon, and wise too late...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: quick netlogon question
« Reply #1 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

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
Re: quick netlogon question
« Reply #2 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?
Life's tragedy is that we get old too soon, and wise too late...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: quick netlogon question
« Reply #3 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

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
Re: quick netlogon question
« Reply #4 on: November 19, 2009, 11:24:55 PM »
Many thanks Stefano and Charlie   :grin:
Life's tragedy is that we get old too soon, and wise too late...