Re: SSH with no home directory

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 11/24/05


Date: 24 Nov 2005 12:47:23 GMT

On 2005-11-23, Roy <garlic@garlic.com> wrote:
> 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?

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 zip.com.au)
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.


Relevant Pages

  • Re: Chroot environment for ssh
    ... > would like to use SSH for the connections, as opposed to FTP, but I ... > users to be able to log into an interactive shell and I ... > want them to 'escape' out of their home directories. ... directives to chroot the groupand/or userthat are to have ...
    (FreeBSD-Security)
  • Re: Help needed with server setup at work
    ... Greg Folkert wrote: ... different home directories on a single machine which then serves as ... good SSH practices, there is really no additional server-side setup you ...
    (Debian-User)
  • Re: F11 Samba intermittent & sluggish
    ... I am tunnelling thru ssh: ... comment = Home Directories ... even the machine hosting the share I have intermittent results. ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
    (Fedora)
  • Re: nameserver?
    ... the machine still believed that 10.255.255.254 is the gateway. ... Immediately after executing this, it become possible to connect to my ... account here again via ssh. ...
    (comp.os.linux.misc)
  • Re: Help needed with server setup at work
    ... different home directories on a single machine which then serves as ... good SSH practices, there is really no additional server-side setup you ... Thank you very much for your reply Greg. ...
    (Debian-User)