Posts Tagged root

Reset root password!!

First thing, don’t think this is a flaw in linux. This is not. This is only possible if you are given the system physically and u are allowed hands on before the booting process.

Here it goes,

1. Start your computer. At the grub screen press ‘e’ on ubuntu os selection.
you get a screen with the kernel and initrd choices.
select the kernel choice and press e.
you will get a line as follows

/boot/vmlinuz-2.6.24-19-generic root=UUID=75058396-0925-491c-badc-d621ea98bf1b ro quiet splash
my kernel is 2.6.24-19, the line will not be exactly same as in yours. just similar.

2. Change it to as follows.
/boot/vmlinuz-2.6.24-19-generic root=UUID=75058396-0925-491c-badc-d621ea98bf1b rw init=/bin/bash

make sure you change ro to rw and remove quite and splash
and add the init process as bash.
then press enter key .

3. then select the kernel that we just edited and press ‘b’ to boot into a root terminal without any authentication.
type in the command passwd
and enter the new root password.

if you want to reset the password of some other users just type su username from the root teminal and use the passwd command to change the password.

Now reboot the system and log with the new passwds.
<<<<<>>>>>

7 comments September 30, 2008

Being root (su root) – No more sudo.

After the ubuntu installation the default user is a sudo user.

Log into that user and type

$ sudo -i

and the password of the user.

now u get a “root” terminal ( inverted comma was to differentiate between the real root and sudo “root”.)

type the command

$ passwd
Enter new UNIX password:
Retype new UNIX password:

(more…)

5 comments August 9, 2008


Tags

airtel on linux amarok beryl bluetooth and ubuntu bootloader chainloader compiz compiz fusion cube dual boot evil first look on ubuntu fun gdm gnome grub GUI root install KDE4 lilo linux linux basic software M$ nautilus scripts obex pidgin restore grub root ruby script shipit shutdown su sudo sudo -i time up dude ubuntu vi vim vlc windows windows sucks wvdial zenity zenwalk

 

November 2009
S M T W T F S
« Oct    
1234567
891011121314
15161718192021
22232425262728
2930  

About Me

Cyriac Thomas

A GNU/Linux enthusiast, Amateur Photographer, Design enthusiast who loves simplicity. An active tweeter @cyriacthomas.

RSS Photoblog

My Recent Tweets

Links

Archives

Blog Stats

Flickr Photos

I <3 the web

20032008(026)

20032008(021)

More Photos

del.icio.us/cyriacsmail

Bot Comments ;)