Riaan's SysAdmin Blog

My tips, howtos, gotchas, snippets and stuff. Use at your own risk!


Auto Login and Sudo Security Cheat

Sometimes you have a VM that you just don't care about security.  I do the following to cheat a little on login and sudo.

Update shadow password file will enable tools like gksudo to work.  gksudo is what is used for prompts you get when using System Administration etc...  You don't have to type your password just hit enter.

It has to be this specific string "U6aMy0wojraho" you set.

# grep rrossouw /etc/shadow

Give yourself some sudo privileges.  For instance sudo -s won't need a password. Use visudo tool to update sudo policies.

# grep rrossouw /etc/sudoers

Enable Auto Login: System Settings -> User Accounts -> Unlock -> Authenticate (No need for password now) -> Click Automatic Login

I also disable my screensaver and password lock on the VM since my host has that enabled through an Active Directory policy already.


Bio Info for Riaan