1. 程式人生 > >『Linux』用SecureCRT遠端登入,自動切到root賬戶的問題

『Linux』用SecureCRT遠端登入,自動切到root賬戶的問題

如從SecureCRT登入,使用者名稱:zhangsan

到linux目錄為:/home/zhangsan

登入成功後,顯示:[zhangsan&....]#

如果需要登入時,同時切到root賬戶

則在【會話選項】中,設定【登入動作】選項,勾上【自動登入】並設定命令與root密碼

有時會碰到輸入:su -

命令後,顯示【口令】中文字元,此時上述設定,在自動登入時,會遇到問題

這時候這麼做:cd /home/zhangsan

cat .bash_profile

會看到:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

修改該檔案,末尾新增一行,設定為,預設英文顯示:
export  LANG=en_US.utf8