新建用户的终端问题
Tofloor
poster avatar
188******93
deepin
2016-01-18 03:04
Author
创建一个新用户,同时指定了该用户对应的主目录,再把该目录的所有者修改为新用户和其同名用户组,然后把新用户添加到安装系统时创建的用户所在的组(如:adm、sudo等),切换到新用户后打开终端发现终端有两个问题:
1、“$”符号前面没有“用户名@计算机名:~”这样的描述。
2、按键盘上的方向键分别在终端里显示“^[[A^[[B^[[C^[[D”
有没有人遇到同样的问题,或者知道解决方法?


Reply Favorite View the author
All Replies
avatar
MattD
deepin
2016-01-18 03:11
#1
本帖最后由 MattD 于 2016-1-17 19:12 编辑

重新指定下新用户的login shell,这是因为默认login shell为/bin/sh导致的
Reply View the author
avatar
188******93
deepin
2016-01-18 03:16
#2
https://bbs.deepin.org/post/36253
重新指定下新用户的login shell,这是因为默认login shell为/bin/sh导致的

请问如何指定新用户的login shell,刚才百度了一下,好像是用“chsh”这个命令,但是不确定,所以来确认一下。
Reply View the author
avatar
188******93
deepin
2016-01-18 04:10
#3
https://bbs.deepin.org/post/36253
重新指定下新用户的login shell,这是因为默认login shell为/bin/sh导致的

果然是这样的,我用“chsh”命令重新设置新用户的默认shell为“/bin/bash”就可以了,谢了。
Reply View the author