[Samba] logon script problem

Fabio Marcone fabio.marcone at duet.it
Thu May 3 08:09:54 GMT 2007

I've a problem with "logon script" parameter: client doesn't run this
script and i've no error in samba logs. I'm using samba 3.0.24 (etch)
with windows XP SP2 client side.

workstation was joined in domain and user login (using roaming profiles)
is executed without errors.
I used unix2dos tool to transform the script in dos way and if I run the
script in widows with double click, it is executed without errors.

Anyone can help me? I searched a lot but I get no infos about this problem.

Thanks in advance,

riporto la parte di interesse di smb.conf:

logon home = \\%L\%U\.profiles
logon script = backup.bat
max protocol = NT1
delete user script = /usr/sbin/smbldap-userdel "%u"
passwd chat = *new*password* %n\n *new*password* %n\n *successfully*
add user script = /usr/sbin/smbldap-useradd -m "%u"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
ldap group suffix = ou=Groups
syslog = 1
passdb backend = ldapsam:ldap://
ldap delete dn = Yes
load printers = no
create mask = 0770
domain logons = yes
logon path = \\%L\profiles\%U
netbios name = pdc-server
server signing = Auto
guest account = nobody
directory mask = 0770
unix charset = ISO8859-1
preferred master = yes
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
printcap name = cups
smb ports = 139 445
passwd program = /usr/local/sbin/smbldap-passwd  %u
workgroup = Oikos
enable privileges = yes
encrypt passwords = yes
delete group script = /usr/sbin/smbldap-groupdel "%g"
ldap user suffix = ou=People
ldap admin dn = cn=admin,dc=duet,dc=it
name resolve order = wins bcast
ldap passwd sync = Yes

add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
ldap ssl = No
max log size = 1000
unix password sync = no
obey pam restrictions = no
socket options = TCP_NODELAY
panic action = /usr/share/samba/panic-action %d
restrict anonymous = no
add machine script = /usr/sbin/smbldap-useradd -w "%u"
dns proxy = no
server string = %h server (Samba %v)
logon drive = H:
os level = 34
invalid users = root
ldap suffix = dc=duet,dc=it
printing = cups
wins support = no
map to guest = Bad User
ldap machine suffix = ou=Computers
security = user
domain master = yes
log file = /var/log/samba/log.%m

browseable = yes
store dos attributes = yes
directory mask = 0700
guest ok = no
printable = no
path = /shares/profiles
read only = no
create mask = 0600

comment = Network Logon Service
path = /shares/netlogon
browseable = no
guest ok = yes
read only = yes
path = /shares/netlogon
valid users = %U


Dott. Fabio Marcone

2T srl
Telefono	                        +39 - 0871- 540154
Fax		                        +39 - 0871- 571594
Email	                           	fabio.marcone(AT)duet.it	
Indirizzo				Viale B. Croce 573
                                        66013 Chieti Scalo (CH)
GNU/Linux registered user  		#400424

More information about the samba mailing list