How to Login to Ubuntu as Root User?


I searched this issue at internet and found the following article:

http://www.sizlopedia.com/2008/04/16/how-to-login-to-ubuntu-as-root-user/

This article gave the following steps to login to Ubuntu as Root User:

  1. Open the terminal and type: sudo passwd root
  2. When you see the prompt that says “Enter new UNIX password”, enter the password you want for the root user and confirm it.
  3. Type: sudo gedit /etc/X11/gdm/gdm.conf
  4. Locate the line that says “AllowRoot=false”. Change it to “AllowRoot=true”.
  5. Save the file
  6. Exit gedit, logout and then reboot.

I tried it and found out there is a little bit difference in my system. The version of my Ubuntu system is V8.10, and the gdm.conf did not locate in /etc/X11/gdm/, it located in /etc/gdm. So change the step 2 to sudo gedit /etc/gdm/gdm.conf, it’s ok.

eaglet

The last day of the year of tiger.

优质内容筛选与推荐>>
1、Python实时语音识别控制
2、NHibernate亲密接触
3、C#调用C++的DLL搜集整理的所有数据类型转换方式
4、早上读英语
5、51nod1837


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号