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