Use the boot & root disk that comes with slackware and do the
following -
- Boot the system with that, and then insert the root disk.
- Once you are in as root (this root is different from the one that
is messed up), mount your "/" partition under /mnt.
- Then create a diskette with an ext2 file system on it, insert it
into the drive (you can take out the root disk now), and copy the
"corrupted" passwd file onto it (it should be /mnt/etc/passwd).
- Take the diskette to another machine and put in the correct line
containing the root entry from a working machine.
- put the diskette back into the original machine and copy the
passwd file back into /mnt/etc/passwd
- reboot
If you did it right, you should be able to login as root with the
same password as that on the machine from which you copied the
'root' line in to the password file.
-amlan
[ From: <[EMAIL PROTECTED]> 22:14:35 (-0500) 01-11-1999 ]
[ Subject: Re: [ilug-cal] A Linux help Required ]
Interesting problem. I wonder what permissions your /etc/passwd file have ?
Do you have shadowed passwd too ?
Assuming that you are able to modify the /etc/passwd file, add a line same as
one of the user names and change the user name to root. Also change you uid:gid
to 0:0 , users will be something like 500:500 or there abouts.. change you
login dir as /root.
Or at the linux boot prompt enter linux single
and fix your password file or adduser root .
Hope that ives u some idea
Thanks
shourya
Jayanta Mukherjee wrote:
> Dear Members
>
> I am using Linux SuSe6.1 and facing some acute problem like unable to login
> as root , I can login as different user name. I have checked the etc/passwd
> file and found that root line has been not there in file. by any means this
> has been deleted or damaged. Is there any way to recover this w/o
> reinstalling? I donot have any backup of that file.
> Any help will be appreciated.
> Thanks In Advance
>
> Best Regards
>
> Jayanta
>
> Jayanta Mukherjee
> Vedika Software Ph :91-33-2473810
> 5B Sarat Bose Road Fax :91-33-2479474
> Calcutta-20
> India
> http://www.fact.com.sg
> http://www.allindia.com
>
> --
> To unsubscribe, send mail to [EMAIL PROTECTED] with the body
> "unsubscribe ilug-cal" and an empty subject line.
> FAQ: http://www.ilug-cal.org/help/faq_list.html
--
_______________________________________________________________
Shourya Sarcar
Student
Department of Computer Science and Engineering
Jadavpur University
Calcutta, India 700 032
Email : [EMAIL PROTECTED]
Tel : 91-033-471 0477
Address : 364/3 Netaji Subhas Chandra Bose Road
Calcutta , India 700 047
_______________________________________________________________
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html
--
amlan
.
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html