PPRuNe Forums - View Single Post - xp limited user
Thread: xp limited user
View Single Post
Old 8th Jan 2010, 10:26
  #4 (permalink)  
Mac the Knife

Plastic PPRuNer
 
Join Date: Sep 2000
Location: Cape Town
Posts: 1,898
Received 0 Likes on 0 Posts
  1. You'll need the .NET framework 2.0. You can download it from the microsoft site if you don't already have it (be sure to download the redistributable package not the software development kit). Here is a direct link if you are running a 32 bit Intel or AMD machine. If you already have the .NET framework 1.0 or 1.1, it will prompt you during the installation and offer you the possibility to download and install the 2.0 version without interrupting the installation.
  2. Install Sudowin. Remember to do this from an account with administrative privileges (you can use the methods described earlier to run the installation with enough privileges).
  3. Using a notepad with administrative privileges edit the sudoers.xml file located in the Server subdirectory of the install directory (this is C:\Program Files\sudowin by default or C:\Program Files (x86)\sudowin on 64 bit systems). Go to the users section and add the users you want to have sudo capabilities (remember to enter the names in the format of <domain or="" computer="">\<username>. If you are a home user, you can find out your complete name by entering whoami at the command prompt). Now go towards the end and enter the commands which you want to be able to run with elevated privileges. Also look around the file and change other settings to fir your need. Save the file.
  4. Use the command runas /user:Administrator "cmd /c start lusrmgr.msc" (assuming that Administrator is a user with administrative privileges to which you know the password) to display the user management console (anyone else finds the name funny?). Go to each user you want to be able to perform sudo and add them to the Sudoers group which was created by sudowin during the installation (you can do this by right clicking on them, clicking properties, going to the "Member of" tab, clicking Add, writing Sudoers and clicking Ok).
  5. Use the command runas /user:Administrator "cmd /c start services.msc", find the sudowin service and restart it.
Now you're good to go. Remember that you must enter your password when asked by sudo!

Also see the forums at SourceForge.net: Sudo for Windows: Topics for Help

Mac

PS: This is SMHAM2.ORG! has a good simple tutorial.
Mac the Knife is offline