Allow user to run application as a power user
- From: Ed Murphy <EdMurphy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 09:17:14 -0700
Hello,
I have an application that I am distributing with SMS. The problem that I
am having is that the application, now on the target machine, requires power
user or admin privledges to run. I can run the application via sms in the
system context, but that will not help, since the app configures the user's
environment.
So unless someone knows of an easier solution, I need to run a script, in
the system context that makes the current logged on user a member of the
local power users group, if they are not already a member of that group or
the admins group and then run the application under the user's context.
Finally, after the application is complete, the script, under the system
context again, would then revert the user back to his former permission
level, i.e., return user to former group memberships.
I don't think that this can be done with one script, because of the context
issues. But, since I am using SMS, I can use three different scripts and
chain them together.
1. Promote the current logged in user to a member of the local power users
group, if needed.
2. Run the application under the user's context.
3. Demote the current logged in user back to his original group memberships.
Since we don't normally allow membership in the power users group, I guess
it would be ok to specifically remove the user from the power users, but if,
in the future, we did allow permanent power users, this approach could cause
problems.
Another concern is security. I realize that during the period between the
first and third scripts that the user could exploit the elevated privledges.
Worse yet, they could kill the process before the third script can run, which
would leave them in the elevated state.
Unfortunately, I am really just learning to script, so the details are
currently beyond me. I am not sure if these scripts should be in VB or not.
If anyone could offer suggestions or point me in the right direction, I would
be grateful.
Thanks,
Ed
.
- Follow-Ups:
- Re: Allow user to run application as a power user
- From: Björn Holmgren
- Re: Allow user to run application as a power user
- Prev by Date: Re: how to capture events in a brower?
- Next by Date: Can you end a process from vb script?
- Previous by thread: Create shortcuts to network connections
- Next by thread: Re: Allow user to run application as a power user
- Index(es):
Relevant Pages
|
Loading