LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   You don't exist. Go away! (https://www.linuxquestions.org/questions/linux-general-1/you-dont-exist-go-away-37071/)

cruella 12-02-2002 11:43 AM

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?

Thymox 12-02-2002 11:59 AM

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.

cruella 12-02-2002 12:23 PM

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...

Thymox 12-02-2002 12:32 PM

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).

Ciccio 12-02-2002 01:05 PM

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.

sharper 12-02-2002 08:37 PM

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.

fragglehorn 12-02-2002 09:09 PM

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.

themuppeteer 12-03-2002 03:36 AM

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.

cruella 12-03-2002 08:09 AM

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?

themuppeteer 12-03-2002 08:17 AM

So you can login as yourself ?
What does it say when you type su ?

cruella 12-03-2002 08:29 AM

It says "su: user root does not exist"

themuppeteer 12-03-2002 08:35 AM

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 ?)

cruella 12-03-2002 08:47 AM

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.

themuppeteer 12-03-2002 09:04 AM

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.

cruella 12-03-2002 09:33 AM

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....


All times are GMT -5. The time now is 09:41 PM.