Re: Running a section of code with admin privileges
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 06/29/05
- Next message: ADITYA CHS: "Re: ASP.NET Authuntication & Authorization"
- Previous message: JCreasy: "Running a section of code with admin privileges"
- In reply to: JCreasy: "Running a section of code with admin privileges"
- Next in thread: JCreasy: "Re: Running a section of code with admin privileges"
- Reply: JCreasy: "Re: Running a section of code with admin privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 28 Jun 2005 20:21:54 -0700
Hello JCreasy,
i would factor out that privileged code out of your main process. Package
that priv code in a NT Service or a COM+ component. Then let this code run
with admin privs and call into it from your least privileged demon.
Thats IMO the cleanest approach.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> This is rather similar to a post before titled "custom event log".
> What I want to do is use EventLog.CreateEventSource() in a remote
> application that will not be running admin privileges. I was hoping to
> find a way to temporarily allow admin privileges just to do the log
> event and then resume normal privileges.
>
> So far I have not been very succesful in finding a way to do this and
> it might be that it's just impossible for security reasons. If it is
> possible however, I would greatly appreciate any information on how to
> do this.
>
- Next message: ADITYA CHS: "Re: ASP.NET Authuntication & Authorization"
- Previous message: JCreasy: "Running a section of code with admin privileges"
- In reply to: JCreasy: "Running a section of code with admin privileges"
- Next in thread: JCreasy: "Re: Running a section of code with admin privileges"
- Reply: JCreasy: "Re: Running a section of code with admin privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|