View Single Post
  #1  
Old 30th July 2011, 01:33
snowfly snowfly is offline
Member
 
Join Date: Jul 2006
Posts: 93
Thanks: 0
Thanked 7 Times in 5 Posts
Default Backup symlink folder permissions wrong

I am unable to change into the /backup folder when connecting via FTP to a site.
Running ISPConfig 3.0.3.3

WinSCP gives error: Can't change directory to backup: Permission Denied.

Directory listing and permissions:
Code:
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:
Code:
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)

Code:
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.
Reply With Quote
Sponsored Links