『Linux』用SecureCRT远程登录,自动切到root账户的问题

来源:互联网 发布:深度linux系统写python 编辑:程序博客网 时间:2024/05/24 04:15

如从SecureCRT登录,用户名:zhangsan

到linux目录为:/home/zhangsan

登录成功后,显示:[zhangsan&....]#


如果需要登录时,同时切到root账户

则在【会话选项】中,设置【登录动作】选项,勾上【自动登录】并设置命令与root密码


有时会碰到输入:su -

命令后,显示【口令】中文字符,此时上述设置,在自动登录时,会遇到问题


这时候这么做:cd /home/zhangsan

cat .bash_profile

会看到:

# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then        . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATH

修改该文件,末尾添加一行,设置为,默认英文显示:

export  LANG=en_US.utf8


1 0
原创粉丝点击