Proposing Code Domation to Samba -> Incl ability to remote
start Win program from Samba client
Jeff Gehlbach
sambatech at jeffg.org
Wed Mar 23 17:58:32 GMT 2005
Hi!
On Wed, Mar 23, 2005 at 11:31:22AM -0600, Gerald (Jerry) Carter wrote:
> Michael Lueck wrote:
> | I need to have the ability for a Samba client running on Linux to send
> | the correct SMB over to a Windows box to have it start a process over
> | there. SysInternals has developed such an add-on (PsExec.exe) for Win32,
> | and MS has one in the resource kit. As far as I can tell, this
> | functionality has not been put into the Samba project. (Please correct
> | me if I am wrong)
> | <SNIP>
>
> If this is just an rpc for psexec.exe, then we can add it
> pretty easily. Can you send me a trace of psexec starting the
> application on a remote Windows server ?
There is no built-in RPC that I'm aware of for spawning arbitrary
executables.
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().
-jeff
More information about the samba-technical
mailing list