The idea of
least privilege is not new. The Unix and Linux world has been on this track for a long time and I believe that this idea is finally getting some traction in the windows environment and none too soon. With all of the malware (viruses, rootkits, spyware/adware) out there restricting normal users should be a requirement for almost everyone.
In the windows world operating with least privilege means that you operate your computer day to day as a restricted user. This means that you are normally logged in under an account that does not have access to install programs, can not change systems settings, and more importantly, has very limited ability to bad things (like install malware)
Don't think you need to do this? Most antivirus and spyware removal products have no defense against the looming rootkit threat. To get an idea of type of threat people are facing check out
this interesting eWeek article. Here is a quote excerpted from that article:
"You could say the average end user is a sitting duck," said Jamie Butler, director of engineering at HBGary Inc. and author of FU, one of the first proof-of-concept rootkits.
Self imposed restrictions like the ones I am suggesting here can go a long way to protecting a computer. Most bad software (think rootkits, spyware, and viruses) that try to covertly install on a computer operate at the same security level as the person logged in. So, if a person is logged in as a restricted user the software is not able install or make any changes to the PC. Conversely, if a a user is logged in to their computer is operating as an administrator (as most people are) the malware has full rein to do anything it wants to your PC.
My most recent personal experience with this security method amounts to locking down roughly 100 business desktop and laptop computers for a national contract service company. This has worked wonders. The secured computers are more stable and have remained completely free from malware infections. In addition, the machines that are locked down require less support because fewer things go wrong.
All business computers should be locked down. Almost all companies have some sensitive information stored electronically on their computers and having users logged in as administrators for normal activities is a security breach waiting to happen. Having current antivirus software, spyware detection and removal software, and a firewall is extremely important, however, it is also inadequate without further security measures.
Here is another very interesting eWeek article - Is System Lockdown the Secret Weapon? It talks about locking down computers in a business setting and gives some interesting stats and results that people have had from implementing this security measure.
Armed with this knowledge most people would agree that implementing this type of additional security make sense. The rub here is that there is almost always a trade-off between security and convenience. And restricting the normal users accounts is no exception.
Here are some basic instructions for locking down your user profiles:
Note: I am basing these instructions on Window XP Professional. Windows 2000, 2003 and windows XP Home may be slightly different. If you run into a jam then feel free to post and I may be able to provide some clarification.
WARNING: Before you restrict yourself you need to know your administrator password. If you restrict your normal account(s) and forget the admin password your will no longer be able to install software on your computer. Proceed here at your own risk. - Log in as the administrator
- Click Start | Settings | Control Panel | Administrative Tools (You may need to Switch to Classic View to see this)
- Open Computer Management and expand System Tools | Local Users and Groups and click on Groups. Your screen should look something like this:

- Open the Administrators group and remove everyone except for the Administrator user. Here is an example:

- Open the Power Users group and remove everyone
- Open the Users group and add all of the appropriate users.
Here are a couple of the larger inconveniences that you can expect to run into when restricting your user accounts and some helpful information and links on how to operate in a non-admin mode.
Restricted users can not install software.In order to install software log out and then log back in as the administrator to perform the software installation. When complete log back in as the regular user to enjoy the additional security.
In some cases it may not be necessary to log out of a restricted profile in order to install software. Many programs can be installed by right-clicking on the installation file and choosing the
Run As option (in Windows 2000 you must hold down the Shift key while right-clicking in order to see the Run As option). This gives the user the ability to temporarily grant administrative access to the installation program so that it can complete the installation. Windows Vista (the new version of Windows that Microsoft is working on) will have enhanced User Account protection that should make this process easier and more secure.
You can read about it here. Here is a screenshot of the Run As... dialog box:
Restricted users can not modify their power settings. This one is fairly annoying and I have personally fielded a lot of questions about this.
Here is a link to a registry hack that will allow all users to modify their power settings. NOTE: Please be very careful modifying your registry settings as making mistakes can seriously damage Windows.
For other important things like installing printers, changing the data/time, installing software updates, etc... log in as the administrator, do your business, and log back out.
Also, check out "
The Non-Admin blog - running with least privilege on the desktop." This is a valuable site with lots of good information.