/usr/bin/id: cannot find name for user ID XXXX 出现原因解决方案 在平时使用Linux时,如果对配置文件进行权限设置可能导致图片所示情况,然后原本应显示用户名的位置被“I have no name!”代替 出现原因 原因是/etc/passwd权限不能读, 同理,/etc/group也可能存在这个问题 解决方案 添加读权限 chmod +r /etc/passwd chmod +r /etc/group