Freedom The Open Source Way Contribute Articles or News to OSForgeOSForge HomeLogout from Forums
Contacting OSForgeOSForge HomeAbout OSForge
  

Root
Contribute News
Learning Corner
Linux Distributions
Linux Common FAQ's
Discussion Forums
Community Gallery
Links Directory
Search OSForge
Networking
Industry Updates
Linux & Open Source
Opinions
Press Release
Programming
Security
Web Development

White Paper
The Linux Foundation Reveals Speaker Line-up for 2nd Annual Collaboration Summit
Zenoss Core Named 2008 CODiE Awards Finalist for Best Open Source Solution
Cluster Resources Releases TORQUE 2.3 and GOLD Allocation Manager 2.1.5
Open-Xchange Announces New CEO, Board Positions
xTuple Debuts Managed Server Network
World’s Largest P2P Media Distribution Provider Selects Zenoss
Linux Kernel Developer Ted Ts’o Joins Linux Foundation as Chief Platform Strategist
Zenoss Launches Network Management Products for Education
xTuple Applications Certified for Mac OS X “Leopard”
New Funambol Release Expands User Base for Open Source Push Email and PIM Sync

View More

Forgot your root password?
  [Printable Version]



Boot into single user mode
You have have root access to your system without even loging in by booting into single user mode. You can do so by a simple command at boot loader. Here is how to do that in the most popular boot loaders LILO and GRUB. You can also use a linux boot disk similarly if you are not using a boot loader.

LILO
Just enter 'linux -s' or 'linux single' (without quotes) at the LILO boot prompt.

GRUB
Hit 'e' at the Grub screen and then add 'single' to the kernel line and boot.

Now you have booted into the single user mode and have root access you can simple type 'passwd' at the shell prompt to change the root password. It would not even ask you for the old password before setting the new one.
Now press Ctrl+D to restart and boot as normal.

Additional security tips
Now, you may have guessed that how easily others can get root access to your system and can even restrict you by changing the root password. So you need to apply some additional security measures in order to prevent your system.

You can password protect LILO to add a little security (Read my article on password protecting LILO). You can also disable floppy boot in your BIOS settings so that someone is not able to use a boot disk. Also, remember to password protect your BIOS after you are finished.

  

[ Back to Linux Computing | Sections Index ]

 
Scroll Up

   About | Term of Use | Privacy | Adras | Tell a Friend | Advertise  

OSForge News RSS Feed