By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

Problem with Process.Start command

P: n/a
Does anyone know of an alternate command to invoke an executable other
than Process.Start ? I have a service that invokes an executabe. But
the service has minimal privs. and I'm getting an access denied error
when I run the command Process.Start(executable). It works fine when the
service has admin privs. but this can't be the case.. I need a command
that doesn't need admin. privs.
Thanks.
Carol

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
The service should be able to start a process using Process.Start, are you
sure that the service identity has the nessesary privs (ACL) to start the
program?

Willy.

"hangten" <no******@pacbell.net> wrote in message
news:ug*************@tk2msftngp13.phx.gbl...
Does anyone know of an alternate command to invoke an executable other
than Process.Start ? I have a service that invokes an executabe. But
the service has minimal privs. and I'm getting an access denied error
when I run the command Process.Start(executable). It works fine when the
service has admin privs. but this can't be the case.. I need a command
that doesn't need admin. privs.
Thanks.
Carol

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

P: n/a

The service is started up under a username/password. They do not want
this account to have admin. privs. When you say the necessary privs.
(ACL) what privs do you mean ? What privs. does that account need to
start the program. It has "run as service"
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

P: n/a
Make sure "username" has "Read & Execute" privileges on the executable image
file(.exe, .bat or .cmd file).
I'm also not clear what kind of program you are trying to start from your
service, but if it's a windows program, this won't work (unless SYSTEM is
the service identity and "Can interact with desktop" is set).
Another thing to consider is, once the program runs, it uses the same
identity (and privileges) as the service. I suggest you start the program
from the command line using the same identity as the service. To do this you
can use the "runas" service, just type runas from the cmd prompt to see the
options.
Willy.

"hangten" <no******@pacbell.net> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...

The service is started up under a username/password. They do not want
this account to have admin. privs. When you say the necessary privs.
(ACL) what privs do you mean ? What privs. does that account need to
start the program. It has "run as service"
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.