LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] vsftpd question

[ILUG] vsftpd question

Conor Wynne mariconor at gmail.com
Wed Nov 17 19:35:50 GMT 2010


On Wed, Nov 17, 2010 at 7:29 PM, Frank Duignan <frank.duignan at gmail.com> wrote:
> Do you have execute rights on directory - needed for ls

I do now:

[root at conor ~]# ll /var/ftp/
total 8
drwx-w--w-. 2 ftp ftp 4096 Nov 17 12:45 incoming
drwx-w--w-. 2 ftp ftp 4096 Nov 16 15:48 pub
[root at conor ~]# chmod +x /var/ftp/incoming/
[root at conor ~]# ll /var/ftp/
total 8
drwx-wx-wx. 2 ftp ftp 4096 Nov 17 12:45 incoming
drwx-w--w-. 2 ftp ftp 4096 Nov 16 15:48 pub
[root at conor ~]# ll /var/ftp/incoming/
total 104
-rw-------. 1 ftpsecure ftp  4368 Nov 16 22:50
adobe-release-i386-1.0-1.noarch.rpm
-rw-------. 1 ftpsecure ftp 91854 Nov 17 19:34 Firefox_wallpaper.png
-rw-------. 1 ftpsecure ftp   579 Nov 17 12:45 untitled.c

Alas, same issue.

>
> On 11/17/10, Conor Wynne <mariconor at gmail.com> wrote:
>> On Wed, Nov 17, 2010 at 6:45 PM, luker_luker <linux.ul.ie at gmail.com> wrote:
>>> Take care of SELIinux,  you could disable it.
>>
>> Why is that then? Surely an additional layer of protection is a good thing?
>> Anyway, I tested by doing "setenforce=0" and the result is the same.
>>
>> So it must be something with permissions or config of vsftpd.
>>
>>>
>>> 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
>>>> 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
>>>> --
>>>> 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/
>>>
>>>
>> --
>> 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/
>>
>
> --
> Sent from my mobile device
>


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell