> Date: Sat, 12 Jul 2014 23:04:01 +0200
> From: Alexey Orishko <[email protected]>
> To: [email protected]
> Subject: [blfs-support] Restrict root access
>
> Hi all,
>
> I have a simple BLFS system (no graphics, no PAM) and I'd like to
> disable login as a root via both ssh and on console.
>
> Solution for ssh was described in relevant chapter of the book, but I
> can't find any recommendations to limit access via console.
>
> As I understand, one option is to change shell for root user.
> However some other distros using /etc/securetty.
> Can this file be used in BLFS for preventing access?


Usually /etc/login.{access,defs} (the latter also usually references
/etc/securetty ) from shadow pkg.


But be careful to not lock yourself out in situations where you'd ~need/want
to be root to get in.



hth,
akh


> What package must be included to support it?
> Are there any other ways to prevent access as a root on  console?
>
> Regards,
> Alexey
> -- 
>


--
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to