Page 1 of 1

linux-ftpd-0.17 cannot run static ls in a chroot jail

PostPosted: Fri Sep 05, 2003 4:22 am
by scorpio
Hi, sorry if this looks like a newbie question, but I looked through these forums and couldn't find any existing answer, so here it goes:

I have installed grsec-1.9.11 on a 2.4.21 kernel (selecting the medium security level), and want to run linux-ftpd-0.17. The ftpd works fine, but if I log in as anonymous, the static /bin/ls in the chroot jail is sent a signal 11 every time it gets run by ftpd. I can upload to and download from the chroot jail, but can't list the directories. The ownership and permissions all look fine to me.

If I do a "chroot /home/ftp /bin/ls" outside of ftpd, it works fine. Could any one suggest what might be the problem?

PostPosted: Fri Sep 05, 2003 4:37 pm
by spender
Were there any grsec logs?

-Brad

PostPosted: Sat Sep 06, 2003 4:29 am
by scorpio
Thanks Brad for your response. The only grsec messages that I found in the system logs are the following kind:

Sep 5 03:46:00 [kernel] grsec: From 10.0.1.11: signal 11 sent to (ls:1198) UID(21) EUID(21), parent (ftpd:25896) UID(0) EUID(21)
Sep 5 03:49:40 [kernel] grsec: From 10.0.1.11: signal 11 sent to (ls:20873) UID(21) EUID(21), parent (ftpd:25896) UID(0) EUID(21)

I was unable to learn much from these messages. :cry: