[Samba] Running "net join" from web page

Gerald (Jerry) Carter jerry at samba.org
Thu Dec 16 14:11:21 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Madsen wrote:
| Hi all,
|
| i'm trying to make a linux box join a windows domain by calling "NET
| JOIN" from php/perl.
| The join works perfecly when used from the command line.
|
| I made a perl script that runs the actual command, set-uid it to root
| and ran it from php.
| Then i got this error:
| [2004/12/16 14:33:24, 0] libsmb/clientgen.c:cli_initialise(251)
| libsmb based programs must *NOT* be setuid root.
|
| How can i make "net join" run from a webpage/perl setup? Have anybody
| else tried this?
|
| BR and thanks,
| Thomas.

I would use sudo instead of setuid root.




cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBwZeJIR7qMdg1EfYRAqPvAKClqA9wBaQG50klgYaZuzU24vL6XQCdHYlj
32YRgme//AmCUj542DcAPb4=
=1r6f
-----END PGP SIGNATURE-----


More information about the samba mailing list