[OpenAFS] Re: Bash fails to execute on login

Andrew Deason adeason@sinenomine.net
Thu, 9 Dec 2010 09:54:58 -0600


On Thu, 09 Dec 2010 11:45:12 +0100
Jaap Winius <jwinius@umrk.nl> wrote:

> For instance, my color prompt is shown as a long list of escape  
> characters and the bash history doesn't work. The problem is solved  
> simply by executing "bash". The question is why this doesn't happen  
> automatically when I log in. The UNIX accounts don't have this problem.
> 
> In some cases, I don't end up in my home directory either when I log  
> in, although I can navigate to it and still have R/W access there. In  
> these cases $HOME contains e.g. "/jwinius" instead of  
> "/afs/umrk.nl/user/j/jw/jwinius".

Well, as you said, the shell problem was because you were running dash.
This suggests the NSS data is just wrong (your login shell is configured
to /bin/sh instead of e.g. /bin/bash), which doesn't really have much to
do with AFS. What does 'getent passwd <username>' say? Are you getting
your passwd information from LDAP or somewhere else?

-- 
Andrew Deason
adeason@sinenomine.net