On Tue, Aug 22, 2006 at 02:36:00PM -0400, Martin, Russell wrote: > > 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. > > Okay. But, I've tested this and retested it and the behavior I've > described is consistent. If sftp-server (the copy inside the jail) > is suid root, then sftp works.
Sure, root can do anything... You are giving your users root
privileges within your jail. NOT GOOD!
> If sftp-server is not suid root and the user logging in owns the
> jail then things work. I have not found any other combination where
> sftp will work. This is a Solaris 8 box I'm testing on. Any ideas as
> to why things are behaving this way for me?
Well, it seems like it's almost certainly some kind of permissions
problem in your jail. For starters, with the sftp_server binary not
SUID (and of course the rssh_chroot_helper IS set SUID), does it still
fail with "chroot() failed, 2: Not owner"?
Without seeing your config, passwd file, and having access to the
directory permissions in your tree, I can't really make any guesses.
If you post your config, I can certainly poke at it... I don't
necessarily need to see your passwd file (which shouldn't have any
passwords in it, of course)... but that would help. And I'd
definitely need the output of this:
cd $ROOT_OF_JAIL; find . -type d -maxdepth 1 -exec ls -ld {} \;
My usual consulting fee is $100/hr, but since you packaged rssh for
Solaris, I'll give you the special price of $125/hr. ;-)
--
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D
pgposajwEZkdd.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
