Article 5RZE0 Login to "tcsh" doesn't change to $HOME directory.

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,latest?d=yIl2AUoC8zA latest?i=s7CR_UYqfZ0:lvOcKe4gLoY:F7zBnMy latest?i=s7CR_UYqfZ0:lvOcKe4gLoY:V_sGLiP latest?d=qj6IDK7rITs latest?i=s7CR_UYqfZ0:lvOcKe4gLoY:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments