<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>What is a "LUA Bug"?  (And what isn't a LUA bug?)</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx</link><description>Not every "access denied" indicates a LUA bug!</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: What is a "LUA Bug"?  (And what isn't a LUA bug?)</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#9634087</link><pubDate>Thu, 21 May 2009 20:58:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634087</guid><dc:creator>Deepu Cherian</dc:creator><description>&lt;P&gt;please send me the link to download LUA tool&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; Link to the currently published version:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/aaron_margosis/archive/2008/11/06/lua-buglight-2-0-second-preview.aspx"&gt;&lt;EM&gt;http://blogs.msdn.com/aaron_margosis/archive/2008/11/06/lua-buglight-2-0-second-preview.aspx&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9634087" width="1" height="1"&gt;</description></item><item><title>Can I get a copy of version 1.0 of LUA bug tool</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#9634086</link><pubDate>Thu, 21 May 2009 20:57:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634086</guid><dc:creator>Deepu Cherian</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can I get a copy of your tool. When I try to download, it is giving page cannot be found.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Deepu&lt;/p&gt;
&lt;p&gt;E-mail: dcherian@dlbassociates.com&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9634086" width="1" height="1"&gt;</description></item><item><title>Registry Keys ownership...</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#8960355</link><pubDate>Sun, 21 Sep 2008 06:53:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960355</guid><dc:creator>Richard Jenniss</dc:creator><description>&lt;p&gt;Why not install software under a user dedicated to that software? I know in some cases this is a bit much, however this could apply that when you install software all files and registry keys created are owned by that user. Rolling back system changes can be done similarly to removing a user and all their associated files &amp;amp; keys.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8960355" width="1" height="1"&gt;</description></item><item><title>re: What is a "LUA Bug"?  (And what isn't a LUA bug?)</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#7847877</link><pubDate>Fri, 22 Feb 2008 16:37:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7847877</guid><dc:creator>Henning Plumeyer</dc:creator><description>&lt;P&gt;Problem occurs on Windows XP and Windows Server 2003:&lt;/P&gt;
&lt;P&gt;nbtstat -n&lt;/P&gt;
&lt;P&gt;Failed to access NetBT driver -- NetBT may not be loaded&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; Seems to be a LUA bug in XP and 2003:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.microsoft.com/kb/888373"&gt;&lt;EM&gt;http://support.microsoft.com/kb/888373&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Probably inadvertent -- those operations should work for members of the Network Configuration Operators group, but they don't.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7847877" width="1" height="1"&gt;</description></item><item><title>nbtstat: LUA Bug?</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#5993775</link><pubDate>Thu, 08 Nov 2007 21:59:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5993775</guid><dc:creator>Henning Plumeyer</dc:creator><description>&lt;p&gt;I have tried on Windows XP and Server 2003 only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5993775" width="1" height="1"&gt;</description></item><item><title>nbtstat: LUA Bug?</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#5964873</link><pubDate>Wed, 07 Nov 2007 20:24:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5964873</guid><dc:creator>Henning Plumeyer</dc:creator><description>&lt;P&gt;nbtstat does not work for a limited user, only for admins.&lt;/P&gt;
&lt;P&gt;Is this a LUA bug? I think the option -n for example does no change to the system and does not read non-public information -- so it is a LUA bug.&lt;/P&gt;
&lt;P&gt;How can I work around this? I have tried LUA buglight (starting cmd.exe, then nbtstat -n ) but got no helpful result.&lt;/P&gt;
&lt;P&gt;With the option -a you can ask a remote system's NetBIOS name table. You need local admin rights but not on the remote machine!&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; I just tried nbtstat using (separately) -c, -r and -n.&amp;nbsp; All of them seem to work on my Vista machine.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5964873" width="1" height="1"&gt;</description></item><item><title>Changing access control on folders vs. files</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#1686591</link><pubDate>Fri, 16 Feb 2007 05:14:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1686591</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>&lt;p&gt;More info on the risks of changing access control lists to fix LUA bugs.&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1686591" width="1" height="1"&gt;</description></item><item><title>re: What is a "LUA Bug"?  (And what isn't a LUA bug?)</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#1557496</link><pubDate>Tue, 30 Jan 2007 18:02:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1557496</guid><dc:creator>David Williams</dc:creator><description>&lt;P&gt;I did the same thing as Mike O'Grady with the same results. Upon calling Microsoft support, I was told to put any fully shared data into C:\Public (also known as C:\Users\Public). This works without any need for changing ACL or any user administration. However, there is no CSIDL lookup for Public. This makes me concerned that using this folder is not officially supported. Any comment on using C:\Public over C:\ProgramData (which apparently is an alias for C:\Documents and Settings\All Users\Application Data and can be looked up using CSIDL_COMMON_APPDATA)?&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;David:&amp;nbsp; There isn't a C:\Public, but there is a C:\Users\Public.&amp;nbsp; That will get you the default ACL you want, but those folders are really for items that users can browse/discover/interact with directly, rather than ProgramData which is intended for programs to manage.&amp;nbsp; I would expect the better recommendation would still be to create a custom folder in the app-data folder and set its ACL appropriately.&lt;/P&gt;
&lt;P&gt;For the CSIDL, see &lt;A class="" href="http://blogs.msdn.com/vistacompatteam/archive/2007/01/30/shgetknownfolderpath-and-the-knownfolderid.aspx"&gt;this post&lt;/A&gt; and follow its links.&amp;nbsp; The relevant ID is FOLDERID_Public.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1557496" width="1" height="1"&gt;</description></item><item><title>Common_AppData is Readonly</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#1405004</link><pubDate>Wed, 03 Jan 2007 18:16:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1405004</guid><dc:creator>Mike O'Grady</dc:creator><description>&lt;P&gt;I suppose, like many developers, I haven't been aware of all of the issues with LUAs. However, I have recently been forced to face up to the issue by a customer who insisted that my accounts and payroll software be capable of running in a LUA. and accessible to all users.&lt;/P&gt;
&lt;P&gt;So, I revamped my code, moved the database from the Program Files directory to C:\Documents and Settings\All Users\Application Data\Company\Application. I also set the private directory for the database (for SQL results) to the same path and put the application's ini file (Yes, an ini file!!) and some temporary database tables in the same place.&lt;/P&gt;
&lt;P&gt;Ran the app from a LUA and yippee - it worked. Except... it didn't work on my customer's PC. Apparently, it gets an access error when it tries to write to the ini file. You might say that I should put the ini stuff in the Registry but, if it cannot write to the ini file it is hardly going to be able to write to the database!!&lt;/P&gt;
&lt;P&gt;I have asked the customer to try editing the ini file from the LUA and he cannot save any changes. I thought he might have inadvertently made some of the folders/files read-only, but he says that this is not the case.&lt;/P&gt;
&lt;P&gt;Any ideas on why he cannot write to the "All Users\Application Data " sub-folders would be greatly appreciated. This is the Common AppData folder. Surely all users should be able to write to it??&lt;/P&gt;
&lt;P&gt;Mike O'Grady&lt;/P&gt;
&lt;P&gt;Aquila Technology&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Mike -- I think what's happening is because the common data folder has some interesting ACLs.&amp;nbsp; Any user can &lt;EM&gt;create&lt;/EM&gt; a file or subfolder under there, but only the user who created&amp;nbsp;a particular&amp;nbsp;object gets Full Control over it -- all other users get Read&amp;amp;Execute only.&amp;nbsp; (This is the effect of the inherited CREATOR OWNER&amp;nbsp;entry in the ACL.)&amp;nbsp; If the data files are to be shared by multiple users (I assume they are or you would just put them in the user's private folders), then I would recommend that you create the folder in which to put the data and change the ACL on it so that all authorized users are granted all necessary access to the files within.&amp;nbsp; (You should review &lt;A class="" title="Changing Access Control on Folders vs. Files" href="http://blogs.msdn.com/aaron_margosis/archive/2006/06/19/638148.aspx"&gt;this post&lt;/A&gt; regarding the risks of shared data areas.)&lt;/P&gt;
&lt;P&gt;You mentioned "databases" and "SQL".&amp;nbsp; I assume you're referring to something &lt;EM&gt;other than &lt;/EM&gt;SQL Server or related technologies like MSDE.&amp;nbsp; If you &lt;EM&gt;are &lt;/EM&gt;referring to a database technology that uses a service, then you don't need to put those data files in the common app folder, since users do not interact directly with the data file(s) but instead with the service.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1405004" width="1" height="1"&gt;</description></item><item><title>re: What is a "LUA Bug"?  (And what isn't a LUA bug?)</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/02/06/what-is-a-lua-bug-and-what-isn-t-a-lua-bug.aspx#1311467</link><pubDate>Sun, 17 Dec 2006 19:03:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1311467</guid><dc:creator>John Bokma</dc:creator><description>&lt;p&gt;An upgrade to the well known vector drawing program Xara Xtreme (which has minor issues with limited user rights) has been released which just doesn't run with limited user rights, see: &lt;a rel="nofollow" target="_new" href="http://johnbokma.com/mexit/2006/12/11/xara-xtreme-pro-crippled.html"&gt;http://johnbokma.com/mexit/2006/12/11/xara-xtreme-pro-crippled.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A drawing program that requires Administrator rights for making a simple drawing.&lt;/p&gt;
&lt;p&gt;I contacted Xara, but other things have higher priorities, and it's unsure when this will be fixed. Since the minor issues with Xara Xtreme regarding limited user rights have been reported over a year ago I am not going to hold my breath.&lt;/p&gt;
&lt;p&gt;It's a sad day when software companies release &amp;quot;Pro&amp;quot; software that just assumes that everybody is running with Administrator rights, and hence promote unsafe Windows XP usage this way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1311467" width="1" height="1"&gt;</description></item></channel></rss>