Monday, April 12, 2010

Keep Your SSH Session Running when You Disconnect

Screen is like a window manager for your console. It will allow you to keep multiple terminal sessions running and easily switch between them. It also protects you from disconnection, because the screen session doesn’t end when you get disconnected.
You’ll need to make sure that screen is installed on the server you are connecting to. If that server is Ubuntu or Debian, just use this command:
sudo apt-get install screen

Saturday, April 3, 2010

Create Administrator Mode Shortcuts Without UAC Prompts in Windows 7 or Vista

One of the most talked about annoyances in Windows Vista are the UAC prompts that constantly pop up when you are trying to make system changes. It’s especially irritating when you often need to run a particular tool that requires administrator mode in order to run. Thankfully there’s a simple hack that you can do to create an administrator mode shortcut that doesn’t prompt for UAC.
Note: This should also work on Windows 7.
This works by setting up a scheduled task to run the application in Administrator mode, and then setting up a separate shortcut that tells the scheduled task to run. If that sounds difficult, it’s really not… just follow through the instructions below.
Note: Because you are required to click through a UAC prompt to setup the scheduled task, it’s not really a security loophole.
Create the Scheduled Task Item
Open up Task Scheduler through the start menu search box (usually you can just type task), and then on the right-hand side click the “Create Task” link:
image

Make User Account Control (UAC) Stop Blacking Out the Screen in Windows 7 or Vista

In Windows 7 or Vista, the screen goes dark when the User Account Control window comes up, which is extremely annoying. They call it the “Secure Desktop”, but I think it’s obnoxious.
Note that this will make your system less secure before proceeding.
Windows 7 Makes it Easy
If you are running Windows 7, you can simply head into the UAC settings in Control Panel (or type UAC into the search box), and drag the slider down until you see “Do not dim the desktop”.


Disable User Account Control(UAC) For Administrators Only

If you can’t stand the User Account Control prompts, but you’d still like to retain a little bit of security, you can disable it for Administrator accounts only. What we’ll be doing is actually changing Windows Vista to automatically elevate the privilege level for administrators without prompting.
Note: Disabling UAC will lead to a less secure system, so be warned.
The nice thing about doing it this way is that regular users as well as Internet Explorer still run as regular users, and would still use the normal security mechanisms.
Disable on Windows 7 or Vista Business or Ultimate
To configure this setting on Windows 7 / Vista Business and Ultimate, you can use the Local Security Policy configuration. Just type in secpol.msc into the Start menu search box and hit enter.
Now browse down to Local Policies \ Security Options
local-security-policy-uac-admins.png

Disable User Account Control (UAC) the Easy Way on Win 7 or Vista

I’ve previously written about a way to enable or disable UAC from the command line. This is an easier method that you can use to do the same thing from the GUI interface in either Windows 7 or Vista. To recap my earlier article, UAC is ANNOYING.
Note: Disabling UAC will lead to a less secure system, so be warned.
Disable UAC on Windows Vista
Open up Control Panel, and type in “UAC” into the search box. You’ll see a link for “Turn User Account Control (UAC) on or off”:
uac1.png