1 Ubuntu默认的是root用户不能登录图形界面的,只能以guest用户登录图形界面,而guest用户因为权限问题,并不能随意复制删除编辑创建文件等操作。
登录过程中,设置root用户登录
1、打开终端
2、输入sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
3、添加一行:greeter-show-manual-login=true 保存关闭。
如果不需要存在guest账户登录,可继续在下方加入 allow-guest=false
4.如果现在用root用户在图形界面登录有错误。
输入sudu vi /root/.profile。修改成如下图文件并保存
5.重启系统