[Samba] Re: root preexec script runs twice
Adam Tauno Williams
awilliam at whitemice.org
Mon Oct 18 02:07:25 GMT 2004
> [netlogon] is a special share. I would guess Windows mounts it more than
> once when user logins but you should see it then with 'log level = 5' as
> 'cmd=/home/samba/scripts/create-login-script.sh adrian.h' line in smbd
> logs. Have you tried to put this 'root preexec' into [home] share instead?
Workstations will connect/disconnect/reconnect to volumes at-will;
there is just no getting around that. Your preexec scripts need to be
able to cope with that fact, either check the date on something and
bail if the script has already been run (or more recently that some
interval) or use the parameters to avoid running for the same tuple
(User+workstation) multiple times.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20041017/7bcc0c2f/attachment.bin
More information about the samba