PROFTPD Server Download Permissions on Mounted Samba Share
I was trying to setup a quick ftp server am having some permission issues i cant figure out for the life of me.
i am mounting all my network shares on boot to my ubuntu server with commands like...
mount -t smbfs //192.168.1.3/Applications /mnt/network/applications -o username=user,password=pass,iocharset=utf8,file_mode=0777,dir_mode=0777
then for the ftp i mount this to the downloads folder with
mount -o bind /mnt/network/applications /home/ftp-share/downloads/applications
/home/ftp-share and /home/ftp-share/downloads i chmod'd with 755
and the user ftpuser was created with /home/ftp-share as it home
below is my proftpd.conf
#/etc/proftpd/proftpd.conf
Include /etc/proftpd/modules.conf
UseIPv6 on
ServerName "FTP-Server"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
DefaultRoot ~
Port 21
MaxInstances 30
User proftpd
Group nogroup
AllowOverwrite on
###
as ftpuser i can login to the ftp server fine. i can download anything directly in the home folder (/home/ftpshare) but anything mounted in the downloads folder i can list in the ftp client but not download. I get the following from the ftp client:
150 Opening BINARY mode data connection for test (187702 bytes)
426 Transfer aborted. Operation not permitted"
I have tested and googled around and cant figure out what my issue is. Can anyone help Please!?
|