How to reset GNU/Linux root/user password

The root account is the most privileged account on a Unix system. The root account has no security restrictions imposed upon it (Hmm…there are some exceptions though). When you are logged in as super user, you don’t have to face any questions. Therefore it is easy, with a mistyped command, to wipe out crucial system files or even the whole system all of a sudden. I have had situations where I forgot my root password and is unable to do any administrative level tasks. Due to increase in different type of cloud services, users are forced to manage large number of passwords and it is very common to forget some of them which may include the system’s own root password. What can we do in those situations? Either we recover or just reset the previous root password with a new one. The former is Read More »

Make the traditional grub look and feel better


Are you bored with all default entries in the grub menu as shown in the image above?
As you know these are some of the options grub provides in case of any errors. Most
of you may be familiar with the memory_test option which is used for checking the errors
in RAM or the main memory. The recovery mode entry in the grub menu is set for enabling
reovery in case of any crashes in the normal working of the linux system. But these
entries doesn’t seeem good for me. I think it is also the case with some of the linux
users. So I decided to edit the grub menu by doing some tricks. Following
are some of them. It may be helpful for some of you.

  • Removing the memory_test option

sudo chmod -x /etc/grub.d/20_memtest86+
sudo update-grub

  • Removing the recover mode entry

sudo nano /etc/default/grub
Uncomment the folowing line
to look like
and save the file.
sudo update-grub

  • Inserting background image

Move to the directory where required image is stored.
sudo cp example.png /usr/share/images/
sudo nano /etc/default/grub
add a line
and save the file.
sudo update-grub
Note: grub can use PNG, JPG/JPEG and TGA images for
the background. The image must meet the
following specifications:
a) JPG/JPEG images must be 8-bit (256 color)
b) Images should be non-indexed, RGB

You can also edit the menu text colors under /boot/grub/grub.cfg.
Don’t forget to run update-grub after making changes.

  • Edit the menu titles

sudo nano /boot/grub/grub.cfg
Search for the lines starting with menuentry.
Following that you can see something
written in single quotes or double quotes.
You can edit inside those qoutes to what you
want to appear in grub menu. And now save the
Note: Don’t execute update-grub after saving the file.