[Samba] providing the current samba PID to a preexec script

Gerald (Jerry) Carter jerry at samba.org
Fri May 5 13:08:28 GMT 2006


-----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?





cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEW05MIR7qMdg1EfYRAsu7AJ9zqbMq1i0HsjS7BfoRNXq7PgfN2wCeNw9c
vabl3ZNq9Dkiq7LXfvuCWe4=
=bRLF
-----END PGP SIGNATURE-----


More information about the samba mailing list