Home > Enterprise Desktop Tips > > Using sudowin to grant administrator privileges in Windows
Enterprise Desktop Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Using sudowin to grant administrator privileges in Windows


Serdar Yegulalp, Contributor
11.13.2007
Rating: -4.00- (out of 5)


Advice for securing Windows
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


For Microsoft Windows administrators, sudowin (0.2.0) is an open-source add-on that gives administrators the power to allow Unix sudo-like functionality to non-administrative users. It allows for simple privilege escalation, which means you can easily run programs with administrator privileges in Windows. And sudowin is an adjunct to, rather than a substitute for, many existing accreditation technologies in Windows -- including Windows Vista's own User Account Control (UAC), which has been described in some circles as a version of sudo for Windows.

In a way, this description isn't completely accurate, both because of what sudo is and the way Windows works. So, for the sake of explaining sudowin properly, I'll take a moment to describe sudo in detail.

In Unix, the sudo command allows you to launch a process as an administrator, provided you can supply administrative credentials (i.e., an admin password). This allows a user to normally run in a non-elevated context, but elevate privileges on processes that need it.

Managing Windows privileges
Program helps admins control user privileges in Windows

Secure network folders demand secure permissions

In Windows Vista, the RUNAS command and now UAC, allow something similar to be accomplished, but in a different fashion. When you use these features to run something as an admin, the command in question is run from an entirely different user identity -- one that has administrative privileges. This is why, for instance, if you run a desktop application in Vista that can run without UAC privileges, it often doesn't interact properly with other desktop applications that are running through UAC, simply because they're not running in the same userspace. This is not fatal, but it can be annoying, and it often forces the user to elevate multiple applications at once.

When faced with the way privilege escalation works in Windows, programmer Schley Andrew Kutz decided to "take the road less traveled," as he put it, and create something that functions more like sudo in Windows. The result was named sudowin, appropriately enough, and has been designed to allow extremely granular control over how privileges can be escalated on a per-user and per-application basis. Programs that run through sudowin are not run in separate user contexts, so they can interact with each other conventionally.

An .MSI package installs sudowin, which allows it to be delivered through conventional Windows software distribution mechanisms and makes it part of a system image if needed. Once installed, it's configured in two steps:

  1. The administrator adds any users that will have sudo privileges to a specially created user group.
  2. The administrator then configures an .XML file that controls the way the users' sudo privileges work. This step involves the most work, although the number of settings that need to be changed in the .XML file just to get things running is relatively small. It's only when you're doing more granular or large-scale deployments that it can become labor-intensive.

Each user can have a "whitelist" of applications that they're allowed to run in elevated mode or they can simply be allowed to elevate any application, period. The allowed applications are set in the main .XML configuration file. Credentials can be cached for a period of time, as they are in conventional Unix implementations of sudo. Finally, the program has a plug-in architecture to allow extensions to its functionality (the credential-caching function is one such plug-in), and supports features like only allowing sudo to run between certain times of day.

The biggest drawback right now is the difficulty of configuring the system for many users at once, since everything is done in .XML files. But at its core, this is an extremely promising way to extend on Windows's existing security mechanisms.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter . Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!


Rate this Tip
To rate tips, you must be a member of SearchEnterpriseDesktop.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Enterprise Desktop Security - Virus Protection, Malware Protection, Intrusion Detection
HomeTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts