Archive for October, 2009

Automatic Logon Script For Windows and Samba

A couple months ago i read article about Generate otomatis Logon script di Samba.

you should put this code in /etc/samba/smb.conf

[global]
logon script = %U.bat

[netlogon]
path = /data/netlogon
writeable = no
guest ok = no
root preexec = /data/netlogon/logonscript.sh %U
root postexec = rm -f /data/netlogon/%U.bat

This script is very helpful when we have a lot of user and share folder. so, we don’t have to add a logon script manually.

Download.