On Fri, Feb 22, 2008 at 09:45:28AM +0100, Paolo Stefan wrote:
> I noticed that, after making all the job to chroot a user, I kept
> getting "connection closed" messages when trying to connect. I solved
> this by setting setuid bit on the chroot exec used by rssh (NOTE, not
> the chroot executable which resides in /usr/sbin, BUT
> /usr/lib/rssh/rssh_chroot_helper ). Just send the command, as root (on
> the server):
> 
> # chmod a+s /usr/lib/rssh/rssh_chroot_helper

Ah, yeah, that would do it. ;-)  In general, this should be done for
you by "make install" or by your distro's package.  Some distros might
not do it by default, in the name of security, but rssh doesn't
function properly (at least not with chroots) without it.  If you're
installing from source, and make isn't doing this for you, I believe
something is wrong...

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

Attachment: pgpldkg9L6wav.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to