On Sun, July 13, 2014 9:04 am, 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? > 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 > >
Hello, The way that ubuntu does it is by removing the password for root: sudo passwd -l root If you are going to try this, make absolutely sure that you do have sudo setup correctly on a user account, otherwise you will need to re-enter your system via chroot if you need to fix anything. I have not tried doing this on a BLFS system, and I am sorry but I also have no intention of testing if it works either. Regards, Christopher. -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
