I am unable to change into the /backup folder when connecting via FTP to a site.
Running ISPConfig 126.96.36.199
WinSCP gives error: Can't change directory to backup: Permission Denied.
Directory listing and permissions:
lrwxrwxrwx 1 root root 17 Jul 24 00:31 backup -> /var/backup/web26
drwxr-x--x 2 web26 client1000 4096 May 31 15:10 cgi-bin
-rwxr-xr-x 1 root root 40 Jul 22 11:34 .htpasswd_stats
lrwxrwxrwx 1 web26 client1000 42 May 31 15:10 log -> /var/log/ispconfig/httpd/xxxxx
drwxrwxrwx 2 web26 client1000 4096 Jul 30 00:31 tmp
drwx--x--- 13 web26 client1000 4096 Jul 27 12:43 web
As you can see the backup symlink is owned by root.
Tried the following command, but no difference, still permission denied:
chown -h web26.client1000 backup
Pure-ftpd is running with VIRTUALCHROOT=true
I can access the 'log' directory fine via FTP (with WinSCP)
It appears the /var/backup folder is set to chmod 750
Changing this to 755 allows backups to be read: (even with root.root owner of backup folder symlink)
chmod 755 /var/backup
So to get backups working via FTP on all our ISPconfig servers, I have to issue this chmod 755 command on the /var/backup folder.