LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-06-2005, 11:49 AM   #16
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Original Poster
Rep: Reputation: 30

no i dont have an active cd writter, its missing cables n stuff so not right now
and the partition is /dev/hda2
 
Old 04-06-2005, 11:57 AM   #17
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
so you're preparing to test?
 
Old 04-06-2005, 12:00 PM   #18
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Original Poster
Rep: Reputation: 30
yea, i changed that /etc/shadow line to just "root::" and im already in the system running with out a mouse, but i worked my way to a shell, and i try to login as root, nothing happens, and now im trying to change its password and still nothing... so what can i do now?
 
Old 04-06-2005, 12:02 PM   #19
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
you need to get a liveCD, somehow: knoppix, or gentoo, or ANYTHING.
that will allow you to mount your root filesystem, and then you can 'chroot' in (change root) so that you can modify your system.
 
Old 04-06-2005, 12:05 PM   #20
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Original Poster
Rep: Reputation: 30
chroot to where? on the rescue system i did that and for i got from it, it was that it moves it somewhere or something, or grants permits, tell me more about using it and changing it like that
 
Old 04-06-2005, 12:09 PM   #21
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
you may have obliterated your bakcup shadow file somehow, which is what you really need.

in recovery mode: will passwd allow you to do anything at all?
 
Old 04-06-2005, 12:22 PM   #22
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
well you dont need any liveCd or such. Imagine how people dealt with similar problwms before liveCD?
editing shadow is not enough obviously.

and this one:
"root::"
is wrong. It should be
root::::

four colons, not two

It is easy to reset password. Really no big deal:
Step 1
disconnect computer form the network (you will work with root priviledges)

Step 2
Boot from your first install CD and press F1 at the first screen, then choose "Rescue System" from the menu and at the prompt type:

root (You do not need a password.)

Step 3
at the prompt:

# cd /etc
# vi passwd
Next, press "i"

look for root line (something like):

root:x:0:0:root:/root:/bin/bash

delete the "x" after "root:" leave the colons!

Now you should have something like:

root::0:0:root:/root:/bin/bash

Save file and exit:

Press ESC then wq and enter

Next edit:
# vi shadow

Press ESC then "i"

root::::

If there is something after :::: press ESC then "x" to remove symbol under cursor

Save the file:
ESC next wq


reboot your computer, log in as your normal user, and from the console window enter:

$ su
# passwd

And set the new root password. Log out as root
 
Old 04-06-2005, 12:40 PM   #23
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
thank you for clarifying what I was trying to remember
 
Old 04-06-2005, 12:44 PM   #24
vititmani
LQ Newbie
 
Registered: Apr 2005
Location: india
Distribution: Redhat,Mandrake
Posts: 2

Rep: Reputation: 0
hello,

i think u have to edit the file /etc/passwd and then remove the X so that it tells we dont have password. and also in the shadow file .

else instead do this

at boot loader press 'a' to do changes( Linux is the title displayed )

boot: Linux init=/bin/sh



init=/bin/sh is passed as kernel

This causes the system to boot the kernel and run /bin/sh instead of its standard init. Now you have gained root privileges and a root shell. Since / is currently mounted read-only and many disk partitions have not been mounted yet, you must do the following to have a reasonably functioning system.

init-2.03# mount -n -o remount,rw /
init-2.03# mount -avt nonfs,noproc,nosmbfs
init-2.03# cd /etc
init-2.03# vi passwd
init-2.03# vi shadow


u can refer

the link:

http://www.debian.org/doc/manuals/re...h-tips.en.html

Last edited by vititmani; 04-06-2005 at 12:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forgot root passwd urgent nimaelec1 Red Hat 4 02-17-2005 11:37 AM
forgot root passwd sanu Linux - Newbie 2 09-21-2004 02:07 AM
forgot root passwd sanu Linux - Newbie 1 09-20-2004 04:45 AM
FORGOT root passwd WannaLearnLinux Linux - Newbie 5 03-30-2004 12:36 AM
I have forgot my linux root passwd shankha Linux - Security 2 09-13-2003 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration