The automatic root login was replaced on the new 16.04 Ubuntu image. I'm not sure exactly what user/group configuration but you will at least need a user with root-level permissions before you can remove the root login. If you don't already have a user account you want to use, you will need to create one and give it sudo permissions:
# useradd <username>
# usermod -aG sudo <username>You can then delete the root password to disable direct login as root:
# passwd -d rootDepending on the security configuration for the console, the automatic login can be configured based on a combination of the settings found at:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s2-wstation-privileges-noroot.htmlCan you take a look at that guide and let me know if/where your configuration/system doesn't seem compatible (i.e. no pam or securetty configuration available) you may need to update.
On Tuesday, September 12, 2017 at 10:18:14 AM UTC-7, Nick Burkitt wrote:
Hi Guys.
This is another one of those subjects that Google can't quite handle. There are too many similar, but still off the mark responses that finding the useful one(s) would require days of reading.
Obviously having the USB console open - not requiring any authentication to gain root access - is great for development, but less so for deployment. I'm sure there's a simple way to require a login on the console connection, but I haven't been able to find it.
Anyone?
Thanks,
-Nick