Login to "tcsh" doesn't change to $HOME directory.
by kaza from LinuxQuestions.org on (#5RZE0)
Hello!
After adding a new user (through NIS server), when running "su new_user"
the current directory doesn't chanes to $HOME.
The shell in use is "tcsh" (for historical reasons: too much to rewrite for "bash"),
after "su new_user" running "echo $HOME" displays the correct $HOME directory,
running "cd" without arguments changes correctly to the $HOME directory.
Other, previously existing users also running "tcsh" have no such problem.
And, for the new user, the same problem exists on two different servers.
There is no ".login" file in our home directories.
I looked at the files /etc/csh.login and /etc/login.defs but didn't see there
anything that hints to the initial directory after login.
Any ideas, what causes "tcsh" to "cd" (or, in this case, not to "cd") to $HOME?
TIA,
After adding a new user (through NIS server), when running "su new_user"
the current directory doesn't chanes to $HOME.
The shell in use is "tcsh" (for historical reasons: too much to rewrite for "bash"),
after "su new_user" running "echo $HOME" displays the correct $HOME directory,
running "cd" without arguments changes correctly to the $HOME directory.
Other, previously existing users also running "tcsh" have no such problem.
And, for the new user, the same problem exists on two different servers.
There is no ".login" file in our home directories.
I looked at the files /etc/csh.login and /etc/login.defs but didn't see there
anything that hints to the initial directory after login.
Any ideas, what causes "tcsh" to "cd" (or, in this case, not to "cd") to $HOME?
TIA,