Title: Re: chroot() failed, 2: Not owner
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.
 
Is there some way to configure the permissions so that the sftp-server inside the jail does not need to be suid root and that will also prevent the user from modifying files outside of their home directory?


From: Derek Martin [mailto:[EMAIL PROTECTED]
Sent: Tue 8/22/2006 8:22 AM
To: Martin, Russell
Cc: [email protected]
Subject: Re: chroot() failed, 2: Not owner

On Mon, Aug 21, 2006 at 06:07:00PM -0400, Martin, Russell wrote:
> That was 1/2 of my problem. I had to SUID root on rssh_chroot_helper
> in the root file system and I had to SUID root on the sftp-server
> file inside of my chroot jail.

The latter should NOT be necessary...  It seems that you have some
kind of permissions problem in your jail, or there is some problem
with the system accessing account information from inside the jail.

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

-------------------------------------------------------------------------
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