[XCSSA] Pecular bash login problem
xcssa@xcssa.org
xcssa@xcssa.org
Tue, 16 May 2006 17:09:01 -0500
I think I have stumbled on the strangest login error. Out of 100s of
users, I have one user that has this problem. When they try to SSH
into the main computer they get this error:
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: dircolors: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: [: too many arguments
At first I thought it was a bad .bashrc or .bash_profile file so I
moved everything .bash, .csh, .profile to a temp directory and tried
to ssh in, same problem. I have now tracked it down to the first 3
lines come from /etc/bashrc, the rest come from profile.d files in
/etc/profile.d. I would suspect that if those were corrupt or wrong,
all of my users would experience this problem.
One other thing, their home directory is NFS mounted from their
workstation. I have another user with the exact setup (NFS'ed home)
that I setup this morning thinking he would have the same problem too
(maybe something with NFS), but nope, his ssh sessions work just fine.
Any ideas guys/gals?
System - CentOS 4.2
--
Jeremy