Home > Windows Server Tips > Windows Systems and Network Administration > LUA Buglight utility finds program failures due to limited user account bugs
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS AND NETWORK ADMINISTRATION

LUA Buglight utility finds program failures due to limited user account bugs


Serdar Yegulalp, Contributor
10.23.2006
Rating: -3.67- (out of 5)


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


Administrators are quite rightly loath to allow regular users to run applications as administrators. Most workstations are set up with a standard limited-user account, which the user logs into and runs applications from; users are not allowed to make changes to the system.

Unfortunately, some programs don't work as a limited user because of defects in their design, and will crash when invoked in a limited-user account (LUA). This is a true defect in the program's design because the vast majority of applications should not require administrative access to work correctly. (If certain aspects of the program's functionality are restricted because the user is not an admin, and the program degrades functionality gracefully, that's not a problem; that's good software engineering.)

Programmer Aaron Margosis has made LUA bugs one of his mainstay -- how they arise, how they can be avoided and how they are the responsibility of the programmer. He has written a program called LUA Buglight, which is now available as a public beta. Margosis designed it for systems administrators (as well as programmers)so they can determine if a given program's failure is due to an LUA error of some kind.

LUA Buglight is launched in the context of a limited user (it will not run if you are in admin account) and is designed to intercept or "shim" a number of common Windows APIs. If those APIs try to run and fail because of a privilege problem, LUA Buglight re-calls the same API in the context of an administrator and logs information about the offending API. This way, an admin can log information about a problem app -- whether it's a third-party program or something developed in-house -- and return that information to the developer for a fix. It's also a way to work around such issues in the context of a limited user.

Margosis recommends that you create a clean non-admin account to run the programs in question -- not a member of the Power Users group, not a user that was ever an administrator, but a newly created account to minimize any possible variables.

Note: The admin has to supply proper credentials to make LUA Buglight run APIs as an admin, so it can't be used as an arbitrary elevation-of-privilege attack program. Also, both the regular user and admin user accounts must have non-blank password for the program to work. Finally, LUA Buglight only runs on Windows Server 2003, XP or Vista; it does not support Windows 2000 or any earlier version of Windows.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter, which is devoted to hints, tips, tricks, news and goodies for Windows NT, Windows 2000 and Windows XP users and administrators. He has more than 10 years of Windows experience under his belt and contributes regularly to SearchWinComputing.com and SearchSQLServer.com.

More information on this topic:


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


Submit a Tip




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



RELATED CONTENT
Windows Systems and Network Management Tools and Techniques
Perfmon made easy with PAL utility
Troubleshooting Windows application crashes or hangs
Free Windows security tools every admin must have
Top five Server Core management tips for Windows 2008
Top free tools for Windows server administration
A first look at Internet Information Services 7.0
Windows registry hack improves offline file access for mobile users
Reducing the size of network backups in Windows
Monitor network bandwidth with CyberGauge
How to format NTFS: More tricks to improve file system performance

Windows Systems and Network Administration
Troubleshooting Windows application crashes or hangs
Converting VMware ESX machines to Hyper-V format
Using DFSR for SYSVOL replication in Windows Server 2008
Top 25 Windows PowerShell commands for administrators
Key DFS improvements in Windows Server 2008 R2
Free Windows security tools every admin must have
Group Policy makes strides in Windows Server 2008 R2
Quick tips for troubleshooting NTFS permissions
Common causes of Windows server security vulnerabilities
Cutting the cost of Windows identity and access management

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.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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