read logs via ftp

Discussion in 'Installation/Configuration' started by giftsnake, Oct 12, 2010.

  1. giftsnake

    giftsnake New Member

    are the logs in each customers 'home' not meant to be readable by the client via ftp?
    i was wandering, since the symlink is owned by the user...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The apache error and access log should normally be accessible from FTP if I remember correctly.
     
  3. yoplait

    yoplait Member

    I confirm. in the "log" folder.
     
  4. giftsnake

    giftsnake New Member

    the "log" folder is a symlink outside the chrooted space for the ftp-user.

    i cant access through ftp. any ideas?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The log folder is not a symlink, it is a normal folder. The access log is a symlink, the error.log is a file. So the error.log should be accessible by FTP.
     
  6. giftsnake

    giftsnake New Member

    Code:
    :/var/www/clients/client1/web1# ls -la
    total 28K
    drwxr-x--x  6 web1 client1 4.0K 2010-10-03 17:11 .
    drwxr-xr-x  6 root root    4.0K 2010-09-29 10:54 ..
    drwxr-x--x  2 web1 client1 4.0K 2010-04-12 18:57 cgi-bin
    -rwxr-xr-x  1 root root      40 2010-10-08 03:37 .htpasswd_stats
    lrwxrwxrwx  1 web1 client1   39 2010-04-12 18:57 log -> /var/log/ispconfig/httpd/domain.com
    drwxr-x--x  2 web1 client1 4.0K 2010-09-29 10:27 ssl
    drwxrwxrwx  2 web1 client1 4.0K 2010-04-12 18:57 tmp
    drwx--x--- 10 web1 client1 4.0K 2010-10-02 23:05 web
    for me, it is a symlink (debian lenny)
     
  7. yoplait

    yoplait Member

    (on debian lenny too)

    Here is what I have, if it can help you.
    I can read the logs from a ftp session.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, youre right. It is always like that.

    The difference between your two setups might be that giftsnake has ftp virtual chroot enablesd while it is not enabled on yoplaits setup? Then it might indeed by that the logfiles are not accessible by ftp with chrooting.
     
  9. giftsnake

    giftsnake New Member

    indeed. i followed the 'perfect setup' and there virtual-chrooting is enabled.
     

Share This Page