sshrc not working when using restricted shells on HP-UX

Tob_Sch at Tob_Sch at
Thu Mar 2 00:05:09 EST 2006

Hi Darren,

thanks for the fast answer.

I already tried this. It only shows verbose output when connecting to a user
with no restricted login shell. For users with rksh / rsh the error message
below is the same and only output.
It seems to me that the way sshd brings the sshrc-file to the ssh-client is
different on HP-UX (or HP-UX works different from SunOS, AIX, Linux).

The script only uses the id, awk, echo, ps -ef, uname, logger -commands.

Best regards, Tobias

> --- Ursprüngliche Nachricht ---
> Von: Darren Tucker <dtucker at>
> An: Tob_Sch at
> Kopie: openssh-unix-dev at
> Betreff: Re: sshrc not working when using restricted shells on HP-UX
> Datum: Wed, 01 Mar 2006 23:44:23 +1100
> Tob_Sch at wrote:
> [about restricted shells]
> > Here's the error message during starting the connection:
> > 
> > sh: /bin/sh: The operation is not allowed in a restricted shell.
> I would interpret that as one of the commands in the sshrc failing,
> rather than parsing of the file itself failing.   What's in sshrc?  Does
> putting "set -x" at the top of sshrc provide any enlightenment?
> -- 
> 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.

Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL!

More information about the openssh-unix-dev mailing list