Take care of SELIinux, you could disable it.
On Wed, Nov 17, 2010 at 12:46 PM, Conor Wynne <mariconor at gmail.com> wrote:
> Hi all,
>> I've setup an ftp server, mostly for internal use but I'll likely
> expose it to the interwebs as I have a few files I'd like to ftp home
> from the lab.
> It is currently working, but i cannot "ls"the directory contents, but
> for the life of me I cannot see why.
>> Any ideas?
>> For info, selinux is enabled and chcon'd with booleans enabled - yes I
> tested with "setenforce=0" to rule out selinux.
> iptables ports 20 & 21 are open too.
>> ls -l /var/ftp :
> drwx-w--w-. 2 ftp ftp 4096 Nov 16 22:50 incoming
>> Uploaded a file with gftp :
>> ls -l /var/ftp/incoming :
> -rw-------. 1 ftpsecure ftp 4368 Nov 16 22:50
>> gftp always reports :
>> 227 Entering Passive Mode (192,168,0,183,231,47).
> STOR /incoming/untitled.c
>> 150 Ok to send data.
> 226 Transfer complete.
> Successfully transferred /home/conor/untitled.c at 29.36 KB/s
> SITE CHMOD 664 /incoming/untitled.c
>> 550 Permission denied.
> Loading directory listing /incoming from server (LC_TIME=en_IE.utf8)
>> 227 Entering Passive Mode (192,168,0,183,158,126).
> LIST -aL
>> 150 Here comes the directory listing.
> 226 Transfer done (but failed to open directory).
>> Anyone spot what's wrong with this?
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!