现象
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Wed Feb 26 16:31:31 CST 2014
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Wed Feb 26 16:29:08 2014 from 10.0.17.139
$
$
$
$
分析和解决方案
一般的情况都认为是环境变量PS1的问题,可以手动设置下PS1环境变量。如:
export PS1=[`hostname`/`whoami`]$
如果情况未改变,请检查/etc/passwd的权限。/etc/passwd的权限应该为644。