<?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>FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx</link><description>Why Vista is better off without setuid or sudo.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#3626928</link><pubDate>Sat, 30 Jun 2007 19:11:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3626928</guid><dc:creator>Jeremy Bettis</dc:creator><description>&lt;p&gt;If privilege elevation was really required, as opposed to lazy programming, wouldn't the classic approach be to delegate the privileged operations to a device driver or a system service?&lt;/p&gt;
&lt;p&gt;I.e. SQL server requires special privileges to access the data files, but end users don't need any special admin rights to connect to the database.&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#3626974</link><pubDate>Sat, 30 Jun 2007 19:22:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3626974</guid><dc:creator>stupid</dc:creator><description>&lt;p&gt;&amp;quot;Unix and Unix-like OSes such as Mac OS X&amp;quot; ... did &amp;nbsp;typing Linux hurted :)&lt;/p&gt;
</description></item><item><title>Scripting Elevation on Vista</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#3636474</link><pubDate>Sun, 01 Jul 2007 08:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3636474</guid><dc:creator>Aaron Margosis' "Non-Admin" WebLog</dc:creator><description>&lt;p&gt;Since RunAs.exe won't run a program elevated, is there a way to trigger an elevation prompt from a script?&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#3653696</link><pubDate>Mon, 02 Jul 2007 04:13:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3653696</guid><dc:creator>rwx---rwx</dc:creator><description>&lt;P&gt;&amp;gt; functionality like setuid/suid or sudo found&lt;/P&gt;
&lt;P&gt;&amp;gt; in Unix and Unix-like OSes such as Mac OS X&lt;/P&gt;
&lt;P&gt;and Vista Business, Vista Ultimate, and Windows Server 2008. &amp;nbsp;For previous versions of Windows Microsoft provided a separate download for Windows Services for Unix, but now it's built-in.&lt;/P&gt;
&lt;P&gt;Maybe part of Microsoft made the right decision while part of Microsoft made the wrong decision, but I have a feeling that this is one case where customers probably don't complain about being given a choice.&lt;/P&gt;
&lt;P&gt;&amp;gt; As computer security has become increasingly&lt;/P&gt;
&lt;P&gt;&amp;gt; important,&lt;/P&gt;
&lt;P&gt;As Microsoft has become increasingly aware of the importance of computer security,&lt;/P&gt;
&lt;P&gt;Really, I am glad that Microsoft is becoming increasingly aware of the importance, but why does Microsoft still think that operating systems didn't exist before the creation of Microsoft. &amp;nbsp;Sorry this is getting to be a rant, but you know you provoked it.&lt;/P&gt;
&lt;P&gt;&amp;gt; Pre-approving code to run with elevated&lt;/P&gt;
&lt;P&gt;&amp;gt; permissions [...] The "standard user by&lt;/P&gt;
&lt;P&gt;&amp;gt; default" vision would become impossible&lt;/P&gt;
&lt;P&gt;I think the opposite is true. &amp;nbsp;"Standard user by default" is still troublesome because of the inconsistencies and frequency of UAC prompts. &amp;nbsp;Now look at services. &amp;nbsp;If a service is installed to run as SYSTEM (or to run as the lesser-powered Administrator ^_^) it has the privileges that it needs, it doesn't interrupt the user's work, and it doesn't discourage the advance of "standard user by default". &amp;nbsp;A decision is made to trust the individual program. &amp;nbsp;The same kind of decision could be made when installing an individual program that runs on demand instead of running as a service, and it would provide even more encouragement to the advance of "standard user by default".&lt;/P&gt;
&lt;P&gt;&amp;gt; any compromise could lead to full system&lt;/P&gt;
&lt;P&gt;&amp;gt; compromise&lt;/P&gt;
&lt;P&gt;Yes. &amp;nbsp;Just like with services. &amp;nbsp;In other words, take adequate care in programming and testing before deciding whether to trust.&lt;/P&gt;
&lt;P&gt;&amp;gt; How would future software for Windows be&lt;/P&gt;
&lt;P&gt;&amp;gt; written? Answer: To silently elevate.&lt;/P&gt;
&lt;P&gt;Make them noisy during installation time, and some users will still get the message. &amp;nbsp;(Other users won't get the message, they'll still click on LUA prompts to run viruses which promise porn, but we can't do much about those users anyway.)&lt;/P&gt;
&lt;P&gt;&amp;gt; Privilege escalation due to setuid and sudo&lt;/P&gt;
&lt;P&gt;&amp;gt; has plagued Unix-like systems for many years,&lt;/P&gt;
&lt;P&gt;&amp;gt; and continues to do so.&lt;/P&gt;
&lt;P&gt;Yes. &amp;nbsp;No one has a monopoly on careless coding and lack of testing. &amp;nbsp;Let's appreciate those rare birds who are allowed to work with diligent care.&lt;/P&gt;
&lt;P&gt;&amp;gt; "Nitpicker's corner" might be a trademark&lt;/P&gt;
&lt;P&gt;Microsoft doesn't have a corner on nitpickers. &amp;nbsp;Nitpickers were fixing bugs before Microsoft existed.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;@rwx:&lt;/P&gt;
&lt;P&gt;re the importance of computer security:&amp;nbsp; More individuals and&amp;nbsp;organizations are depending on computers for more of their critical needs than ever before, &lt;EM&gt;and&lt;/EM&gt; their systems are under attack more than ever before by increasingly sophisticated criminals.&amp;nbsp; So, yes, I will defend my assertion that computer security has become increasingly important.&amp;nbsp; (And your assertion that Microsoft ever thought they invented the concept of the operating system is just silly.)&lt;/P&gt;
&lt;P&gt;re services:&amp;nbsp; Windows services offer one way to make elevated operations available to users, through controlled interfaces.&amp;nbsp; A significant difference between services and setuid programs is that services do not run interactively, and the user does not interact with them directly.&amp;nbsp; This allows the interface between the user and the service code to be defined with much tighter constraints.&amp;nbsp; If you were to have a setuid-type program that desired to expose a file-save dialog, that dialog could allow the user full access to the entire file system.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#3665443</link><pubDate>Tue, 03 Jul 2007 03:18:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3665443</guid><dc:creator>rwx---rwx</dc:creator><description>&lt;p&gt;&amp;gt; services do not run interactively, and the&lt;/p&gt;
&lt;p&gt;&amp;gt; user does not interact with them directly.&lt;/p&gt;
&lt;p&gt;True, the interactive part opens the client side of a named pipe and we need to prioritize code inspections of the service-side program more urgently than the client-side.&lt;/p&gt;
&lt;p&gt;Maybe we can say that for any situation where the &amp;quot;users&amp;quot;[*] would want a program to run with setuid, the application should be divided into two parts and one part should run as a service. &amp;nbsp;OK, I think I can agree that setuid isn't really necessary.&lt;/p&gt;
&lt;p&gt;[* end users + administrators + managers etc.]&lt;/p&gt;
&lt;p&gt;) (And your assertion that Microsoft ever&lt;/p&gt;
&lt;p&gt;) thought they invented the concept of the&lt;/p&gt;
&lt;p&gt;) operating system is just silly.)&lt;/p&gt;
&lt;p&gt;(You'd be amazed by the thinking of some of your colleagues.)&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#3944161</link><pubDate>Thu, 19 Jul 2007 01:07:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3944161</guid><dc:creator>megame</dc:creator><description>&lt;p&gt;Great article.&lt;/p&gt;
&lt;p&gt;I was hoping that explanation like this would be published by Microsoft along with release of Vista.&lt;/p&gt;
&lt;p&gt;There have been too many questions like: &amp;quot;why just does not Vista copy Unix/Mac security?&amp;quot; and part of your article is good answer to that question.&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#4314918</link><pubDate>Fri, 10 Aug 2007 01:26:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4314918</guid><dc:creator>Typical MS Partner</dc:creator><description>&lt;p&gt;One thing that I hear echoed is why isn't there a set way for a program to detect at what level it's running instead of just &amp;quot;try and fail&amp;quot;. That doesn't seem as well designed as if you have an api way to know if you can or can't do something -vs- let's try something catch the failure or force a admin dialog when we could be smart and not do it to being with.&lt;/p&gt;
&lt;p&gt;Thoughts?&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#4462036</link><pubDate>Sun, 19 Aug 2007 13:09:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4462036</guid><dc:creator>Christian</dc:creator><description>&lt;P&gt;What about COM+? Isn't it easy to configure any COM-object to run evelated? &lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; Out-of-process COM objects can be configured to run elevated, but you still get a UAC prompt before it occurs.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#4483381</link><pubDate>Mon, 20 Aug 2007 21:21:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4483381</guid><dc:creator>Christian</dc:creator><description>&lt;p&gt;So I cannot have the parts of my programm that need to be run elevated as COM+-object and just use them?&lt;/p&gt;
&lt;p&gt;Vista will detect if a normal programm loads these components and will show the consent dialog and eiter terminate my programm or let it run?&lt;/p&gt;
&lt;p&gt;I thought that running elevated services with clear interfaces all the time wastes ressources and is visible to lots of users that like to remove useless clutter from their system.&lt;/p&gt;
&lt;p&gt;COM+ on the other side allows to do the same things as a service, but it will demand-start a dllhost.exe with my interface and code running elevated.&lt;/p&gt;
&lt;p&gt;What is the security reason? A service could do the same!&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#4966027</link><pubDate>Tue, 18 Sep 2007 03:00:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4966027</guid><dc:creator>Zen</dc:creator><description>&lt;P&gt;The important point missed in this feature is UI experience. After a while user habitually clicks on yes, making this whole exercise fruitless.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp;&amp;nbsp;I don't think so.&amp;nbsp; What you've called out is a potential problem, but&amp;nbsp;what we're expecting&amp;nbsp;is that after a system has already been set up and apps have been installed,&amp;nbsp;users will see few if any prompts, so each one should stand out and command attention.&amp;nbsp; I think the UI experience is actually not bad at all -- it's better than training users to reflexively type their passwords, as other systems do. :-)&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#5514781</link><pubDate>Fri, 19 Oct 2007 01:55:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5514781</guid><dc:creator>Karl Fandrich</dc:creator><description>&lt;p&gt;While I understand where Microsoft is coming from as far as needing to break the cycle, everyone I have talked to about Vista immediately says, &amp;quot;turn off UAC and it will solve most of your problems.&amp;quot; If everyone turns off UAC because it is so troublesome and there is no way for admins to make it do what they want, then the whole UAC exercise is pointless. There NEEDS to be a way for admins to configure programs to run with admin rights without giving the users admin credentials. At the end of the day, if UAC hinders business, UAC will be disabled. If it takes 3 lifetimes to figure out how to make UAC do what you want, UAC will be disabled. While it may sound like a responsible moral decision, Microsoft is no further ahead by trying to force this issue.&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#5525697</link><pubDate>Fri, 19 Oct 2007 19:22:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5525697</guid><dc:creator>Aaron Johnson</dc:creator><description>&lt;p&gt;I totally agree with Karl's post...&amp;quot;turn off UAC and it will solve most of your problems.&amp;quot; &amp;nbsp;It will. &amp;nbsp;I am having a terrible time transitioning our scripts, programs, software, and policy to the UAC environment. &amp;nbsp;I want to use the UAC, but it is going cause so much in-efficiency in our system, i don't know how we are going to do it. &amp;nbsp;It think the UAC works well at home, but in our large enterprise, it is not working well with automated tasks.&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#5525783</link><pubDate>Fri, 19 Oct 2007 19:31:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5525783</guid><dc:creator>Aaron Johnson</dc:creator><description>&lt;p&gt;By the way, someone want to try testing something? &amp;nbsp;I think this is a problem related to the UAC. &amp;nbsp;I'll give you my test scenario.&lt;/p&gt;
&lt;p&gt;Windows Vista Enterprise 32-bit&lt;/p&gt;
&lt;p&gt;Joined to domain&lt;/p&gt;
&lt;p&gt;GPO that runs a batch file that maps a drive (net use)&lt;/p&gt;
&lt;p&gt;Put a domain group in Administrators, put a different group in Users&lt;/p&gt;
&lt;p&gt;Log on the machine with a domain account in the Users group. &amp;nbsp;You should get your mappings.&lt;/p&gt;
&lt;p&gt;Now put a group (can be same group as in Users) in the Network Configuration Operators group. Now log on again with the domain user account. &amp;nbsp;Did you get your drive mappings? &amp;nbsp;I don't.&lt;/p&gt;
&lt;p&gt;If I turn off the UAC then I do get the mappings. &amp;nbsp;If I take the group &amp;nbsp;back out of Network Configuration Operators, i get mappings. &amp;nbsp;For giggles, instead of adding the group to NCO I tried Power Users, and again no drive mappings. &amp;nbsp;Take the group out and drive mappings are back. &amp;nbsp;But the problem is not just the drive mappings, other programs do not work right in this scenario.&lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#8914001</link><pubDate>Sun, 31 Aug 2008 21:10:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8914001</guid><dc:creator>John Grange</dc:creator><description>&lt;p&gt;Only one problem this whole #$%#$% is that the way you describe as the right way causes me to have to turn off UAC because it simply makes it impossible for me to run administrative tasks with my &amp;quot;Domain Admin account&amp;quot; I run Mac OS X as my primary OS and I'm sorry they got the escalate privileges right, it works, and doesn't get in the way of doing your job.&lt;/p&gt;
&lt;p&gt;Currently on my new server 2008 I have two options, A) always run as the built in administrator because the built in file system can not promptly for more rights when needed, or B) turn of UAC. both options defeat the whole bloody point of UAC in the first place, so you tell me how they got it right?!&lt;/p&gt;
&lt;p&gt;If I am missing something please advise me, I would be glad to learn how to do things &amp;quot;the proper MS way&amp;quot;. Right now I simply can not recommend 2008, its great idea, but poorly implemented. &lt;/p&gt;
</description></item><item><title>re: FAQ:  Why can’t I bypass the UAC prompt?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx#9865578</link><pubDate>Wed, 12 Aug 2009 08:32:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9865578</guid><dc:creator>Rick Downer</dc:creator><description>&lt;P&gt;Here's my problem. Users don't have admin rights. App requires elevation - I can't change that, it is what it is. So whenever the user runs that app they have to come to me to type the admin password for them. Either that, or I give the user the admin password, in which case I might as well make them an admin. Now, doesn't THAT defeat the ENTIRE purpose of users no longer running as admins?&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; The idea is that apps to be run by users shouldn't require admin rights in the first place.&amp;nbsp; Apps should require admin rights only if they are performing legitimate administrative operations.&amp;nbsp; Can the vendor (or internal developer) update the app so that it works correctly as standard user?&amp;nbsp; If not, there are many mitigations that can help get these apps to work correctly without admin rights.&amp;nbsp; (Which one to use depends on what it's doing that fails, or why it's demanding UAC elevation.)&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item></channel></rss>