Can't mv files between directories on vsftpd
- by frankyue
I enabled this in vsftpd.conf
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
user_config_dir=/etc/vsftpd_user_conf
and here is the user set in vsftpd_user_conf dirctory
ftpupload :
local_root=/mnt/upload
But /mnt/upload is mounted from another directory
/mnt/upload on /opt/upload type none (rw,bind)
Here is the list in /mn/upload
rough_images/
shoes-pentland/
vendor-upload/
shooting/
Additional, the shooting/ directory is mounted from another place
/mnt/upload/shooting on /mnt/shooting none (rw,bind)
Now here is the problem.
When I use the ftp client to move the files between the directories but failed .Files can moved between any directories except the shooting one.
The permission is right . I can move any files between this directories successful by using su ftpupload.
It means the vsftpd didn't support the mount bind?
Here is the vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=000
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=app
xferlog_std_format=NO
log_ftp_protocol=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
user_config_dir=/etc/vsftpd_user_conf
ls_recurse_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
pasv_enable=YES
pasv_max_port=***
pasv_min_port=***
port_enable=YES
pasv_address=***
virtual_use_local_privs=YES
tcp_wrappers=YES
and here is the mtab:
/mnt/upload /opt/upload none rw,bind 0 0
/mnt/upload/shooting /mnt/shooting none rw,bind 0 0
all of the permissions under the /mnt/upload are the same:
drwxrwxrwx * ftpupload app