<div dir="ltr"><div><div><div>Thanks for your reply.<br><br></div>Yes, this only restricts root-logins. Normal user can login.<br></div>Your two suggestions work for me.<br><br></div>thanks<br><div><div><div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-05-27 19:44 GMT+08:00 David Herrmann <span dir="ltr"><<a href="mailto:dh.herrmann@gmail.com" target="_blank">dh.herrmann@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<div><div><br>
On Tue, May 27, 2014 at 12:03 PM, zhang xiong <<a href="mailto:panda0626@gmail.com" target="_blank">panda0626@gmail.com</a>> wrote:<br>
> Recently I face an issue on kmscon:<br>
><br>
> When I run kmscon, a login terminal pop up immediately. But my user account<br>
> and password can't log in.<br>
><br>
> Then I found login always runa on /dev/pts/X, but /dev/pts/x isn't in<br>
> /etc/securetty, so I can't login.<br>
><br>
> How can I let /bin/login run on /dev/ttyX ?<br>
<br>
</div></div>First of all, this only restricts root-logins. You should be able to<br>
use your normal user as login, right?<br>
<br>
To allow root-logins, either add "/dev/pts/0" up to "/dev/pts/20" to<br>
/etc/securetty (which is a hack!) or, more appropriately, remove this<br>
line:<br>
auth required pam_securetty.so<br>
from /etc/pam.d/login.<br>
<br>
Note that /etc/securetty and pam_securetty is crap (in my opinion).<br>
It's a totally useless way to prevent root-logins. You should protect<br>
root-logins with a proper authentication-scheme, instead of relying on<br>
filters like /etc/securetty (which, btw, don't protect against "sudo"<br>
and "su"..).<br>
<br>
Thanks<br>
David<br>
_______________________________________________<br>
kmscon-devel mailing list<br>
<a href="mailto:kmscon-devel@lists.freedesktop.org" target="_blank">kmscon-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/kmscon-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/kmscon-devel</a><br>
</blockquote></div><br></div></div></div></div></div></div></div>