Alexey Orishko wrote:
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?
What package must be included to support it?
I believe that's a PAM module.
Are there any other ways to prevent access as a root on console?
You could edit /etc/passwd:
root:!!:0:0:root:/root:/bin/bash
but I've never seen that done. If you can't get in as a regular user,
your only option would then be to reboot to an alternate system and fix
/etc/passwd from there.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page