[XCSSA] Pecular bash login problem

xcssa@xcssa.org xcssa@xcssa.org
Wed, 17 May 2006 00:02:23 -0500


1. What does the "env" command show you upon logging in? 
  (or is the login itself actually failing?  
   if so: are there any clues in /var/log/? 
          can they scp? 
          is rlogin/ftp/telnet available? 
     i.e. does it matter what program is being used for the login?) 
2. After you login can you source the .bashrc file without errors? 
3. What does the "env" command show you after sourcing .bashrc? 

Wierd.  

My .02, 
-Kevin 

On Tue, 2006-05-16 at 17:09 -0500, xcssa-admin@xcssa.org wrote:
> 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
> 
>