Proposing Code Domation to Samba -> Incl ability to remote start Win program from Samba client

Gerald (Jerry) Carter jerry at samba.org
Wed Mar 23 18:33:04 GMT 2005


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

Jeff Gehlbach wrote:

| There is no built-in RPC that I'm aware of for spawning arbitrary
| executables.

I meant that I need to know how psexec.exe operates....
So I downloaded it an did it myself.

|
| I am familiar with PsExec.  It seems to work by creating a service on
| the remote system that is configured to run the specified executable.
| When it's done, it tears down the helper service.  I've done a similar
| implementation (Windows->Windows only) using Win32 API functions
| including OpenSCManager(), CreateService(), StartService(),
| ControlService(), and DeleteService().

We just need client routines for the svcctl pipe, I've got
the parsing code in trunk.  If I were going to create a client
tool I would just write a psexec client for linux.  Although
it might be easier to add a 'net rpc psexec' subcommand.

This is not a hard project i don't think.




cheers, jerry

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

iD8DBQFCQbZgIR7qMdg1EfYRAuI1AKCvgBYhIyWI/0C72tjOr8HiS0r3iACfWrcY
FxNtXV7OTtMOLFRyh46wDqM=
=7DeQ
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list