You are not logged in.

#1 2011-06-20 14:10:32

NictraSavios
Member
From: Cape Breton, Nova Scotia
Registered: 2011-04-13
Posts: 29
Website

AutoLogin with Mingetty only once?

Okay so heres what I want to do.
I want to have mingetty autologin to an account on start up, on all tty's (1-6) , in the autologin accounts .bashrc, it says "some command && logout", So that If I press a key (which stops some command), it then procceds to logout.

I have that working.

Now the issue. When I press the key and logout, It logs me back in. This results in an endless loop.

So, Is there a way to have mingetty only work once, afterwards return to a non autologin mingetty, or even agetty?


I was trying a few things, I cannot seem to get anything to work the way I want it to hmm

Last edited by NictraSavios (2011-06-20 14:31:33)

Offline

#2 2011-06-20 18:57:04

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: AutoLogin with Mingetty only once?

Could you paste here your /etc/inittab?

Offline

#3 2011-06-20 22:44:00

NictraSavios
Member
From: Cape Breton, Nova Scotia
Registered: 2011-04-13
Posts: 29
Website

Re: AutoLogin with Mingetty only once?

Its useless for me to do so, Since Its just the stock arch inittab, I don't know how do it , So I reversed any changes I did

Offline

#4 2011-06-20 23:18:29

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: AutoLogin with Mingetty only once?

I believe the respawn option is causing your problem (not sure though).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2011-06-21 17:53:15

NictraSavios
Member
From: Cape Breton, Nova Scotia
Registered: 2011-04-13
Posts: 29
Website

Re: AutoLogin with Mingetty only once?

I know that. I just dont know how to make what I want to work work, What Im asking, is how would I do this.

Offline

#6 2011-06-21 19:16:49

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: AutoLogin with Mingetty only once?

Well, how about not using the respawn option?

$ man inittab

Last edited by .:B:. (2011-06-21 19:18:00)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2011-07-28 12:20:12

ReX
Member
Registered: 2011-07-28
Posts: 1

Re: AutoLogin with Mingetty only once?

I've found this thread while looking for a solution and I've found one that worked for me.

Editing /etc/inittab like this:

a1:2345:wait:/sbin/mingetty --autologin USERNAME tty1 linux
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

It did exactly what you wanted for me, it'll autologin only at boot and you can logout.

Offline

Board footer

Powered by FluxBB