[Samba] providing the current samba PID to a preexec script
idra at samba.org
Fri May 5 19:39:03 GMT 2006
On Fri, 2006-05-05 at 08:08 -0500, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Valéry Roché wrote:
> > I'd to provide the current samba PID with wich the user
> > will be looged in. It seems this variable is %d in smb.conf
> > I write it in a log file, and all I can see is the domain
> > name, not the pid
> > here is the line in my smb.conf :
> > ....
> > root preexec = /samba_system/scripts/connect.sh %u %m %I %T %D %d
> > ....
> > what am I doiong wrong ?
> Should be fine. Are you sure its not a problem with your script?
I would add "" around each variable to avoid the shell breaking any
value that embed spaces, etc...
Samba Team GPL Compliance Officer
email: idra at samba.org
More information about the samba