Bauke Jan Douma wrote:
Bauke Jan Douma wrote on 11-04-07 00:15:

I would assume when using init=/bin/sh you're running as uid 0 (i.e. root).
But I suppose there's no utmp entry written, and maybe that's why ssh
complains.  Interesting...

No, that's not it. Next guess: when init=/bin/bash, uid is 0,
but $HOME is not /root, but / and therefore ssh cannot find
its files (which would normally be in /root/.ssh).

bjd


Hi bjd and everyone else who has been so quick to respond!
I really appreciate everyone's feedback.

I just tried moving .ssh to / and also creating /root/.ssh and I get the same result
The reason is because when I start bash my UID is not a name just "0".

If I run a "whoami" it says "cannot find username for UID 0"

I tried that openvt route, it doesn't seem to have any change and does not get me logged in as a user.

My next step is to try modifying the inittab. I'm still not sure why I can't get logged in from the bash prompt again but maybe I was missing something.

I'll try the other things people have mentioned and report back.

Many thanks again.

I am very grateful!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to