这个问题在 ubuntu8.04上实现挺费劲的。
刚用过opensuse11,很好的系统,安装过程 可以不建立新用户,安装 完毕直接用root登录。
ubuntu 安装时必须新建一个用户,必须有密码,默认禁止root登录。
安装完毕,
1. 修改 /etc/gdm/gdm.conf
AutomaticLoginEnable=true
AutomaticLogin=root
AllowRoot=true
结果: root无法登录,因为没有密码
2. 用 sudo passwd root 命令给root设置一个密码
结果: root可以手动输入用户名密码 登录了,界面为 英文
3. 用 gedit /root/.profile 命令修改文件
修改为
代码: 全选
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
# Installed by Debian Installer:
# no localization for root because zh_CN.UTF-8
# cannot be properly displayed at the Linux console
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
这样就不会因为 中文文件夹 影响 命令行 输入命令时 切换中文英文输入法了
4. 系统 系统管理 用户和组 ,删除 root 密码,提示 密码至少为6位。
使用 passwd root 命令 也无法删除 root密码
结果: 未找到 密码强度 的设置,无法删除root密码,自动登录宣告失败
继续折腾中