Login as root on ubuntu desktop
How do we turn on root desktop login? I set the root password then modified /etc/gdm3/custom.conf
[Security]
AllowRoot=true
This is not giving me the option of the root at login screen, neither it accepts my root credentials. Credentials are correct.
Set a root password (may be the same as user password) with
sudo passwd root
You'll be asked to type the password twice in case of a typo. Unlock the root account with
sudo passwd -u root
Edit sudo nano /etc/gdm3/custom.conf
, and add the following line under
[security]:
AllowRoot=true
Edit sudo nano /etc/pam.d/gdm-password
, and comment out the following line by adding a # in front of it, like this:
#auth required pam_succeed_if.so user != root quiet_success
Reboot.
Select "Not Listed" at the login screen, then type "root" in the username field, and your root password in the password field.
Now you should be logged in as root in your GUI desktop.
Appendix: /etc/gdm3/custom.conf
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=me
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
# Enabling timed login
# TimedLoginEnable = true
# TimedLogin = user1
# TimedLoginDelay = 10
[security]
AllowRoot=true
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true
相关文章
- Ubuntu虚拟显示器_vmware安装ubuntu屏幕太小
- Vue 指令之v-on的使用
- ORA-26880: “SET_EXECUTE” directive is not permitted on rules used by XStream outbound server “string” ORACLE 报错 故障修复 远程处理
- ORA-29918: cannot create domain indexes on temporary tables ORACLE 报错 故障修复 远程处理
- ORA-32334: cannot create prebuilt materialized view on a table already referenced by a MV ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011654; Symbol: ER_GRP_RPL_APPLIER_TERMINATION_TIMED_OUT_ON_SHUTDOWN; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-09889: osnTXtt: access error on oracle executable ORACLE 报错 故障修复 远程处理
- ORA-12024: materialized view log on “string”.”string” does not have primary key columns ORACLE 报错 故障修复 远程处理
- ORA-14511: cannot perform operation on a partitioned object ORACLE 报错 故障修复 远程处理
- ORA-16304: procedure must first be called on primary database ORACLE 报错 故障修复 远程处理
- Optimizing Disk Usage on Linux Servers(linux服务器硬盘使用)
- Ubuntu与Linux之间的区别(ubuntu和linux的区别)
- ubuntu混合时代:Win 10与Ubuntu Linux共存(win10Linux)
- Ubuntu安装MySQL数据库的指南(ubuntu装mysql)
- ubuntu探索Ubuntu:Linux的强大分支(linux的分支)
- 之一ubuntu开启Ubuntu之门:探索Linux分支的新世界(linux的分支)
- 微软发布“Ubuntu on Windows” 项目,Linux 程序可原生运行于 Windows 10 中
- 安装Ubuntu系统,轻松使用Oracle(ubuntu安装oracle)
- ROS on Linux: The Dynamic Duo for Robotics and Automation(roslinux)
- PPLive: Streaming Live TV on Linux Made Easy(pplivelinux)
- Ubuntu与Linux:共同打造更好的世界(ubuntu和linux)
- deleteMySQL中的ON DELETE: 数据安全策略分析(mysql中on)
- 深入理解MySQL中的ON用法(mysql 中on用法)
- MySQL中的ON子句有什么作用(mysql中on代表什么)
- MySQL on macOS的安装之旅唤醒brew的力量(brew安装的mysql)
- Ubuntu 上搭建 Redis 存储系统(ubuntu中redis)
- Oracle中ON关键字的精彩运用(oracle中on的使用)
- jQuery新的事件绑定机制on()示例应用