Can anyone help here? Ive played wih fcntl's FD_CLOEXEC and what not.. it was set to 0, and yeah...
If someone can help solve this mystery then there is one less file required in the chroot environment. A cleaner scponly shell :) On Wednesday 21 June 2006 09:41, Joshua Sandbrook wrote: > Gidday > > Im writing a shell at the moment that chroots into a users home dir and > then runs only the sftp-server program ( which is in the uses home dir ). > > Anyway, it wont work unless /dev/null is present in the chroot... > > I am using execve to run sftp-server, and I am wondering if it has > something to do with stdout / stdin / stderr fd's being closed on execve? > > Can anyone help me here? > > Thanks, > Josh