Bauke Jan Douma wrote:
[EMAIL PROTECTED] wrote on 10-04-07 22:58:
Hi guys

I'm building a LFS based system and there is one thing I want to do and I've looked everywhere except here. I hope someone knows the answer :) I have compiled agetty and login from Util-Linux and PAM support is disabled.

I have an init script that simply starts /bin/bash and gives me a prompt. I then tell it to run agetty which in turns spawns login.
I have an /etc/passwd that looks like this: root::0:0:root:/root:/bin/bash

Yet I get prompted for a password when I type in root.

Can anyone get me logged in the simplest and easiest way or tell me why it's not working?

Thanks so much

Why not leave it at /bin/bash?  Do you mean you start agetty manually
after bash is running?  Why?
In any case, I think in this setup you cannot NOT have a password
(I'd be surprised, but somebody correct me if I'm wrong -- I need to
read the shadow docs; maybe with PAM? -- need to read that too).
In any event, if you want that, plain /bin/bash already does what you
want.

bjd



Hi bjd

Thank you for that reply. The reason I need a login is because ssh won't work if I'm not logged in as an actual user. It complains "You don't exist, go away!"

I'm willing to use PAM if there is a simple way to include it and make it work that way. I don't care what I need to do as long as I can get logged in :) I read this article and other hints and suggestions that people have been able to login without PAM (I never compiled PAM support in and I've read about people logging in with just /etc/passwd)
http://users.rsise.anu.edu.au/~okeefe/p2b/buildMin/buildMin-10.html

Any information that someone can provide will be much appreciated!
-- 
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