Linux中新用户的终端问题
我已经在我的 ubuntu 10.04 中安装了 DB2,同时它创建了 2 个新用户。要运行 db2,我必须切换到 DB2 创建的新用户。
但是这个新用户的终端功能较少,即它不能通过点击选项卡自动完成目录或文件名,不能使用上/下/左/右箭头键。并且不像我的默认用户 ubuntu 中的实际终端那样丰富多彩。
请帮忙。 提前致谢:)
I have installed DB2 in my ubuntu 10.04 and meanwhile it has created 2 new users. and to run the db2 i have to switch to the new user created by the DB2.
But this new user's terminal has less features i.e. it donot automatically complete the directory or filename by hitting tabs, can't use up/down/left/right arrow keys. and not colorful like my actual terminal in my default user of ubuntu.
Please Help.
Thanks in advance:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将用户 shell 更改为
/bin/bash
,而不是/bin/sh
。一段时间以来,Debian 和 Ubuntu 都使用
dash
来提供 /bin/sh,它没有像 bash 这样的所有功能,但提供了对 bourne shell 的更准确的解释,据我所知理解。Change the users shell to
/bin/bash
, instead of/bin/sh
.Since some time now, both Debian and Ubuntu uses
dash
to provide /bin/sh, which doesn't have all the features like bash, but provides a more accurate interpretation of the bourne shell, from what I understand.这个新用户除了执行命令/恶魔之外不应该做任何事情,所以他们不需要终端。他们应该拥有尽可能少的权利——这就是技巧的一部分。如果您想以此用户身份执行命令,请尝试 sudo -u(newuser) 命令
this new users should not do anything except executing the command/demon, so they dont need a terminal. they should have as little rights as possible - thats part of the trick. if you want to execute a command as this user, try
sudo -u(newuser) command