LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-28-2005, 09:49 PM   #1
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Rep: Reputation: 15
Urgent! Deleted Root!


i was logged in as root to install MySQL and i did something i guess and root user was gone! does anyone have any idea how i can restore it? i have no Cd tray to re-install linux... any possably-working suggestions would be appreciated... please help! im on a microsoft labtop now that i wount be able to use after tonight...
 
Old 06-28-2005, 09:58 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Are you sure ?

What error messages do you get when logging in as root (or su -ing to root) ?

Cheers,

mj
 
Old 06-28-2005, 10:02 PM   #3
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
when i type su i get "user root does not exist" i got my computer running, but still no root user... maybe someone can send me the useradd executable with the chmod set to a regular user and not root?
 
Old 06-28-2005, 10:09 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Quote:
maybe someone can send me the useradd executable with the chmod set to a regular user and not root?
I doubt that that would work, as you would still be attempting to write to directories with the incorrect permissions. I would simply boot up using a rescue floppy (or any other boot media) and exit to a shell -- this will give you root access by default. Then just run adduser/useradd as usual.

Cheers,

mj
 
Old 06-28-2005, 10:10 PM   #5
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
i dont have a rescue floppy... or a CD tray... is there a way to make a rescue floppy without being root?
 
Old 06-28-2005, 10:32 PM   #6
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
Ok, i got my linux computer logged on... but still no root user... if i cant get this fixed then i will be stuck with no root user until friday (when my mom goes to work and i can take the CD drive from her computer and put it on mine and hope linux is done installing before she gets home... or else she will be extremely pissed to the 100th power... i accidentaly stepped on mine...)
 
Old 06-28-2005, 10:35 PM   #7
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
As far as I know, you can use mkboot. Otherwise, you can follow the guides for a 'roll-your-own' boot floppy here http://www.phenix.bnl.gov/~purschke/RescueCD or use Tomsrtb: http://www.toms.net/~toehser/rb. Any boot disk from any distro will do.

Also, make sure you read the man page for adduser (you'll have to add root as a system user, for a start).

Cheers,

mj
 
Old 06-28-2005, 10:39 PM   #8
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
both of those require a CD tho... i only have a floppy drive...
 
Old 06-28-2005, 10:43 PM   #9
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
im going to sleep for tonight... please keep posting suggestions and i'll be back in the morning (hopefully) to check on it... thanks mjrich and everyone else in advance for anyone else
 
Old 06-28-2005, 10:46 PM   #10
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Quote:
both of those require a CD tho... i only have a floppy drive...
No, have a closer look

Tomsrtb is a tiny floppy-based linux distro, while the Roll your own has instructions for both cd and floppy. It also has links (near the top for existing boot floppies, including Tom's) that you can download.

Cheers,

mj

Last edited by mjrich; 06-28-2005 at 11:03 PM.
 
Old 06-29-2005, 12:34 PM   #11
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
>.< my floppy drive isnt even mounted... and i gotta be root to mount them... oh well, guess i have to do a fresh install when my mom goes to work...
 
Old 06-29-2005, 04:50 PM   #12
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Quote:
my floppy drive isnt even mounted... and i gotta be root to mount them...
Odd. Well, the last resort is to ring around any folks you might know, and ask whether they have a linux boot floppy lying around. The old boxed versions of Mandrake used to come with them -- not sure about the more recent Mandriva metamorphosis.

Good luck with it all, anyway.

Cheers,

mj
 
Old 06-30-2005, 07:50 PM   #13
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Original Poster
Rep: Reputation: 15
thanks... i was having trouble trying to get MySQL working anyways, guess a full reboot might help that anyways... i'll be able to steal my moms CD drive tomarrow and do a re-install... then re-upgrade my kernel (i remembered how to get my sound card working... ) and download some stuff... guess it'll work out for the better anyways... i wish i could switch distro's tho... but not having a burner and being on dailup kind of arent allowing that...
 
  


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
Deleted user Root? legendaryfox Linux - Software 4 01-09-2005 01:12 PM
root account Deleted chandu Linux - Security 1 06-18-2004 12:47 PM
Deleted root user france Linux - Newbie 1 04-30-2004 06:57 AM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM
Deleted the /root/.bash_profile, looking for default bparke Linux - Newbie 4 11-19-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:20 AM.

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