切换到root用户后,基本的命令无法使用
Tofloor
poster avatar
kannan22
deepin
2016-12-21 23:56
Author
本帖最后由 kannan22 于 2016-12-21 21:30 编辑

切换到root用户后,基本的命令无法使用

root@GZX-PC:/usr/share/applications# sudo
bash: sudo: 未找到命令
root@GZX-PC:/usr/share/applications# ls
bash: ls: 未找到命令

su也无发切回到普通账户了?


Reply Favorite View the author
All Replies
avatar
moli3
deepin
2016-12-22 00:15
#1


赶紧找本鸟哥看下。
Reply View the author
avatar
Feng Yu
deepin
2016-12-22 00:18
#2
用ctrl-d退出登录就行了
Reply View the author
avatar
kannan22
deepin
2016-12-22 00:23
#3
https://bbs.deepin.org/post/133260
用ctrl-d退出登录就行了

不错,谢谢
建议不能也配置下环境变量嘛,root用不了感觉怪怪的
Reply View the author
avatar
kannan22
deepin
2016-12-22 00:24
#4
https://bbs.deepin.org/post/133260
赶紧找本鸟哥看下。

照理root用户应该都可以吧
Reply View the author
avatar
Feng Yu
deepin
2016-12-22 00:30
#5
https://bbs.deepin.org/post/133260
照理root用户应该都可以吧

不知道你怎么切换的root,还是把环境变量改坏了,检查下你的PATH
Reply View the author
avatar
ouyangjun
deepin
2016-12-22 00:40
#6
检查环境变量  一看就变量丢了
Reply View the author
avatar
sudo_free
deepin
2016-12-22 01:25
#7
是个问题就叫bug真是无语了
Reply View the author
avatar
aurthur
deepin
2016-12-22 02:41
#8
多学点linux知识,别什么都是bug。这也是bug,linux还能活这么久吗?弱智...........
Reply View the author
avatar
wangqizai1918
deepin
2016-12-22 07:30
#9
linux不是一个大众系统,但deepin有一颗做大众系统的心
Reply View the author
avatar
kannan22
deepin
2016-12-22 16:45
#10
https://bbs.deepin.org/post/133260
linux不是一个大众系统,但deepin有一颗做大众系统的心

还是需要专业人士使用
跟环境变量有关,我设置再/etc/enviroment中,在root用户下有问题,
但是设置到/etc/profile后,在root用户下就可以了,
不知道怎么个加载顺序
Reply View the author
Comments
wangqizai1918
2016-12-22 19:16
environment要比profile定义的环境变量更底层一点,一般用户级的就bashrc或者profile
avatar
kannan22
deepin
2016-12-23 06:22
#11
本帖最后由 kannan22 于 2016-12-22 22:24 编辑
https://bbs.deepin.org/post/133260
还是需要专业人士使用
跟环境变量有关,我设置再/etc/enviroment中,在root用户下有问题,
但是设置到/et ...

谢谢,努力学习@wangqizai1918
系统还是很好的,很中意它的UI,学习适应
Reply View the author