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
adobe-release-i386-1.0-1.noarch.rpm
/etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=ftpsecure
#xferlog_file=/var/log/vsftpd.log
xferlog_std_format=NO
nopriv_user=ftpsecure
chroot_local_user=NO
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=NO
pasv_max_port=1024
local_root=/var/ftp
#anon_root=/var/ftp/incoming
#no_anon_password=YES
log_ftp_protocol=YES
guest_enable=YES
hide_ids=YES
passwd_chroot_enable=YES
chmod_enable=YES
userlist_deny=YES
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)
PASV
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?
Regards,
Conor
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!