Slashdot Mirror


Running Windows Without Administrator Privs?

javacowboy asks: "For a while now, I've been advising friends who run Windows to try running as a regular user, as opposed to running as administrator, which is the default setting. However, I switched to Mac a year and a half ago and I haven't run Windows since, so I'm probably not the best person to be giving this advice. Still, on a philosophical level, *trying* to run Windows as a non-admin, given the prevalence of viruses, worms, trojans, and spy-ware, seems to make sense. Have any of you tried to run Windows as a non-admin, and how did it work out for you? Are there certain tasks or certain software you need to be admin to run? How realistic is it to expect a Windows user to run their OS as non-root?"

33 of 239 comments (clear)

  1. one experience by yagu · · Score: 5, Informative

    A friend's computer shared by the entire household was unendingly compromised. We restored XP many times from scratch but the result was always the same, within a month XP was toes up again.

    We did manage to trace the culprit pretty certainly to one of the kid's AOL sessions. No emphasis and teaching was enough to stop a trusting click to wreak trojan horse havoc. (I don't blame the kid, she was using in good faith and only talked to friends, and only clicked when she was assured they were "being good". Unfortunately, in the world of XP running with admin privelege, this is not enough.)

    We finally bought a separate computer with discrete accounts, and only one had admin access. The kids' accounts were non-admin. This new machine remains uncompromised, but with a price.

    The non-admin accounts, while unable as expected to install software, have random and mysterious failures. I've been able to track some down to exactly what I (and most) feared -- applications which expect to have admin access. Not one example was legitimate in the sense the failure point was performing work requiring admin access, it was just presumptive development by the application. (Interestingly, one of the applications that works fine in admin access but not in non-admin access is Windows Media Player 10.)

    Unfortunately this turns out to be a common symptom running non-admin in XP. Lots of applications will work fine. Lots won't.

    The machine remains partitioned as described, but the ultimate result has been the kids gravitating back to the unprotected computer for unfettered access. I expect that machine will continue to need its periodic re-imaging.

    These problems in XP aren't rare and are artifacts of an infrastructure with security tacked on in ugly layers again and again, all as afterthoughts. I hope Vista proves better at this, but wonder how many applications will continue as problematic because of a murky and muddled and shifting security architecture.

    For the record, I'm simply amazed Microsoft has gotten away with this for so long... it's ample empirical evidence more deals on shop architectures are being made on the golf course and not around the white boards.

    And, also for the record, Microsoft has the money and power to fix this once and for all. I'm sure some will defend Microsoft's incremental work on this, but for too many years my observation has been Micosoft using their money to buy additional fingers with which they point at others to blame rather than work to solve comprehensively the security and system integrity problems.

    • Bottom line:
    I still recommend PC owners create separate non-admin accounts with only one admin account. Applications that won't/can't play nice I recommend they uninstall and ask for their money back. This isn't optimal, but it keeps the machine healthy longer.

    Sigh.

    1. Re:one experience by exKingZog · · Score: 3, Informative

      We run all our staff accounts as limited users at work. We have two pieces of software that don't like running under regular accounts, and in both cases the solution is to give users modify access on that app's folder in %program files%. Also, I'm puzzled by WMP 10 not working - works fine for our staff, and my girlfriend's account on my PC, and the guest account I set up for a friend once.

      The main culprit is almost always always programs trying to store data in their installation folder rather than the user's appdata directory.

      --
      "If he were a plant, people would roll him up and smoke him."
    2. Re:one experience by skinfitz · · Score: 3, Informative

      applications which expect to have admin access

      ...don't want to sound like a Windows fanboy at all but there are many *NIX apps that expect to have root - ethereal for example. Sure they are usually system admin related, but it doesn't mean that you have to run the entire session as root because you can simply use su.

      In Windows you can use the runas command similar to su to give elevated privs to individual apps. You can also use a switch to cache credentials (like chown +x root) that the admin can use to give users the ability to work with awkward apps so it's not really a big deal for the odd application if the machine is set up correctly.

    3. Re:one experience by drsmithy · · Score: 2, Insightful
      (Interestingly, one of the applications that works fine in admin access but not in non-admin access is Windows Media Player 10.)

      What problems did you have ? Because while I don't use WMP frequently, I've never had a problem using it in a non-admin account.

      These problems in XP aren't rare and are artifacts of an infrastructure with security tacked on in ugly layers again and again, all as afterthoughts.

      The security infrastructure in NT (ie: XP) has been there from the get-go and certainly wasn't "tacked on" as an "afterthought".

      I hope Vista proves better at this, but wonder how many applications will continue as problematic because of a murky and muddled and shifting security architecture.

      It's got nothing to do with the architecture and everything to do with poor developers.

      And, also for the record, Microsoft has the money and power to fix this once and for all. I'm sure some will defend Microsoft's incremental work on this, but for too many years my observation has been Micosoft using their money to buy additional fingers with which they point at others to blame rather than work to solve comprehensively the security and system integrity problems.

      How do you propose Microsoft "fix" it ? By writing everyone's applications for them ?

    4. Re:one experience by Bert64 · · Score: 2, Informative

      Ethereal only requires root if you want to actively sniff the interface with it (as opposed to reading logs you captured earlier), there are obvious reasons why non root users can't sniff network traffic especially on a system which was designed to be multi user rather than having multi-user support kludged in as an afterthought.

      In many unixes nowadays you can use capabilities, to give a program that normally would require root, whatever access it requires without giving it full root (such as raw socket capability etc)...

      Also, you have to be careful *WHICH* programs you give increased privileges to, some are simply not designed with that in mind, or perhaps just poorly programmed.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    5. Re:one experience by Bert64 · · Score: 2, Insightful

      The security infrastructure in the (NT) kernel was there from the start, but the frontend interface that most people interact with comes from win3.1/9x which most certainly has no concept of security.

      When merging the 2 together, they decided that a consistent (ish) interface was more important than security, so the underlying security features got bypassed or papered over.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    6. Re:one experience by skinfitz · · Score: 2, Funny

      Why, to sniff your network to send anything it finds to the government of course! ;)

    7. Re:one experience by Jaruzel · · Score: 2, Interesting

      However, modifying %ProgramFiles% is fine for us SysAdmins, but your average Joe User isn't going to have a clue on how to do it - The application will barf, and Mr Dad will say 'Sod it. I'll give myself Admin', because life is simply too short to faff about with these things.

      Vista's approach, while not perfect does redress problem somewhat. If an app needs admin, Vista pops up a dialog asking for User/Pass of an admin account (a bit like an automatic SU) - I'm not sure if Vista knows each app and what it need via some list, or if code analysis is at play (I doubt it), but my experience of the Vista betas, seems to indicated that this system CAN work.

      Now, the real question is, why can't MS add that functionality to XP ?

      -Jar.

      --
      Together, We Can Make Slashdot Better. I Do NOT Mod ACs. - Check Me Out
    8. Re:one experience by cortana · · Score: 2, Informative

      If you run ethereal as root then you're asking to be compromised.

      You should be capturing packets with tcpdump (as root), and opening the file it creates with ethereal as an unpriviliged user.

    9. Re:one experience by OhHellWithIt · · Score: 2, Interesting
      Kodak Easyshare is one example I have come across - why should a photo album manager need admin privileges to my box?

      Well, can't blame British Rail -- I mean, Microsoft -- for that! (And I try to blame nearly everything on Microsoft.) I'd like to say it's people who accept software that requires admin access to run, but unfortunately, it's just like with the unfair software licenses that are so common -- you feel like you have no choice. "What do you mean, I spent $500 for this digital camera, and I can't run the software because it's unsafe?" Stuff like this ought to be prominently highlighted in product reviews.

      In the corporate world, it's a similar problem. You need a package that does X, and after a search, you decide on one. It turns out not to run under the locked-down environment that everyone knows is safe. The vendor, having cashed your company's check, won't fix it. Management, needing to get the work done that the software was bought for, decrees that the package must be installed, and the necessary accomodations made. So you're hosed.

      Runas and sudo are great workarounds, but they're no substitute for properly thought-out software that is designed to be secure from the ground up.

      --
      "Who controls the past controls the future. Who controls the present controls the past." -- George Orwell
    10. Re:one experience by sharkey · · Score: 2, Insightful
      How do you propose Microsoft "fix" it ? By writing everyone's applications for them ?

      Seems lik there are a couple items they could do to start off:

      • Deny Windows Logo branding to any user app that does not run 100% in userland, and market the hell out of the whys and wheretofores of Windows Logo testing, requirements and consumer benefits.
      • Implement warnings when running apps in a priveledged account. Maybe a "System Administrator" level of Windows Logo to bypass the warnings?
      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
    11. Re:one experience by NewWorldDan · · Score: 2, Interesting

      I used to run a computer lab several years ago (Windows 2000 based) and one of the problems I found on more than one occasion was programs that would try to reregister all of their .DLLs when the program was started. The programmer was probably trying to make sure that their program didn't end up in .DLL hell, but I had to make sure all the requisite registry keys were writeable for all users. That's a real pain in the ass to do without opening the system up across the board. A lot of programs have gotten better about running as a normal user on XP.

    12. Re:one experience by ThePowerGorilla · · Score: 2, Insightful

      I want to live where you do. The land where five year olds are already computer experts. That sounds nice.

    13. Re:one experience by harrkev · · Score: 2, Interesting

      I should also like to point out that I tried the user vs. admin thing. The software that made me switch back was Winamp (they should know better) and Logitech's driver for the Quickcam Chat (they should definately know better).

      Winamp was annoying, but I suppose that I could ask for a refund of every penny that I paid for it, which was nothing.

      Logitech, on the other hand, was more annoying. I paid good money for that product, and a company that size should check for this sort of stuff. The problem is that if you press the "picture" button, the picture gets saved in the documents directory of the preson who installed the camera. And if there is no write permission, explorer crashed. This is simply inexcusable.

      But then again, I have been anooyed by Logitech's driver support before. Less than two years ago, I purchased a wireless keyboard/mouse combo for $80 -- pretty close to the top of the line. They have not released updated drivers in over two years, and their special keyboard buttons do not even support Firefox. You can check for yourself under the Cordless MX Duo page. Since Firefox is the 2nd most popular browser around, I would expect them to update their drivers to support it. But I guess that they figure that they already have my money. But they probably won't have it the next time. It is quite interesting, though. Logitech has excellent hardware, but the software/drivers are poorly tested and poorly supported. Point is: Logitech sucks.

      --
      "-1 Troll" is the apparently the same as "-1 I disagree with you."
    14. Re:one experience by jimfrost · · Score: 2, Interesting
      ..don't want to sound like a Windows fanboy at all but there are many *NIX apps that expect to have root - ethereal for example.

      While there is some truth to this, it's not the case that, say, "larn" or "hack" needs root access.

      But it is the case that many (all of the ones I've tried) of those Disney game programs require administrator privileges. These are basically flash games, and they're being sold for children to use. But they simply will not operate without administrator privileges.

      (This isn't even remotely unique to Disney, by the way.)

      I called up Disney when I found this out because, frankly, I think it's insane that a 3 or 4 year old is given an account with administrator privileges. They knew about the problem, certainly, but weren't even remotely interested in fixing it. They suggested I could either run as administrator or return the software. Nobody accepts the return of opened software, so there you go.

      Some people blame this on the ISVs, and it's true they could try harder. But frankly speaking they are testing their software on standard configurations. If you want security to work you have to turn it on all the time so the ISVs don't have any choice but to write with it in mind.

      We know that works, even with consumer software, because the Mac has been successful at it.

      It's also true that NT had the capability of doing exactly this right from the start. In fact, I built a simple tool to secure NT systems (and presented it at WinDev, even) back in I think 1996. But with the improving backwards compatibility we saw in NT4 came a host of software that simply wouldn't work in secure mode. Microsoft's prime mission was -- had to be -- to get people off of the Win9x platform and onto something modern. Backwards compatibility was paramount. WinXP would have never been accepted if half or more of the applications people ran on Win9x didn't work. So it had to ship open, at least until the market shifted to the new platform.

      Vista really marks the first opportunity Microsoft has to fix it, the first time they could realistically shove security down everyone's throat. I don't have to like that fact but I do have to recognize it.

      Meanwhile my daughter's whole computer is considered expendible (and the rest of us use Macs almost all the time).

      --
      jim frost
      jimf@frostbytes.com
  2. Aaron Margolis by BSDevil · · Score: 5, Informative

    Runs "The Non-Admin Blog" - one of the most useful resources for this. He's a Microsoft staff consultant, and often has tips for it you won't find elsewhere.

    Check it out at http://blogs.msdn.com/aaron_margosis/

    --
    Cue The Sun...
  3. Some advice by VGPowerlord · · Score: 4, Informative
    I'm running Windows XP Pro as a Limited User right now. The important thing to remember is that some programs, games in particular, don't like it if you don't change the file (and sometimes, registry) permissions.

    Registry permissions can be set using reged32.

    Installers are also a problem. Since Windows program like making a mess (i.e. putting DLL files in the system and system32 directories), you usually need to run then as Administrator. The "Run As..." menu item can be used to elevate priviliges for a single program. This appears in context (right-click) menus by default, unless you're in the Control Panel. In that case, hold down shift when right-clicking.

    Windows Explorer can be started as a different user, if you set the option to run Explorer Windows in a separate thread. This option needs to be turned on for the user you're changing to, not for the current user. You can find this option in Control Panel (Classic View), Folder Options..., View tab, Launch folder windows in a separate process.

    Here's a few sources to consult:

    I'm sure I missed some things, but other posters will point them out.

    --
    GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  4. I could hear it now.... by Zanth_ · · Score: 4, Funny

    Considering most users like to install the latest kitchy program, I would assume it would be quite a trial in the current format, to have a user run without admin access. I could only imagine the calls the local techy friend would get, instead of "can you pleeeeease come and fix my malwared/spywared/virused/trojanned/fubar'd computer" it will now be "can you pleeeease come and install happybloggeryp2pdownloadmeforfreeporntoday.exe"

    1. Re:I could hear it now.... by Bert64 · · Score: 2, Funny

      To which you can say "NO!" and hang up... Much easier than trecking over there and spending a few hours reinstalling the whole system!

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  5. The info is out there...if you can read German ;-) by D4C5CE · · Score: 2, Informative
    The staff at Heise, publishers of c't (one of Europe's major IT mags) have dedicated much time, effort, and a series of extensive articles to this question. Some of them are online for a free read, in particular on the pages subsequent to the above link.

    Learning German is probably an effort on par with trying to replicate their years of work and experience. ;-)

    There was even a database detailing which application caused how much trouble without administrator privileges.

    However, in all of this the question comes to mind whether the best way to obtain as much as possible of Mac-like security and ease of use on PCs wouldn't simply be installing Linux in the first place.

  6. Forget it. by lukas84 · · Score: 2, Insightful

    You can Windows as a normal user under the following circumstances:

    a) You are in a company, working with a professional IT environment, with a helpdesk and administrators with knowledge

    b) You are an administrator with knowledge

    Running windows as non-admin is not for the faint of heart. While most Microsoft software runs flawlessly as non-admin, there is a large percentage of third party software which does not. This can be fixed in most circumstances, changing permissions in C:\Program Files\, the HKLM Key in the Registry, giving some Special Permissions to users, etc. pp.

    Most games still don't work as non-admin. Installing a new application becomes a rather tremendous task of trying to find out what doesn't work. Sometimes these missing permissions cause rather subtle errors, which aren't obvious to figure out.

    You will need to use sysinternals filemon/regmon each time you install an application.

    It's not a problem to create a professional company network with only restricted users, if you have staff which is always available (-> You are not using a service provider). And if you have a rather restricted set of applications which is in use (You don't upgrade apps on a weekly basis - might happen if you're using SPS or PBX configuration tools).

    My usual recommendation to home users are the following points:

    * Use COMMON SENSE, think about what you're doing
    * Keep a recent image of your machine on a seperate USB Harddisk
    * Run your machine behind NAT of some sort
    * Keep an updated Antivirus/Antispyware solution on your machine
    * If you can, buy a Mac

    The latter is a good choice, as long as macs aren't to popular.

    1. Re:Forget it. by senatorpjt · · Score: 3, Insightful

      Unforunately, only the people with the knowledge of how to prevent Windows from being compromised by running as Admininstrator in the first place are the only people who know how to set it up to run as a limited user.

      It seems like Windows was set up so that the Administrator uses the Administrator account all the time, and if it's your personal computer, that's you - limited users are for when someone else is the Administrator.

  7. Re:The Problem is with Clueless Users by Russellkhan · · Score: 4, Funny

    So, you run XP as admin with no firewalls or antivirus despite having been hit by a virus in the past, and you don't reboot after updates, which means basically that your updates are not applied to your machine...

    What is it exactly that the 'clueless morons' do that you don't?

    --
    Information doesn't want to be anthropomorphized anymore.
  8. Not hard to do on a home computer... by Rank_Tyro · · Score: 2, Interesting

    Three years ago my girlfriend took her machine to a friend of hers to get it fixed. The guy installed a bootleg copy of XP on the machine, as well as an install of Norton AV.

    When I had to clean the malware off, I noticed that there were no service packs, and the Norton had not been updated in over a year and a half.

    I backed up all the pictures and work documents, then installed a legal version of Win2K Pro, Anti Vir, Clamwin, Firefox, spybot and Ad Aware.

    The hardest part was convincing her to use her newly created user account. She did not like the idea of not having privledges on her own computer.

    After alot of explaining, she agreed that maybe I knew a little bit more than she does about maintaining a computer. I had to give her the root password, but made her promise not to use it.

    Now, the box has had no malware infections for over a year and a half. The only programs not useable by the user accounts are StarCraft, and Bit Commet. Neither of wich she cares to use.

    The three different accounts all have different wallpaper, admin has a very large picture wich is predominantly red....signifying "stop", or "Danger". If she wants to start browsing, she checks to see if anything is running, and then shells out into her user account.

    My user account has a wall paper picture wich is a green background with a Templar in blue and green hues...signifying "go", or "Safe."

    Her account has a nice picture of the San Francisco wharf, taken from a boat. There is no way for her to infect this machine unless she does it maliciously. And even then, the I keylogger installed will probably help me figure out what she did, as well as when.

    --
    Today's show is brought to you by the number 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0: 25
    1. Re:Not hard to do on a home computer... by scsa · · Score: 2, Interesting
      And even then, the I keylogger installed will probably help me figure out what she did, as well as when.

      You'd better check the logs and make sure your girlfriend doesn't read Slashdot. Wait, what am I saying? Don't worry about it.

    2. Re:Not hard to do on a home computer... by biglig2 · · Score: 3, Insightful

      You put a keylogger on your gf's machine? I hope she doesn't read slashdot.

      --
      ~~~~~ BigLig2? You mean there's another one of me?
  9. Re:Annoying by datafr0g · · Score: 2, Informative

    I agree that it is annoying in general however in XP Pro, installing an application is usually pretty painless.

    Just "right click" the installer executable and select the "Run as" option to run the installer as a user with privilages.

    --
    "Who says nothing is impossible? Some people do it every day!" - Alfred E. Neuman
  10. Regmon Filemon by pedestrian+crossing · · Score: 3, Informative

    You can eliminate the guess work by using Regmon and Filemon from here.

    These utilities log all file and registry access attempts, successful or unsuccessful.

    Most applications that "need" admin rights, actually only need the correct rights on a specific reg key or directory. Granting only the needed rights gets the app working without adding unnecessary rights/risks.

    --
    A house divided against itself cannot stand.
  11. Give the kids a VM by Anonymous Coward · · Score: 2, Interesting

    www.vmware.com

    Back it up when it's in a pristine state, then anytime they mess it up, delete it, restore from the backup.

  12. Some tips... by pla · · Score: 3, Informative

    As someone who runs as a non-admin, I'll share a few tips I've learned on how best to make everything work...

    1) Download CPAU, which works somewhat like RunAs but will let you create "job" files so you don't need to type a password each time.

    2) Make three accounts, a "guest" (don't use the built-in guest account for this) user, a "poweruser", and an "admin" (don't use the built-in admin account for this). For the rest of this post, I'll call your real account "fred", the lower-permissioned account "barney", and the higher-permissioned account "gazoo".

    3) Set the root of all drives to explicitly "deny" all permissions to "gazoo". This wouldn't even slow down an interactive attacker, but few hostile programs expect to need to take ownership and change permissions from an account already having admin privs.

    4) Give "fred" write permission on "Documents and Settings\barney". Give "barney" read permission on "Documents and Settings\fred". Give "fred" read permission on "Documents and Settings\gazoo". That alone will solve 99% of permission problems you'll have.

    5) Use CPAU to set up job files to run all your networking programs (browser, email, IM, etc) as "barney". Do the same for all programs that legitimately need admin access (many CD/DVD rippers, for example) to run as "gazoo".

    6) To install most software (even well-behaved software that doesn't require admin to run), log in as admin (the real one, not "gazoo") and create its directory under Program Files, giving "fred" (or "barney" if it will run with reduced permissions) write permission to that dir. Then, install it while logged in as "fred" (or, again, as "barney" if applicable). Also, some pesky software will work best if you install it first as the user it will run as, and then as "fred". Firefox and Thunderbird fall into this category, because of the way they handle user profiles (Using the highly-recommended "Portable" versions of both will completely avoid this problem, btw).


    The above will take care of most common problems you might have. Other problems will still pop up, however.

    For example, good luck printing from your web browser - you can use Microsoft's TweakUI to edit the relevant ACLs, but that seems like about a 50/50 shot of working. I curently have two machines at home set up more-or-less as described above, and basically identical. One of them can print from "barney" and one can't. Wierd.

    Also, get used to using UNC names. Mapped drives, even if mapped under all three accounts, will not show up for programs running as anyone but the currently logged-in user.



    And some "experts" wonder why so many Windows users still run as admin.

  13. Answers to your thoughts: by Ayanami+Rei · · Score: 2, Insightful

    1) Don't use Winamp. Use foobar2000. Works properly with multiple/non-privledged users... plugins for everything under the sun.

    2) There are other programs besides the Logitech tool that can take pictures with your camera. Try any other PTP supporting application (like the Windows XP Camera wizard). In general bundled software that comes with any hardware is likely to be crap... not just Logitechs'.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  14. Cool Hack: by Ayanami+Rei · · Score: 3, Informative

    Create a secondary user, call it, I don't know, Granny2.

    Give this user permissions to do whatever it is that the unprivledged account can't deal with (modifying its own Program Files directory, whatever). Make it have no password and deny interactive logon, but allow batch logon.

    Now, using "su" from sysinternals, create a shortcut that runs su with the options to log on as "Granny2" using a "batch" logon, and have it run the nasty application.

    Here's the key. PUT THE LINK IN HER PERSONAL START MENU/DESKTOP. Not in the All Users desktop. These are special shortcuts for this ONE USER.

    To complete the tour de force, go into the registry under the Granny2 user find:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Shell Folders

    Change Personal, Desktop, etc. to MIMIC the Granny user. Then give Granny2 R/W privs on the Granny profile.

    Boom! Smooth, seamless access to all misbehaving apps. I did this to get Turbotax and Quicken to run on a family PC under multiple accounts with unprivledge users who know nothing about technology or to remember passwords.
    Worked like a charm.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  15. Ok... we're getting closer to my original point... by lorcha · · Score: 2, Insightful
    So make the next mental leap. Suppose Microsoft were to, as I originally suggested, make Windows default the user to an account with no admin rights. Then when Grampa Bob tries to run TurboTax and it shits all over him (that's the technical term for, "Bob's attempted execution of the TurboTax application failed with a cryptic and unhelpful error message"), Grampa Bob is going to call up Intuit and say, "WTF?".

    If Intuit doesn't want to have to deal with Grampa Bob and 50,000,000 of his closest friends who can't run TurboTax because Vista defaults to a user account, then Intuit can fix their application or cede all of their customers to TaxCut.

    --
    "Avoid employing unlucky people - throw half of the pile of CVs in the bin without reading them." -- David Brent