July 3rd, 2003, 12:15 AM
Giving a user admin rights for a program on Win2k
is it possible for the admin account on Win2k to grant a regular (power) user admin access only a specific program? if so, how can this be done? thanks.
July 3rd, 2003, 12:24 AM
I'm not quite sure I get this.. Do you want to give that one user admin privileges in that program alone?
Generally if you are doing this with a program then that program needs to be built to use the windows authentication model. You tend to see this alot with distributed applications that use mts/com+ and can assign priviledges to programs using regular windows groups.
There are other ways of doing it, but it all depends on if the program was built to handle that method or not.
"When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
"There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
"Mischief my ass, you are an unethical moron." - chsh
Blog of X
July 3rd, 2003, 12:31 AM
if you mean you want to be able to run a program with admin rights, then you have to use runas. From the run prompt type runas /user:[admin account name] [path to program]. It will prompt you for the password, and thats all there is to it. Another timesaver is to create a batch file with the runas command in it and drop it in your system dir, then if you had a bat called "sudo.bat", you could type "sudo program".
Another way you can do this is create a shortcut, or use the shortcut on the Start Menu and open its properties. You can check "Run as different user" and next time it runs, it will prompt you for a username and password.
NOTE: You MUST have the runas service enabled for this to work.
$person!=$kiddie or die(\"Alas, die you hotmail hacker!!\");