root 登陆 问题 2014.3
Tofloor
poster avatar
laoguang
deepin
2015-07-03 04:52
Author
再更改lightdm的设置后,登录root, 结果速度十分慢,驻留不能显示,热区控制不管用,网页浏览器不能使用。本人对登陆root的风险十分清楚,希望诸位仁兄可以告知我解决这个状况的方法。如果深度团队可以在2015的版本中解决这个状况的话,本人感激不尽。
Reply Favorite View the author
All Replies
BingoLove
deepin
2015-07-03 07:07
#1
貌似是故意不支持root登陆的
Reply View the author
cxbii
deepin
2015-07-03 17:22
#2
https://bbs.deepin.org/post/31236
貌似是故意不支持root登陆的

应该不是这个限制。

应该是root的环境变量导致的,最明显的例子是chrome在root是不可以正常启动的。

楼主,这个问题我们是不会解决的,因为我们不原生(因此不建议)提供root登录,而且这个操作非常危险,如果你有需要root权限运行的程序,终端使用sudo提权就可以啦。
Reply View the author
lcw0268
deepin
2015-07-03 18:14
#3
如果楼主非要root登陆桌面,用浏览器可以用debian的iceweasel浏览器,支持root启动。
我很惊奇,楼主怎么能用root登陆桌面的,说说过程听听?
Reply View the author
laoguang
deepin
2015-07-03 22:40
#4
http://wiki.deepin.org/?title=Lightdm, root 登陆
Reply View the author
laoguang
deepin
2015-07-03 22:44
#5
请问如何更改root的环境变量?
Reply View the author
laoguang
deepin
2015-07-04 01:37
#6
我已把root的.profile里的内容换成了/etc/profile的内容,结果速度快了,但驻留还是不现实,控制中心还是打不开。
/etc/profile:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi


/root.profile:
# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

mesg n
Reply View the author