On Tue, Aug 22, 2006 at 10:50:58AM -0400, Martin, Russell wrote:
> I've been experimenting with my jail a bit more this morning and
> I've discovered that if the user logging in is the owner of the
> directory containing the jail (and all of its contents), then the
> sftp-server inside the jail does not have to be suid root. However,
> if the user owns the jail directory then they can modify any of the
> files inside the jail and thereby they can also break the jail by
> deleting files outside of their home directory.

The user does not need to own the jail, and they don't need write
access to the root of the jail.  The permissions on the jail just need
to be sufficient for them to read the directory, i.e. r-x.

Obviously they will need to have write access to their own corners of
the jail where they should be able to write stuff.  By and large, the
way to do this is to make the user's home directory inside the jail.

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

Attachment: pgp69zWnHQCOS.pgp
Description: PGP signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to