473,395 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Run app with elevated privliges

I am writing an app to remotly stop and start windows services. I have the
app working fine as long as you have Admin rights to the remote box (where
I'm stoping services). I want to allow a user (who is not a admin) to run
this script with some sort of elivated privliges. So is there a way I can
make my script run with admin privlidges without telling the user the admin
userid and password.
--
Thanks for the help!
Brian
Apr 7 '06 #1
3 1542
As a quick guess, you can try using impersonation and use a named admin
account which is listed in the web.config (whihc your user cannot see),
revoke access in the location tags in web.config to anyone but the named
user in the authorisation section and you should have a workable solution.

Some links to help you.
http://msdn.microsoft.com/library/de...ersonation.asp
http://samples.gotdotnet.com/quickst...figformat.aspx
http://support.microsoft.com/default...;EN-US;Q316871
--
Regards

John Timney
Microsoft MVP

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
I am writing an app to remotly stop and start windows services. I have the
app working fine as long as you have Admin rights to the remote box (where
I'm stoping services). I want to allow a user (who is not a admin) to run
this script with some sort of elivated privliges. So is there a way I can
make my script run with admin privlidges without telling the user the
admin
userid and password.
--
Thanks for the help!
Brian

Apr 7 '06 #2
oops - sorry, thought you were in the asp.net group

--
Regards

John Timney
Microsoft MVP

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
I am writing an app to remotly stop and start windows services. I have the
app working fine as long as you have Admin rights to the remote box (where
I'm stoping services). I want to allow a user (who is not a admin) to run
this script with some sort of elivated privliges. So is there a way I can
make my script run with admin privlidges without telling the user the
admin
userid and password.
--
Thanks for the help!
Brian

Apr 7 '06 #3
this might help you..............

http://blogs.parivedasolutions.com/b...rsonation.aspx

--
Regards

John Timney
Microsoft MVP

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:uk**************@TK2MSFTNGP02.phx.gbl...
As a quick guess, you can try using impersonation and use a named admin
account which is listed in the web.config (whihc your user cannot see),
revoke access in the location tags in web.config to anyone but the named
user in the authorisation section and you should have a workable solution.

Some links to help you.
http://msdn.microsoft.com/library/de...ersonation.asp
http://samples.gotdotnet.com/quickst...figformat.aspx
http://support.microsoft.com/default...;EN-US;Q316871
--
Regards

John Timney
Microsoft MVP

"Brian" <Br***@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
I am writing an app to remotly stop and start windows services. I have
the
app working fine as long as you have Admin rights to the remote box
(where
I'm stoping services). I want to allow a user (who is not a admin) to
run
this script with some sort of elivated privliges. So is there a way I
can
make my script run with admin privlidges without telling the user the
admin
userid and password.
--
Thanks for the help!
Brian


Apr 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: hannes.lambrecht | last post by:
Hi, A question about clickOnce deployment. How can I make a clickOnce application with elevated permissions work, when dowloaded from the internet zone. I always get the message: "This...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: Shalini | last post by:
Hi I am posting this again.Sorry for the trouble. I just have a third party dll which does some custom functionality. The Dll have some apis which run only when the user is an administrator. I...
1
by: Lee Gillie | last post by:
I need to be able to kill a process programmatically under ASP.NET. IIS runs under the local system account. The user accessing the web is using anonymous access. We would prefer NOT to grant...
2
by: the.duckman | last post by:
G'Day, I have a simple peice of code behaving in a rather eratic manner. outputStreams = new MemoryStream(); //.... some code to add values to the stream ... bool ready = false; //.... some...
5
by: Franklin M. Gauer III | last post by:
Hi All, I've written an ASP.NET application (webservice) that does simple serial communications via the .NET 2.0 SerialComm object. The application runs fine on my development machine. The...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
1
by: David Hearn | last post by:
(Apologies if this is not the appropriate group) I'm trying to use an external USRobotics USB modem (Model 5633B) in Vista - and talk to it via AT commands from my C# application (using VS2008 +...
1
by: janneman | last post by:
Hi everybody, I am trying to display the window of an elevated application (which is minimized) from a non-elevated application. My construction works on Win2K and WinXP but refuses to work on...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.