install service without admin rights

hi

i have a app that runs as a service and it wont run on a non-admin account

is it possible to install a service on a non-admin account

LVL 1
peter2001Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

2266180Commented:
of course. you install it using the user/password you wish. BUT, that user must be granted (at least) the logon as a service privilege.
from the command line: http://www.windowsitpro.com/Article/ArticleID/15067/15067.html
or you can do it from the administrative tools (depends a little on your OS)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
peter2001Author Commented:
hi

is there anyway to run the program using some kind of TokenPrivilege

as i should imagine some of the people who use my program wont have the password to get the required rights so wont be able to run it

2266180Commented:
not a chanse. if that would be possible, than anybody would be able to grant themselves specific rights and run in a more priviledged environment: that would be a pretty big security issue, won't it?

there are 2 situations in real life:
1) software requires administrative privileges to install
2) the negation of the above
In the second case, if there is a service involved than the service will install itself by default under the local system account and will run under the local system privileges. However, if you need special registry access and alike, you will still have to get administrative support.

this is as designed and it is designed well :) If your program needs special things, than the people using it should be able to get administrative support to install it. adminstrators will in most cases support installation of software that is legitimate :)

of course, even though if installing the service requires administrative privileges, running it, does not (in most cases - depends what the service does/accesses).
peter2001Author Commented:
hi

thanks for your reply

i see what your saying

the link from your first post has some good tips for doing what i need then


regards pete

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.