Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1171|回复: 0
打印 上一主题 下一主题

deepin常用命令

[复制链接]

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
跳转到指定楼层
楼主
发表于 2017-7-13 09:58:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Deepin(Ubuntu)使用root账户登录
http://blog.csdn.net/u013366098/article/details/50542418

激活root账户
sudo passwd root
切换到root账户
 在终端执行  su root
输入密码
3. 在配置文件lightdm.conf末尾添加两行代码

vim /etc/lightdm/lightdm.conf

添加下面的代码

greeter-hide-user=true   
greeter-show-manual-login=true
重启系统。

用Xshell root连接时显示ssh服务器拒绝了密码,应该是应该是sshd的设置不允许root用户用密码远程登录
修改

vim /etc/ssh/sshd_config
找到

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes

改成

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

然后输入命令

/etc/init.d/ssh restart

重启ssh服务即可。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-5-16 17:11 , Processed in 0.105752 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表