Giving a user admin rights for a program on Win2k
Results 1 to 3 of 3

Thread: Giving a user admin rights for a program on Win2k

  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    31

    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.

  2. #2
    Ninja Code Monkey
    Join Date
    Nov 2001
    Location
    Washington State
    Posts
    1,027
    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

  3. #3
    Senior Member
    Join Date
    Feb 2003
    Posts
    109
    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!!\");
    SecureVision

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides