> [EMAIL PROTECTED] wrote: >> 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? >> > > Do "man getty" for a clue or two. Agetty's function in life is to wait > for a terminal to be active and start /bin/login. With the "-l" > parameter, you can change the program it calls. > > However, it sounds to me like you want to use "openvt", since you have > no password. Forget agetty and just openvt. See the man page for details. >
In this case you should try to change inittab this way. 1:2345:respawn:/sbin/agetty -n -l /bin/bash tty1 9600 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
