[Ubuntu]如何启用root帐户

1. 备份gdm.conf

    sudo cp  /etc/gdm/gdm.conf /etc/gdm/gdm.conf.bak

2. 修改gdm配置文件,允许root登录

    sudo vim /etc/gdm/gdm.conf

    #找到AllowRoot并修改
    AllowRoot=true

3. 为root设置密码,因为要有密码才能登录

    sudo passwd root

posted @ 2008-11-19 13:45  fulin  阅读(514)  评论(0)    收藏  举报