zoukankan      html  css  js  c++  java
  • 图形界面 Fedora Core 12/Core 11 How to log in GUI as r

    图形界面 Fedora Core 12/Core 11 How to log in GUI as root 怎样才能以 root 登录 log in

    http://forums.fedoraforum.org/showthread.php?t=227169

    root login

    Fedora 11 by default doesn't allow someone to login as root through GDM. Instead you have to login as a normal user and become root through your terminal. However many users still want to login as root. Although I don't approve this here is how to do it. Don't forget that once you login as root its easier to damage your system so don't do the following unless you are sure what you are doing.

    Open a terminal and type:
    su -c 'gedit /etc/pam.d/gdm'

    Here find the following line

    auth required pam_succeed_if.so user != root quiet

    and comment it like this

    #auth required pam_succeed_if.so user != root quiet

    Save the file and logout.

    Do the same for /etc/pam.d/gdm-password

    su -c 'gedit /etc/pam.d/gdm-password'

    Now you can login as root. However you will notice that some stuff like Services won't run. To solve this type:

    su -c 'gedit /etc/PolicyKit/PolicyKit.conf'

    And paste the following line between the



    The problem that remains is that system-config-services is slow to respond, but it works. Don't forget, it's not a good idea to login as root.

    I hope this guide was useful for all Fedora users, old and new ones! If you think there is something that should be added on this guide just leave me a comment below!


    ++++++++++++++++++++++++++++++++++++++++++++++

    You can login as root in F11 gdm (and F10)
     
    At the gdm login screen use CTRL+ALT+F2 to go to a virtual console, login as normal root and then create root2 as follows:
     
    Code:
     
    adduser -o -u 0 -g 0 -d /root root2
    passwd root2
     
    Now CTRL+ALT+F1 (or may be F7) to return to gdm and login as root2, gdm will think you are root (and will display root user in top right menu bar in gnome)

     
    ++++++++++++++++++++++++++++++
     
    /etc/pam.d/gdm
     
    Try making the same change in /etc/pam.d/gdm-password .
     
    ++++++++++++++++++++++++++++

     
    Problem is scottro the instructions weren't complete for F11, you need to make an additional edit in /etc/pam.d/gdm-password (as mentioned above). I corrected the FAQ https://fedoraproject.org/wiki/Enabl...isplay_Manager.
     
    Now, to really make your system insecure and likely to break, add this line to to /etc/PolicyKit/PolicyKit.conf (between the tags)
     
    Code:
     

     
    You'll now find that system-config-services and other stuff works, but is very slow to respond.
    You'll also probably find your fedora system is broken and requires a reinstall after a few weeks, but it's your risk.
     
    +++++++++++++++++++++++++++++++++
     


    <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
    阅读(557) | 评论(0) | 转发(0) |
    0

    上一篇:inittab

    下一篇:nis_client.txt

    给主人留下些什么吧!~~
    评论热议
  • 相关阅读:
    使用树莓派3获取CPU温度
    使用树莓派控制继电器
    Darknet图像训练的步骤
    Faster-Rcnn图像识别训练的步骤
    Centos7中ELK集群安装流程
    近年来较流行的搜索引擎框架
    机器学习中,使用NMS对框取优
    当前Azure中国可使用的虚拟机的Size列表
    汉语词性对照表[北大标准/中科院标准]
    Linux中禁用THP(Transparent Huge Pages)
  • 原文地址:https://www.cnblogs.com/ztguang/p/12647946.html
Copyright © 2011-2022 走看看