天下之事,必先处之难,而后易之。

Ubuntu 20.04 允许 GUI root 登录

website: https://linuxconfig.org/how-to-allow-gui-root-login-on-ubuntu-20-04-focal-fossa-linux

In this article you will find out how to allow the root user to login to GUI gnome Desktop on Ubuntu 20.04 Focal Fossa.

In this tutorial you will learn:

  • How to set root password
  • How to configure GDM to allow root gui login
  • How to configure PAM to allow root gui login

Allow GUI root login on Ubuntu 20.04 Focal Fossa Linux Desktop

Allow GUI root login on Ubuntu 20.04 Focal Fossa Linux Desktop

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
CategoryRequirements, Conventions or Software Version Used
SystemInstalled Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
SoftwareN/A
OtherPrivileged access to your Linux system as root or via the sudo command.
Conventions# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Allow GUI root login on Ubuntu 20.04 step by step instructions



  1. First step is to set root password:

    $ sudo passwd
    

    The above command will set a root password which will be later user to login to GUI.

  2. Next, step is to edit the /etc/gdm3/custom.conf GDM configuration file to allow root login.

    ALTTEXT

    use your favourite text editor and as a root user edit the /etc/gdm3/custom.conf file to add the AllowRoot=true line.

  3. Next, edit PAM authentication daemon configuration file /etc/pam.d/gdm-password and comment line which denies root access to graphical user interface.

    To do so edit file /etc/pam.d/gdm-password and put # in front of the line containing:

    auth   required        pam_succeed_if.so user != root quiet_success
    

    Comment line which denies root's access to graphical user interface

    Comment line which denies root’s access to graphical user interface

  4. All done. Reboot your Ubuntu system.

    enter root's credentials

    Upon a new login select Not listed? and enter root’s credentials.

Related Linux Tutorials:

Categories Ubuntu Tags administration, beginner, desktop, ubuntu, ubuntu 20.04

Post navigation

Default root password on Ubuntu 20.04 Focal Fossa Linux

How to analyze and interpret Apache Webserver Log

posted @ 2024-10-12 15:54  boonya  阅读(55)  评论(0)    收藏  举报  来源
我有佳人隔窗而居,今有伊人明月之畔。
轻歌柔情冰壶之浣,涓涓清流梦入云端。
美人如娇温雅悠婉,目遇赏阅适而自欣。
百草层叠疏而有致,此情此思怀彼佳人。
念所思之唯心叩之,踽踽彳亍寤寐思之。
行云如风逝而复归,佳人一去莫知可回?
深闺冷瘦独自徘徊,处处明灯影还如只。
推窗见月疑是归人,阑珊灯火托手思忖。
庐居闲客而好品茗,斟茶徐徐漫漫生烟。

我有佳人在水之畔,瓮载渔舟浣纱归还。
明月相照月色还低,浅近芦苇深深如钿。
庐山秋月如美人衣,画堂春阁香气靡靡。
秋意幽笃残粉摇曳,轻轻如诉画中蝴蝶。
泾水潺潺取尔浇园,暮色黄昏如沐佳人。
青丝撩弄长裙翩翩,彩蝶飞舞执子手腕。
香带丝缕缓缓在肩,柔美体肤寸寸爱怜。
如水之殇美玉成欢,我有佳人清新如兰。
伊人在水我在一边,远远相望不可亵玩。