Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. UAC: Don't be part of the problem

UAC: Don't be part of the problem

Scheduled Pinned Locked Moved The Lounge
htmlcomhelp
90 Posts 36 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Marc Clifton

    The only reason we have UAC at all is because of a cultural problem: many developers run as administrators on Windows. Is Ian trying out for the one-eared rabbit award? I think so. What a stupid statement. Developers are, what, .01% of all the users of Windows? And yet he says that we developers and our culture of running as administrators is the reason we have UAC? What a load of myopic horse manure. Marc

    Thyme In The Country
    Interacx

    People are just notoriously impossible. --DavidCrow
    There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
    People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

    R Offline
    R Offline
    Rajesh R Subramanian
    wrote on last edited by
    #31

    Two 1 votes for saying that? Again there come the group of spearheads; who will object an individuals opinion with their little one votes. :rolleyes:

    "The difficulty lies, not in the new ideas, but in escaping from the old ones." -- John Maynard Keyes, 1936

    M 1 Reply Last reply
    0
    • M Marc Clifton

      Matt Newman wrote:

      Oh right, I forgot you were perfect now.

      For the next 10 minutes. Then I turn into a pumpkin. ;P Marc

      Thyme In The Country
      Interacx

      People are just notoriously impossible. --DavidCrow
      There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
      People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #32

      I love pumpkin seeds fried with garlic and butter. I can wait for ten minutes.;P

      "The difficulty lies, not in the new ideas, but in escaping from the old ones." -- John Maynard Keyes, 1936

      1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Ian Griffiths tells it like it is[^]. Excellent article.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Torah Answers to Christian Questions The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        W Offline
        W Offline
        WillemM
        wrote on last edited by
        #33

        Excellent indeed, but there is one thing I need to add to this. I noticed that windows acts really weird with UAC turned off. Sometimes you get unexplainable errors. I had this with VS2005, copying files to the program files directory and more stuff. After turning on UAC again and right-clicking run as administrator solved the problem. So don't turn it off, it gives you a bigger headache then when you leave it on.

        WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson

        J G 2 Replies Last reply
        0
        • C Chris Losinger

          If you are a developer who has turned off UAC in frustration, remember that UAC is only this way because of all those software developers who insist on running as admin. nope. UAC only exists because Windows is such a delicious target for malware.

          image processing toolkits | batch image processing | blogging

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #34

          Chris Losinger wrote:

          If you are a developer who has turned off UAC in frustration, remember that UAC is only this way because of all those software developers who insist on running as admin.

          Even though I've been bitten by UAC before I have to admit there is more than a little truth behind this statement. The irony is that some Microsoft products – such as Visual Studio 2005 – don’t play nice with UAC enabled. I’ve been forced to run 2005 in an account with UAC disabled so drag and drop works.

          Steve

          K 1 Reply Last reply
          0
          • J Judah Gabriel Himango

            Ian Griffiths tells it like it is[^]. Excellent article.

            Tech, life, family, faith: Give me a visit. I'm currently blogging about: Torah Answers to Christian Questions The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

            S Offline
            S Offline
            SimonRigby
            wrote on last edited by
            #35

            It's a bit difficult to decide who to reply to seeing as their are so many replies so I'll reply to OP but my comments are probably more centred on comments that have been made. I agree that developing in a restricted environment is a good way to find these permission issues early on. It really doesn't matter which side of the argument you sit on; but for example, I develop for one client who has a policy that all users run as "standard" users. For anything requiring "admin" rights a member of support will have to do this. I don't agree with it; I believe there are better ways of administering the policy but the bottom line is, if my software doesn't run as a standard user, I don't get paid :). Personally, I run as an admin. I think its a bad habit, but somehow I just haven't got over it :) but I have a machine on my network that is purely for testing (ie a set of VMs with standard accounts). Its odd how this seems a difficult habit to break in Windows, when I have absolutely no issue with running as a standard user in Linux. Just what you get used to I suppose.

            The only thing unpredictable about me is just how predictable I'm going to be.

            J 1 Reply Last reply
            0
            • J Judah Gabriel Himango

              Ian Griffiths tells it like it is[^]. Excellent article.

              Tech, life, family, faith: Give me a visit. I'm currently blogging about: Torah Answers to Christian Questions The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

              H Offline
              H Offline
              halfix
              wrote on last edited by
              #36

              I agree with the statement of the article, but I believe the basic concept of UAC (do your daily work as a user, just elevate when needed) is not the main problem - nobody who calls himself an IT Pro can seriously disagree with this concept. I think it's more a problem with current implementation details of UAC that makes people hate it (e.g. not being able to share network connections and substs between user session and elevated session, confirm requests if applications are explicitly started with 'run as admin', always elevated start of some applications like regedit, ...) Gerd

              J 1 Reply Last reply
              0
              • M Marc Clifton

                Judah Himango wrote:

                Late nite with Marc Clifton. I love it!

                It's not too different from regular daytime hours, you know. :) Marc

                Thyme In The Country
                Interacx

                People are just notoriously impossible. --DavidCrow
                There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                P Offline
                P Offline
                Paul Watson
                wrote on last edited by
                #37

                Actually I thought you were cooling down in your later hours...

                regards, Paul Watson Ireland & South Africa

                Shog9 wrote:

                And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...

                1 Reply Last reply
                0
                • J Judah Gabriel Himango

                  Ian Griffiths tells it like it is[^]. Excellent article.

                  Tech, life, family, faith: Give me a visit. I'm currently blogging about: Torah Answers to Christian Questions The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                  P Offline
                  P Offline
                  Programit
                  wrote on last edited by
                  #38

                  Microsofts BIG security fix for windows - Annoy the users and blame the developers! UAC IS NOT A SECURITY FIX- MS even state that! So why not remove the annoyance and create secure programs from the start? - Linux can, Apple can, Microsoft can't!

                  J 1 Reply Last reply
                  0
                  • J Judah Gabriel Himango

                    Ian Griffiths tells it like it is[^]. Excellent article.

                    Tech, life, family, faith: Give me a visit. I'm currently blogging about: Torah Answers to Christian Questions The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                    T Offline
                    T Offline
                    topcatalpha
                    wrote on last edited by
                    #39

                    He has a point there, but as administrator i couldn't delete the windows.old directory and other files from my HD... if they think i keep 3G just for fun on my HD they're wrong.

                    J 1 Reply Last reply
                    0
                    • P Patrick Etc

                      But on Windows we have an unfortunate history of ordinary applications that demand admin privileges for no good reason. If the Windows development culture hadn’t gone down this road we would never have needed UAC.

                      This is the basis for his entire argument, and it sounds convincing, except that it is entirely wrong. The blame rests squarely on Microsoft's shoulders for not making the default account a USER account instead of an ADMIN account in all prior versions of Windows. Developers only ever developed to the admin account, because - TADA! - that's all the users ever used unless they were working in a corporate environment where the IT staff actually bothered to apply a group policy. Microsoft should NEVER have made the home users have an Admin account by default.


                      Cheers, Patrick

                      H Offline
                      H Offline
                      hswear3
                      wrote on last edited by
                      #40

                      The reason that Microsoft made home users Admins is historical. Before Windows XP was released, all home users used Windows 9x/Me--operating systems that basically ran on top of MS-DOS and had absolutely no security at all. Most early OEM Windows XP installations also had their hard drives formatted with FAT32, not NTFS which is necessary for file security. So that old Windows 9x/Me and MS-DOS software had to run on Windows XP home or people would not have upgraded to it. Also for YEARS software had to be designed to run on both Windows 9x and Windows XP (Really Windows NT 5.1). And also, for YEARS, many IT departments also continued to use Windows 98 because the hardware for Windows XP was just too expensive. But I do blame Microsoft for rushing Vista out the door with a poorly implemented and tested UAC. Beta testers screamed when it was introduced near the end of the beta without time for proper testing. But they had promised Wall Street and the OEMs that Vista would ship. Major, major design mistakes made Vista late. The first was the attempt to base the file system on SQL. That caused the reset when they had to start over. Another was all of effort that went into AERO at the expense of security. Thankfully many of the people who pushed form over function are no longer part of Microsoft.

                      Herbert N Swearengen III

                      P J 2 Replies Last reply
                      0
                      • S Stephen Hewitt

                        Chris Losinger wrote:

                        If you are a developer who has turned off UAC in frustration, remember that UAC is only this way because of all those software developers who insist on running as admin.

                        Even though I've been bitten by UAC before I have to admit there is more than a little truth behind this statement. The irony is that some Microsoft products – such as Visual Studio 2005 – don’t play nice with UAC enabled. I’ve been forced to run 2005 in an account with UAC disabled so drag and drop works.

                        Steve

                        K Offline
                        K Offline
                        Kevin McFarlane
                        wrote on last edited by
                        #41

                        Stephen Hewitt wrote:

                        I’ve been forced to run 2005 in an account with UAC disabled so drag and drop works.

                        I thought VS 2005 with SP1 Vista Update was supposed to fix this kind of thing? If not, what does it fix?

                        Kevin

                        M 1 Reply Last reply
                        0
                        • K Kevin McFarlane

                          Stephen Hewitt wrote:

                          I’ve been forced to run 2005 in an account with UAC disabled so drag and drop works.

                          I thought VS 2005 with SP1 Vista Update was supposed to fix this kind of thing? If not, what does it fix?

                          Kevin

                          M Offline
                          M Offline
                          Mike Dimmick
                          wrote on last edited by
                          #42

                          Drag-and-drop doesn't work due to User Interface Privilege Isolation. Programs running at a lower, non-privileged level (Explorer in this case) cannot send many window messages (to start the drag-drop conversation) to programs running at a higher, elevated level (Visual Studio). This prevents 'shatter' attacks. The Vista update adds a UAC manifest to Visual Studio which says 'if the user is an administrator, please run elevated' so you get a UAC prompt whenever you run Visual Studio, if you're a member of the Administrators group. However, if you're a Standard User, you don't get the prompt, VS isn't elevated, and drag-and-drop works. However, COM registration will fail as, I think, will some debugging features. I'm still using XP as a standard user.

                          Stability. What an interesting concept. -- Chris Maunder

                          K 1 Reply Last reply
                          0
                          • R Rajesh R Subramanian

                            Two 1 votes for saying that? Again there come the group of spearheads; who will object an individuals opinion with their little one votes. :rolleyes:

                            "The difficulty lies, not in the new ideas, but in escaping from the old ones." -- John Maynard Keyes, 1936

                            M Offline
                            M Offline
                            Marc Clifton
                            wrote on last edited by
                            #43

                            brahmma wrote:

                            Two 1 votes for saying that?

                            Criticizing a perceived demi-god is always dangerous. Criticizing Microsoft is problematic. Criticizing UAC (and Vista in general) is controversial. I would have been better off arguing that UAC contributes to global warming climate change because of the extra energy both man and machine spend dealing with it. :rolleyes: Marc

                            Thyme In The Country
                            Interacx

                            People are just notoriously impossible. --DavidCrow
                            There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                            People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                            1 Reply Last reply
                            0
                            • S Shog9 0

                              ...that's a quick count of 3rd-party simulation / biz-logic DLLs are used by my app right now. These are written either by consultants hired by suppliers, or in-house by engineers. Most of them are not maintained, and of the few that have source available, it's almost always in rough shape, very, very difficult to build or fix. Some of them are over twenty years old, written in FORTRAN, and last compiled for Win95. Oh yeah, and most of them assume they have admin rights for one reason or another. Maybe they try to write or lock files in their installation directory, or maybe they try to write to HKLM registry keys. Doesn't matter. I can't change them, and i can't replace them. Wanna blame the developers? Yeah, me too. But it doesn't help to bitch at someone who's long gone. As luck would have it, i got wind of a support call today, an external user asking if they could run our app on Vista. So, tonight or tomorrow, i'll install it, running as a normal user with UAC enabled, and see just how many hoops i have to jump through to make it work. If UAC can stay on, then i'll pass that along. If it can't, then i'll describe how to disable it. If there are changes needed to the installer to throw the whole mess into some sort of compatibility mode, then i'll suggest them to the installer guy. If it's just too much trouble, i'll simply state that it won't run on Vista, and they'll just have to stick with XP for the time being. No big deal, really. Frankly, i couldn't care less if not a single one of them upgrades to Vista...

                              ----

                              i hope you are feeling sleepy for people not calling you by the same.

                              --BarnaKol on abusive words

                              M Offline
                              M Offline
                              Mike Dimmick
                              wrote on last edited by
                              #44

                              Shog9 wrote:

                              Maybe they try to write or lock files in their installation directory, or maybe they try to write to HKLM registry keys.

                              Compatibility redirection should handle that. Just don't expect the values to be the same across multiple users, because each user has their own independent redirected file store. Also don't expect them to appear in the right place in Explorer - the 'correct' path will gain a 'Compatibility Files' button in the toolbar which you can click to go to the redirected files. Finally, if the program is run elevated it won't find the files in the redirected store. Also, don't add a Vista UAC manifest. If you do, the redirection will be disabled and the errors will return. Redirection is only applied to applications not marked with a Vista UAC manifest.

                              Stability. What an interesting concept. -- Chris Maunder

                              1 Reply Last reply
                              0
                              • M Mike Dimmick

                                Drag-and-drop doesn't work due to User Interface Privilege Isolation. Programs running at a lower, non-privileged level (Explorer in this case) cannot send many window messages (to start the drag-drop conversation) to programs running at a higher, elevated level (Visual Studio). This prevents 'shatter' attacks. The Vista update adds a UAC manifest to Visual Studio which says 'if the user is an administrator, please run elevated' so you get a UAC prompt whenever you run Visual Studio, if you're a member of the Administrators group. However, if you're a Standard User, you don't get the prompt, VS isn't elevated, and drag-and-drop works. However, COM registration will fail as, I think, will some debugging features. I'm still using XP as a standard user.

                                Stability. What an interesting concept. -- Chris Maunder

                                K Offline
                                K Offline
                                Kevin McFarlane
                                wrote on last edited by
                                #45

                                Mike Dimmick wrote:

                                The Vista update adds a UAC manifest to Visual Studio which says 'if the user is an administrator, please run elevated' so you get a UAC prompt whenever you run Visual Studio, if you're a member of the Administrators group.

                                I thought this was what was supposed to happen before the update? :confused:

                                Kevin

                                1 Reply Last reply
                                0
                                • M Marc Clifton

                                  Ah, ok.

                                  Judah Himango wrote:

                                  If devs just write software that doesn't require admin priveleges -- honestly, it isn't that hard! -- this problem wouldn't exist.

                                  Well, then please ask Ian: WHY DOES VS2005 UNDER VISTA TELL ME I SHOULD RUN WITH ADMINISTRATIVE PRIVILEGES BECAUSE SOME PARTS OF VS2005 WILL NOT WORK UNDER A NORMAL USER ACCOUNT??? Eh Ian? What say you to that? The very friggin' tool tells you to run as Admin!!! [edit]Oh, but I suppose one could argue that running VS2005 as admin is still different from running the app your developing with VS2005. While technically true, I feel that he is still making up excuses.[/edit] Marc

                                  Thyme In The Country
                                  Interacx

                                  People are just notoriously impossible. --DavidCrow
                                  There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                                  People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                                  D Offline
                                  D Offline
                                  Daniel Grunwald
                                  wrote on last edited by
                                  #46

                                  Whoever put that notice on the VS2005 nagging screen that you should run it with administrative privileges should be fired. He basically ruined the whole purpose of UAC (yes, it's for developers, not for users). VS2005 ran fine on my XP standard user account and it continues to run fine without elevating on Vista. Drag'n'drop works fine for me because I simply don't run it as admin. You only need to run VS2005 as admin if you use it to perform tasks that require admin rights: registering COM components or debugging Windows services (e.g. IIS). If you write normal .NET class libraries, Windows applications, or just debug your web applications using the development server, there's no need to run VS2005 with admin rights, it works fine in standard user mode. The message on the nagging screen is just misleading; it's sabotaging UAC just so that the guys debugging IIS don't have to look in the documentation to find out why it doesn't work on Vista.

                                  1 Reply Last reply
                                  0
                                  • M Matt Newman

                                    Irregardless of whether or not the default account is an admin account, if a developer doesn't take into account standard users it is the developers fault.

                                    Matt Newman

                                    C Offline
                                    C Offline
                                    Catalin Murariu
                                    wrote on last edited by
                                    #47

                                    Regardless, not irregardless! Irregardless is not even in the dictionary. Anyway, if the piece of software gets into production like that, it isn't even the developer**'**s fault, it's QA's fault for not testing the product on a restricted user account.

                                    Asynchronously daydreaming...

                                    V I S M 4 Replies Last reply
                                    0
                                    • C Catalin Murariu

                                      Regardless, not irregardless! Irregardless is not even in the dictionary. Anyway, if the piece of software gets into production like that, it isn't even the developer**'**s fault, it's QA's fault for not testing the product on a restricted user account.

                                      Asynchronously daydreaming...

                                      V Offline
                                      V Offline
                                      Vikram A Punathambekar
                                      wrote on last edited by
                                      #48

                                      That was what struck me first when I read his post. :laugh: He probably picked it up from Homer Simpson, although George Bush may have said that as well. :~

                                      Cheers, Vıkram.


                                      Déjà moo - The feeling that you've seen this bull before. Join the CP group at NationStates. Password: byalmightybob

                                      J 1 Reply Last reply
                                      0
                                      • C Catalin Murariu

                                        Regardless, not irregardless! Irregardless is not even in the dictionary. Anyway, if the piece of software gets into production like that, it isn't even the developer**'**s fault, it's QA's fault for not testing the product on a restricted user account.

                                        Asynchronously daydreaming...

                                        I Offline
                                        I Offline
                                        IanPartridge
                                        wrote on last edited by
                                        #49

                                        Please tell me you're joking! Why is it always the testers fault? It seems to me that while developers, requirements managers and project managers are deemed to be human and therefore fallible - hence the existence of the QA department in the first place, testers have to be God-like and incapable of oversight. Last time I checked the QA team I was part of had introduced 0% of all defects in the application under test.

                                        1 Reply Last reply
                                        0
                                        • C Catalin Murariu

                                          Regardless, not irregardless! Irregardless is not even in the dictionary. Anyway, if the piece of software gets into production like that, it isn't even the developer**'**s fault, it's QA's fault for not testing the product on a restricted user account.

                                          Asynchronously daydreaming...

                                          S Offline
                                          S Offline
                                          snowlin
                                          wrote on last edited by
                                          #50

                                          As a technical writer, I could not resist! 4 results for: Irregardless[^] View results from: Dictionary | Thesaurus | Encyclopedia | All Reference | the Web Dictionary.com Unabridged (v 1.1) - Cite This Source ir·re·gard·less /ˌɪrɪˈgɑrdlɪs/ Pronunciation Key - Show Spelled Pronunciation[ir-i-gahrd-lis] Pronunciation Key - Show IPA Pronunciation –adverb Nonstandard. regardless. -------------------------------------------------------------------------------- [Origin: 1910–15; ir-2 (prob. after irrespective) + regardless] —Usage note Irregardless is considered nonstandard because of the two negative elements ir- and -less. It was probably formed on the analogy of such words as irrespective, irrelevant, and irreparable. Those who use it, including on occasion educated speakers, may do so from a desire to add emphasis. Irregardless first appeared in the early 20th century and was perhaps popularized by its use in a comic radio program of the 1930s. Dictionary.com Unabridged (v 1.1) Based on the Random House Unabridged Dictionary, © Random House, Inc. 2006.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups