Re: SSH with no home directory
From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 11/24/05
- Next message: Wolfgang Meiners: "Re: ssh won't connect"
- Previous message: Darren Tucker: "Re: OpenSSH environment passing"
- In reply to: Roy: "SSH with no home directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: Wolfgang Meiners: "Re: ssh won't connect"
- Previous message: Darren Tucker: "Re: OpenSSH environment passing"
- In reply to: Roy: "SSH with no home directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|