Thursday, July 25, 2013

Enable and Disable Root Login in Ubuntu 13.04

2:34 PM
Sudo is allowed user to become superuser for temporary to run superuser administrative tasks.
During installation only allow to create new user which has no root ( aka super user) privileges. But same user is allowed to execute sudo commands. Configuring sudo access for users, need to configure /etc/sudoers.
We’ll be covering the usage of SUDO and also we are going to show you tips & tricks to become root user.

1. How to enable root account?

Enabling root account is not at all require, however you may enable using ‘sudo -i‘ command to enable root access, you need to supply your password.
$ sudo -i

2. How to change root password?

You can change root password with ‘sudo passwd root‘ command as shown below.
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

3. How to disable root access?

You can disable root access with following command.
$ sudo passwd -l root

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer