Add sudoer user to Linux

Ubuntu 12.10 add sudo user

Ubuntu has disabled root account login by default.

sudo adduser craig
sudo usermod -aG sudo craig

Earlier note

useradd username -G wheel
passwd username
visudo

# uncomment this line

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL

# Set up ssh access with requiring a password
ssh-copy-id -i ~/.ssh/id_rsa.pub remote_host

Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: