Automatic login

julius julius.junghans at gmx.de
Fri Apr 9 04:28:51 PDT 2004


On Thu, 8 Apr 2004 10:29:08 -0500
"Carlos Vrancken" <cvrancken at mailcan.com> wrote:

> Hi. I just tried that but I still have the same problem, it keeps asking for the password. Maybe it's because I'm trying to auto login as root?
> 
> Could it be because the login program included in the Shadow package is different from the one in RedHat?
> 
> Any help?
> 
> Carlos
>   ----- Original Message ----- 
>   From: julius 
>   To: BLFS Support List 
>   Sent: Wednesday, April 07, 2004 5:45 PM
>   Subject: Re: Automatic login
> 
> 
>   On Wed, 07 Apr 2004 15:59:16 -0500
>   Carlos Vrancken <cvrancken at mailcan.com> wrote:
> 
>   > Hello everybody. I'm a LFS newbie, having my very first LFS 5.0 working
>   > just fine. I'd like to somehow have a way to perform an automatic
>   > console login.
>   > 
>   > I used to do it using redhat distros, following this quite easy method:
>   > 
>   > http://www.cs.man.ac.uk/~jtl/RH/index.html#AutoLogin
>   > 
>   > Basically, it all comes down to the following script command:
>   > 
>   >     exec /usr/bin/open -c 1 -w -- /bin/login -f username
>   > 
>   > However, I run into a couple of problems with that line. LFS doesn't
>   > include the "open" command, so I tried to use "openvt" instead. But I
>   > can't get it to work, with every console I try it returns an error
>   > message, saying that that particular virtual console is already in use.
>   > 
>   > So, I got 'open' in my system. That one seems to work. But now,
>   > /bin/login doesn't seem to care about the '-f' option, it keeps asking
>   > for a password.
>   > 
>   > Any ideas/different solution/help would be very much appreciated.
>   > 
>   > Thanks a lot,
>   > 
>   > Carlos
>   > 
>   this one worked for me:
>   http://www.linuxgazette.com/issue72/chung.html
> 


my lfs 5.0 login program works, yours should as well.
did you recognized the -f option from login?



More information about the blfs-support mailing list