SSH with no home directory

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have an AIX 5.1 system with Open SSH 4.2.  Several users that have
nonexistent home directories.  If I telnet in, then /.profile is
executed.  If I use ssh then an error about the home directory appears
and /.profile is not executed.  I know sshd is assuming the home
directory is therefore / because it will execute /.ssh/rc

I would like the /.profile to be executed for people with no home
directory just like telnet does.  Any ideas?


Re: SSH with no home directory

Quoted text here. Click to load it

Executing .profile and friends is a function of the shell not of sshd.
I'd be looking at the shell first.

How are you logging in via ssh?  If you're running commands (eg "ssh
yourserver foo") then you won't get a login shell, which may alter which
startup files get read (depending on your shell).

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline