Debian Squeeze change root password
== Method 1 ==
Boot into grub, select single user but do not press enter.
Press e to bring you into edit mode.
Scroll down to the kernel line, it starts with “linux /boot/vmlinuz-2.6…….”
Scroll to the end of that line and press space key once and type
init=/bin/bash
Press Crtl x to boot
$ remount / as rw
$ mount -rw -o remount /
Change password with
$ passwd
type your new password, hit enter and reboot.
== Method 2 ==
Boot from another installation of Debian. (One can use a LiveCD to get access to the “/” partition.)
Then, mount the partition where you have Squeeze’s “/”, then changed directory to /mnt/etc
Used vim as an editor to edit the file shadow.
It found the line starting with root:
Deleted everything between the first and second colons, and voila’,
root::$6$fsdsdgdsg74.:14862:0:99999:7:::
Reboot as root without a password.
At the end use passwd to set a new root password.
6 Comments »
Leave a Reply
-
Recent
- Set Time Zone + Fedora 18
- Fedora 17 + Tata Photon (Huawei)
- Fedora 17: Install OpenSSH Server
- Change the default keyring password
- Error: Could not stat() command file ‘/usr/local/nagios/var/rw/nagios.cmd’!
- Gnone 3.X adding personal launcher
- Gnome 3.x Change Panel
- KDE remove autostart programs
- GPS on Linux
- Debian Squeeze change root password
- Download YouTube Videos on Linux
- Pidgin + The certificate for omega.contacts.msn.com could not be validated
-
Links
-
Archives
- April 2013 (1)
- September 2012 (2)
- August 2012 (2)
- July 2012 (2)
- November 2011 (1)
- July 2011 (1)
- April 2011 (1)
- January 2011 (1)
- November 2010 (1)
- September 2010 (2)
- July 2010 (3)
- March 2010 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS
Great!!! Simple and perfect!
Many thanks
Great post. Only, some people might think “remount / as rw ” is a command to be typed, whereas the actual command is the next line, “mount -rw -o remount /”.
thanks man !!
excellent, you just saved our ….. server 😀 thanx a million.
[…] you are required to change the root password of your debian squeeze just have a look at this page https://derwynd.com/2011/04/14/debian-squeeze-change-root-password/. However “$ remount / as rw” is not a command to be typed in at the terminal, it is […]
Pingback by Debian Squeeze: Change Root Password | TechStuff | March 28, 2013 |
Reblogged this on TechStuff and commented:
Well, I just like to reblog this on, so I can be sure I can get back to this 😉