I am using a RHEL6 host that is set up using LDAP for authenication. Upon first login it is supposed to create the home directory for the user (e.g. /home/gisle where gisle is my login username). I have not configured this host myself.
I goofed up. I am supposed to connect from another host (staff.example.com) in the cluster using the following command:
ssh [email protected] I've done this on dozen of identically configured hosts, and it works.
However, this time I typed:
ssh remote.example.com I was not prompted for a username, but username gisle was obviously assumed. When I typed in the password (using the same password as I use to authenticate on staff.example.com), I was authenticated with LDAP and logged in, but no home directory was created on this inital login (instead my account was set up with my home directory set to the home directory path picked up from the machine I was coming from - i.e. /home/staff/g/gisle).
Logging out and logging in again (with ssh [email protected]) does not fix the problem. The notion about the "wrong" home directory persists.
I have the same username (gisle) on both systemes. My home directory on staff.example.com is /home/staff/g/gisle. This directory does not exist on remote.example.com - nor is it supposed to exist.
Here is the result of logging in on the remote now:
$ ssh [email protected] Last login Sun Jan 19 16:22:40 2014 from staff.example.com Could not chdir to home directory /home/staff/g/gisle $ whoami gisle $ echo $HOME /home/staff/g/gisle $ pwd / I need to "reset" the status of my account so that the RHEL6 host forget all about me logging in, believe I am logging in for the first time, and automatically create the home directory. I have root access on remote.example.com, but do not know what to do.
ssh [email protected]and runwhoami,echo $HOMEandpwdii) do you have the same username on both systems? If you do your$HOMEwill have the same path on both systems. iii) do you have root access to the remote system?