在/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf中加入:
allow-guest=false #不允许guest登录
greeter-show-manual-login=true 这句重启系统。
修改root的密码
sudo passwd root 即可。
reboot以后,又出现"Error found when loading /root/.profile..."
需要登陆以后修改/root/.profile文件,将msg n 修改为tty -s && mesg n
然后reboot。下面是解释。
Upstreaming from https:/
This used to happen at the start of every Puppet run, because of the line "mesg n" in /root/.profile. The shell provisioner is actually invoked to fix the problem by changing it to "tty -s && mesg n". This fixes the problem for every subsequent run. Still, I'd like to prevent it from appearing even once.
Ubuntu could fix this by adding a check to .profile.
Also see https:/
msg n
With:
tty -s && mesg nIn file /root/.profile.