Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
Re: [suse-security] chroot: ssh works, scp doesn't (more info)
From: Lars Ellenberg (l.g.eweb.de)
Date: Fri Jan 23 2004 - 09:58:51 CST
/ 2004-01-23 12:44:59 -0000
\ Tom Knight:
> I've been playing with this a lot now.
> Looking at the two files /etc/passwd and /bin/compart.jail:
> If I change the /etc/passwd shell for the user to /bin/bash, scp is fine.
> When I cange it back to /bin/compart.jail, it's not fine, as before.
> If I change /bin/compart.jail to read:
> scp is _still_ not functioning in the same way as before
> Looking at debug logging of sshd, I can see that the sudo line in the
> /bin/compart.jail is called, so I know the system does manage to read
> that file. In case you really want to know, here are its permissions:
> 4 -rwxr-xr-x 1 root root 390 2004-01-23 12:09 /bin/compart.jail
> So it looks like scp doesn't like the login shell being /bin/compart.jail
> There must be a way.....
echo "/bin/compart.jail" >> /etc/shells
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-helpsuse.com
Security-related bug reports go to securitysuse.de, not here