ubuntu 15.04默认root用户登陆

1:给root用户设置密码

sudo passwd root

 

2:修改/etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-guest=false
autologin-user=root
autologin-user-timeout=0
autologin-session=lightdm-autologin
greeter-show-manual-login=true
allow-guest=false

 

3:修改sshd_config

PermitRootLogin yes

重启sshd服务 : service sshd restart

 

4:修改/root/.profile

tty -s && mesg n

 

5: 修改chrome

vi /opt/google/chrome/google-chrome

倒数第二行修改为:

exec -a "$0" "$HERE/chrome" "$@ --user-data-dir"

 

posted @ 2015-08-13 12:09  高兴的博客  阅读(508)  评论(0编辑  收藏  举报