LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-02-2002, 11:43 AM   #1
cruella
LQ Newbie
 
Registered: Jun 2001
Posts: 17

Rep: Reputation: 0
You don't exist. Go away!


HELP! I rebooted the Linux server and when it came back up I get a message saying "you don't exist. Go away" when I try to log in as root!!!

Any suggestions?
 
Old 12-02-2002, 11:59 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Not sure if it'd work, but:
Could you boot from a rescue floppy/CD, chroot to your local filesystem, add a new user called 'root' with all of root's privelidges (sp?), and then possibly change to rl1 to see if it worked.

Just a thought.
 
Old 12-02-2002, 12:23 PM   #3
cruella
LQ Newbie
 
Registered: Jun 2001
Posts: 17

Original Poster
Rep: Reputation: 0
I can boot to Linux, but when I come up, I cannot log in as root. As far as I know, there is no boot up disk. I'm rather new at Linux admin, so I'm not sure what you mean by chroot... Can you be a little more detailed? Thanks I appreciate it...
 
Old 12-02-2002, 12:32 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Sorry...

chroot is a command that will allow you to change the root filesystem being used, thus if you boot with a rescue floppy, the root-fs will either be the floppy itself (unlikely) or a temporary filesystem made on your RAM, and using chroot will allow you to change this to your local, harddisk filesystem.

Such rescue floppies are quite numerous, but Toms seems to be very popular indeed. Some of the more recent distros will have a rescue option on their install CDs, but you need to press F1 and type 'rescue' to get to it.

Root, by the way, has a user ID of 0 and a group ID 0 (UID and GID respectfully).
 
Old 12-02-2002, 01:05 PM   #5
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
you could always boot with tom's root disk (http://www.toms.net/rb) and from there use the chroot or manually adding a user called root with uid of 0 and guid 0. man useradd for more information on adding users.

then you'd have to chroot to your local FS and then use passwd root to enable the account. For more info on those commands (chroot, passwd, useradd) search the web or the man pages.
 
Old 12-02-2002, 08:37 PM   #6
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
How and why did your system end up with no root user? After getting root back on you might want to talk to some of the security gurus.
 
Old 12-02-2002, 09:09 PM   #7
fragglehorn
Member
 
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
I think sharper's right -- it sounds to me like you've been the target of a cruel prank. If you're new to administering linux systems, you may want to start over, as piling through access logs can be a real headache.
 
Old 12-03-2002, 03:36 AM   #8
themuppeteer
LQ Newbie
 
Registered: Nov 2001
Location: Belgium
Posts: 18

Rep: Reputation: 0
I used to have this problem to, it was because I made my own bootable cd and I forgot to copy the /etc/passwd file.
Can you log in as another user ? I would look if that file has not gone corrupt or somthing.
 
Old 12-03-2002, 08:09 AM   #9
cruella
LQ Newbie
 
Registered: Jun 2001
Posts: 17

Original Poster
Rep: Reputation: 0
The etc/passwd file is there and all of my other users are still there except for root. There is no super user with an id of 0 and I don't have a boot disk or a rescue disk that work.

We only use this Linux box as a file server and everyone can still get their files, etc.

Can I create a boot disk logged on as myself?
 
Old 12-03-2002, 08:17 AM   #10
themuppeteer
LQ Newbie
 
Registered: Nov 2001
Location: Belgium
Posts: 18

Rep: Reputation: 0
So you can login as yourself ?
What does it say when you type su ?
 
Old 12-03-2002, 08:29 AM   #11
cruella
LQ Newbie
 
Registered: Jun 2001
Posts: 17

Original Poster
Rep: Reputation: 0
It says "su: user root does not exist"
 
Old 12-03-2002, 08:35 AM   #12
themuppeteer
LQ Newbie
 
Registered: Nov 2001
Location: Belgium
Posts: 18

Rep: Reputation: 0
Can't you add a user 'root' ?
Is the passwd file write protected if you are not root?
Don't you have a user who isn't root but still has a lot of permissions ? (like adding users or changing passwd ?)
 
Old 12-03-2002, 08:47 AM   #13
cruella
LQ Newbie
 
Registered: Jun 2001
Posts: 17

Original Poster
Rep: Reputation: 0
Everything is read only. I don't know of another user that has those permissions. Like I said, we barely even touch this box and I muddle through admin. I found a file called passwd.bak that has a user called root, but I cannot rename it to passwd because it says "permission denied".... That would be my solution if I could restore that backup file of the /etc/passwd, but I cannot.
 
Old 12-03-2002, 09:04 AM   #14
themuppeteer
LQ Newbie
 
Registered: Nov 2001
Location: Belgium
Posts: 18

Rep: Reputation: 0
I wonder how it dissappeared...

You could try to login as single user, then you might be able to modify this.
On bootup, when lilo boot is on the screen (if you use lilo,which I hope ;-))

press ctrl x to go to text mode.
type TAB to see your image , normally it will be just 'linux'.
then type 'linux single'.
and you will be root with access.
It works over here.
 
Old 12-03-2002, 09:33 AM   #15
cruella
LQ Newbie
 
Registered: Jun 2001
Posts: 17

Original Poster
Rep: Reputation: 0
When I type "TAB" it says "image not found", but I can type in "linux single" and boot up. I get a "bash#" prompt. I type "login" and login as myself. But I still cannot edit any files. Any other ideas. I try to edit passwd and it tells me it's read only. I try to rename passwd.bak and it tells me permission denied....
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does this exist? oneandoneis2 Linux - General 3 01-26-2005 05:46 PM
/bin/sh doesn't exist??? silv3rhat Linux - Newbie 2 12-31-2003 04:03 PM
Does this exist? WorldBuilder General 3 08-20-2003 09:28 PM
/etc/limits doesn't exist hampel Slackware 2 07-15-2003 11:26 AM
/etc/rc.d/rcX.d does not exist !!!!!!!!!!!!! safrout Linux From Scratch 6 11-10-2002 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:19 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