Ubuntu桌面版允许root登录
第一步:设置好root密码,sudo passwd root
第二步:vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
修改配置文件在最后加上:greeter-show-manual-login=true
第三步:重新启动
第四步:修改/root/.profile,避免 错误提示为:Error found when loading /root/.profile stdin: is not a tty 的提示
在/root/.profile中添加 tty -s && mesg n
ubuntu允许root远程访问
vim /etc/ssh/sshd_config文件,将PermitRootLogin 的值改为yes即可
因为为root账户设置了密码,所以还要更改PermitEmptyPasswords为 no。然后:wq保存文件。
第二步:vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
修改配置文件在最后加上:greeter-show-manual-login=true
第三步:重新启动
第四步:修改/root/.profile,避免 错误提示为:Error found when loading /root/.profile stdin: is not a tty 的提示
在/root/.profile中添加 tty -s && mesg n
ubuntu允许root远程访问
vim /etc/ssh/sshd_config文件,将PermitRootLogin 的值改为yes即可
因为为root账户设置了密码,所以还要更改PermitEmptyPasswords为 no。然后:wq保存文件。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
自定义和管理工作项类型 [witadmin]
银月术
2020-07-08 09:14:45
eventfd阅读笔记
wangwoshida
2020-07-08 04:32:58
main_loop_wait vs aio_poll
wangwoshida
2020-07-08 04:32:58
irqfd内核代码阅读笔记
wangwoshida
2020-07-08 04:32:58
ubuntu linux 回退内核升级内核 内核切换
HehuaTang
2020-07-08 02:35:33
ubuntu 系统日志信息
HehuaTang
2020-07-08 02:35:33
解决virtio-gpu对framebuffer支持及VT切换等问题
Penccc
2020-07-08 01:43:27
【趣话编程】如果张东升是个程序员
阿里技术官方号
2020-07-08 00:43:28
ARM SMMU学习笔记
Hober_yao
2020-07-07 23:55:35
vSAN存储策略概述
ashq
2020-07-07 14:16:06
VCSA-6.7,7.0的安装中断解决
seaship
2020-07-07 06:14:17
虚拟化平台 KVM API的ioctl使用示范(一)
dobell
2020-07-06 23:06:05
docker搭建FastDFS文件系统上传,访问
justweb
2020-07-06 19:46:14
vmware nat配置
cui98
2020-07-05 15:06:04