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.

Advertisements

1 Response to “Automatic Logon Script For Windows and Samba”


  1. 1 Alonzo January 24, 2015 at 3:15 pm

    Writing blog is pain in the ass.I know where you can get unlimited content for your page, type
    in google:
    Anightund’s rewriter


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: