I have the following lines in my smb.conf to generate logon scripts on the fly. The script maps Samba shares to drive letters.
root preexec = /usr/share/logonscript/genlogon.pl %U %G %L
logon script = %U.bat
If I run the script manually in a termimal with values for the U, G, and L variables a logon script is created.
However, when log on from my Windows XP clients, the script is not created.
The clients can see the Samba server because I am able to manually map the Samba shares to drive letters.
The permissions for the logonscript directory are:
drwxr-xr-x root root
What am I missing?