码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 14 root 账户 启用与ssh登录

时间:2015-05-04 11:48:52      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:

ubuntu 14.04 root用户登录

开启root帐号的方法:

为了启用root 帐号(也就是设置一个口令)使用:

sudo passwd root

当你使用完毕后屏蔽root帐号使用:

sudo passwd -l root

这个将锁住root帐号。

如何在终端模式下切换到root身份?

sudo -s -H

Password: <在此输入密码>

编辑:

vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

加入这行,并重启就行了。

greeter-show-manual-login=true

ssh登录

后发现ssh的配置(/etc/ssh/sshd_config)不大一样,14.04的默认配置是:

 

  1. PermitRootLogin without-password  

要改成

 

 

  1. PermitRootLogin yes  

重启服务即可:

 

 

    1. restart ssh  

ubuntu 14 root 账户 启用与ssh登录

标签:

原文地址:http://www.cnblogs.com/yudar/p/4475690.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!