ROOT & SUDO
The root user in GNU/Linux is the user which has
administrative access to your system. Normal
users do not have this access for security
reasons. However, Ubuntu does not include the
root user. Instead, administrative access is
given to individual users, who may use the
"sudo" application to perform administrative
tasks. The first user account you created on
your system during installation will, by default,
have access to sudo. You can restrict and
enable sudo access to users with the Users
When you run an application that requires root
privileges, sudo will ask you to input your
normal user password. This ensures that rogue
applications cannot damage your system, and
serves as a reminder that you are about to
perform administrative actions which require
you to be careful!
To use sudo when using the command line,
simply type "sudo" before the command you
wish to run. Sudo will then prompt you for your
Sudo will remember your password for a set
amount of time. This feature was designed to
To change the password via terminal
$sudo passwd root
Enter the new password and Retype the
password to confirm.
To disable password
If you don't want password to authenticate while
application installation, login......
$sudo passwd -I root
While you are working as user, you need to
access the root, but you dono the root
password, just type
Enter your user password and start work as
Root Passwd Reset
You forget the root password, you need to login
To do this you have to reset or change the
First, you have to reboot into recovery mode.
If you have a single-boot (Ubuntu is the only
operating system on your computer), to get the
boot menu to show, you have to hold down the
Shift key during bootup.
If you have a dual-boot (Ubuntu is installed next
to Windows, another Linux operating system, or
Mac OS X; and you choose at boot time which
operating system to boot into), the boot menu
should appear without the need to hold down
the Shift key.
For older versions of Ubuntu (9.04 and 8.04),
you can press the Escape key during bootup in
From the boot menu, select recovery mode,
which is usually the second boot option.
After you select recovery mode and wait for all
the boot-up processes to finish, you'll be
presented with a few options. In this case, you
want the Drop to root shell prompt option so
press the Down arrow to get to that option, and
then press Enter to select it.
The root account is the ultimate administrator
and can do anything to the Ubuntu installation
(including erase it), so please be careful with
what commands you enter in the root terminal.
Once you're at the root shell prompt, if you
have forgotten your username as well, type
That's a lowercase L, by the way, not a capital i,
in ls. You should then see a list of the users on
your Ubuntu installation. In this case, I'm going
to reset ckuser18 password.
To reset the password, type
where username is the username you want to
reset. In this case, I want to reset ckuser's
password, so I type
You'll then be prompted for a new password.
When you type the password you will get no
visual response acknowledging your typing.
Your password is still being accepted. Just type
the password and hit Enter when you're done.
You'll be prompted to retype the password. Do
After you get back to the recovery
menu, select resume normal boot
Now you can login as root because you know the
1. You need to reboot your Ubuntu
2. When you reach GRUB page, press ‘e’
(without quotes), this command is to edit grub
3. Edit one of your boot command
4. Replace “ro qiuet splash” by “rw
init=/bin/bash” at the end.
5. Press “ctrl x” or “b”, this will make your
Ubuntu to boot with passwordless root shell,ie
you will be logined as root without password.
6. Then just change your password with
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.