Nixadmins.net

Why UAC is the best thing that ever happened to Windows

by Mats Hellman on Dec.04, 2009, under Server 2008 r2, Vista, Windows, Windows 7

You’ve probably heard, countless times, why the Windows UAC (User Access Control) is the worst function ever introduced in a Windows operating system. Today we’ll look at it from another point of view. I’m saying it’s the best function introduced in Vista and later. Why? Because it makes it easy to elevate your privileges without holding down the right CTRL button or looking for it in any menu. How? I’ll show you in a minute.

Using any operating system with administrative privileges is a bad idea. It doesn’t matter if your running OS X, Windows, Linux or something else. If you’re running your day to day tasks as an administrator(root) you’re not thinking straight. You should be using as little privileges as possible to get the job done, and here UAC does a beautiful job stepping in as a bridge into administrator land.

I run my Windows 7 as a ordinary user and have two separate administrator account for any admin work I need done. I haven’t had any problems running as a user since I started using Windows 7(never really used Vista that much). I can work efficiently as a user and elevate my privileges at any time if I need to.

UAC isn’t really there for the ordinary user it’s there to protect you as an administrator so you won’t make mistakes you might regret later. It makes you think about what you are doing, even if you are running as an administrator, touch something that’s crucial for the OS it will hit you with an prompt to remind you that this could have consequences. Find it annoying? Don’t. Use it, bend it to your will.

Using UAC to elevate privileges.

A typical situation is you start an installer and it asks you for the name and password for an administrative account. This worked long before Vista or Windows 7. But the great part with Windows 7 is that you can ask for elevated privileges REALLY easily.

Let’s take Active directory Users and Computers as an example. You can run it and browse your organizational units and you can se users without administrative privileges. If you need to open an account or reset a password you will have to elevate your privileges OR you can delegate the tasks to your restricted user or maybe even a co-worker who normally doesn’t work in IT(by creating custom MMC:s).

Anyway to elevate just hit the Windows Logo button, type Active Directory move to Active directory users and computers AND hit SHIFT+CTRL+ENTER. Instead of the program starting with your user privileges Windows tries to elevate and sees that your access token doesn’t have the required rights for this. So it shows you the prompt. Easy as 1,2,3.

UAC_start

This is something most corporate administrators are used to BUT I would like to see home users adapt to this workflow as well. In the example I used the builtin Windows search, but you can start up any program like this. Now that you have read how easy this is, PLEASE create an administrative user to use and remove administrative privileges from your normal account. I promise it will feel natural in a few days and you’ll be a lot safer using your computer.

4 Comments :, , more...

MAMP hang after OSX unclean shutdown

by Mats Hellman on Nov.26, 2009, under Apple, Mac OSX

Today we had a power outage and after a few hours when power finally came back on I tried to get my development tools up again, everything was fine except for MAMP. It seems MAMP isn’t able to delete it’s PID files after something like this so it just flashed and shut down. This is because it thinks it’s already running even if it’s not.

Anyway, MAMP uses it’s own Application folder to store the pid files and the fix for this is really simple. Open your terminal and

iMac:~ cd /Applications/MAMP/Library/logs

iMac:~ rm httpd.pid

iMac:~ cd /Applications/MAMP/tmp/mysql

iMac:~ rm mysql.pid

After deleting the PID files MAMP should start just fine again.

2 Comments more...

Quick Tip: Installing Linux from USB-stick

by Mats Hellman on Nov.25, 2009, under Linux

This is a short tip so I will remember how to do this the next time I need to. It’s not a lengthy article or in-depth howto. Anyway, today I wanted to try out the latest Ubuntu (9.10) on my Lenovo X200s and my docking station was at work so I had no access to a dvd drive.

Installing from a USB-stick should be trivial so I decided to try it out and googled around to find some information on how to put Ubuntu on my Kingston Datatraveler.

Googling I found this wonderful program that, if needed, even downloads the files for you. But since I already had the Ubuntu ISO I could just start up UNetBootin and have it set Ubuntu on my USB-stick.

To do this just download http://unetbootin.sourceforge.net/ and start it. Select your ISO and the destination drive and you’re done. After that you have a fully functional USB Linux.

1 Comment :, more...

CSS Reset by Eric Meyer

by Mats Hellman on Nov.12, 2009, under Uncategorized

Anyone working with web design knows styling can sometimes be a real pain in the a**. Sometimes the styles just won’t do what you expect them to do and it might be a challenge to find out why.

Today I had a problem like this and couldn’t find the problem anywhere. I then remembered Eric Meyers great reset CSS and added it to the page. Magically everything fell into place. I felt like a moron since I forgot to add it earlier.

Anyway, you can find this great and useful CSS reset at http://meyerweb.com/eric/tools/css/reset/

Leave a Comment more...

Defragmenting Windows

by Mats Hellman on Nov.07, 2009, under Windows

I’ve been a nice Windows user since Windows 95 and have always defragmented my drives. I’ve used free defragment software’s like the Windows Integrated Defragment and Smart Defrag. Today my new HP Z400 Workstation started to feel sluggish. It’s only a few weeks old but already sluggish… This can’t be true. I know it’s running Visual Studio 2008, SQL Server 2008 developer edition and a few not so remarkable processes.

Anyhow, a few weeks should just not make a workstation sluggish. The workstation has Vista 64 installed and has 8Gb RAM so it should more or less be flying.

(continue reading…)

3 Comments :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...