SSH ok, SFTP ok , SCP broken... custom shell
Graeme Tattersall
graeme.tattersall at lumison.net
Fri Dec 9 01:33:55 EST 2005
Hi,
Can anyone explain why a shell-wrapper script of the following form breaks scp?
Can this kind of thing be re-worked to fix the breakage?
The wrapper does not produce output, and checks a shell.allow file to see if
access to a real shell such as bash should be granted.
------------
eg :
#!/bin/sh
if [ grep $LOGNAME /etc/shell.allow 2>&1 > /dev/null ]
then
exec -a - /bin/bash $*
else
echo "Access Denied - Please request access"
fi
------------
Cheers
Graeme
--
Graeme Tattersall
GPG 0x97620D9F, 0xFBBDAB91
Lumison
t: 0845 1199 900
d: 0131 514 4053
More information about the openssh-unix-dev
mailing list