Top

How to run a program as another user in Windows

Thank you Gisle, I knew there was support for “sudo” in Windows XP, but I have never used it.

As most of you know, most single users run their Windows setup as administrators, giving any program or script full access through your user at any time. Its one of the largest security problems facing Windows machines.

But there is a way to use Windows with a limited user and quickly change to administrator level when needed.

3 Responses to How to run a program as another user in Windows

  1. Blank Spot January 22, 2005 at 10:48 am #

    Administratorar og andre brukarar i Windows XP

    Kvifor jobbe med alle vindauga opne n

  2. Tony July 28, 2005 at 4:59 pm #

    The article that you link to is *TOTALLY* wrong!

    The “RunAs” is not what “sudo” really is.

    When one uses sudo – he has to provide *HIS* password – not administrator’s! The proper use of sudo involves the configuration file (/etc/sudoers on UNIXes, maintained by root) where all the permitted users and programs are listed.

    Anything beyond /etc/suduers is prohibited.

    So, on the real UNIX – sudo allows to do admin’s tasks with admin’s previous concent – without the knowledge of admin’s password.

    RunAs is just a “/bin/su” equivalent – one must know *ADMINISTRATOR*’s password to use it. Once you gave out the administrator’s pass – you’re doomed!

    Please, don’t mislead people!

  3. Blank Spot February 17, 2006 at 6:20 am #

    Administratorar og andre brukarar i Windows XP

    Kvifor jobbe med alle vindauga opne n