Client access to access.log and error.log

Discussion in 'Installation/Configuration' started by pavljiks, Mar 8, 2011.

  1. pavljiks

    pavljiks New Member

    Is there any way client without ssh access can view his apache log files. Those log files are in home directory. And permissions seems to be right from console.

    Code:
    root@server1:/var/www/domain.ltd# ls -la
    total 24
    drwxr-x--x  6 web38 client9 4096 2011-03-08 20:57 .
    drwxr-xr-x  3 root  root    4096 2011-03-07 23:55 ..
    lrwxrwxrwx  1 root  root      17 2011-03-08 00:30 backup -> /var/backup/web38
    drwxr-x--x  2 web38 client0 4096 2011-03-07 23:55 cgi-bin
    lrwxrwxrwx  1 web38 client0   35 2011-03-07 23:55 log -> /var/log/ispconfig/httpd/domain.ltd
    drwxr-x--x  2 web38 client0 4096 2011-03-07 23:55 ssl
    drwxrwxrwx  2 web38 client0 4096 2011-03-08 20:39 tmp
    drwx--x--- 22 web38 client0 4096 2011-03-08 14:35 web
    
    then
    Code:
    root@server1:/var/www/domain.ltd# cd log/
    root@server1:/var/www/domain.ltd/log# ls -la
    total 6468
    drwxr-x--x 2 root  root       4096 2011-03-08 20:45 .
    drwxr-xr-x 7 root  root       4096 2011-03-07 23:55 ..
    -rw-r--r-- 1 root  root    2588662 2011-03-08 20:45 20110308-access.log
    lrwxrwxrwx 1 root  root         19 2011-03-08 20:45 access.log -> 20110308-access.log
    -rw-r--r-- 1 web38 client9 4015159 2011-03-08 20:45 error.log
    
    i create a ordinary ftp user from site account administration panel and try to access folders i get such output (looks fine)
    Code:
    ....
    Status:	Connecting to 11.111.13.210:21...
    Status:	Connection established, waiting for welcome message...
    Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response:	220-You are user number 1 of 50 allowed.
    Response:	220-Local time is now 21:00. Server port: 21.
    Response:	220-This is a private system - No anonymous login
    Response:	220-IPv6 connections are also welcome on this server.
    Response:	220 You will be disconnected after 15 minutes of inactivity.
    Command:	USER ftpuser1
    Response:	331 User ftpuser1 OK. Password required
    Command:	PASS ******
    Response:	230-User ftpuser1 has group access to:  client9    sshusers  
    Response:	230 OK. Current restricted directory is /
    Command:	OPTS UTF8 ON
    Response:	200 OK, UTF-8 enabled
    Status:	Connected
    Status:	Retrieving directory listing...
    Command:	PWD
    Response:	257 "/" is your current location
    Command:	TYPE I
    Response:	200 TYPE is now 8-bit binary
    Command:	PASV
    Response:	227 Entering Passive Mode (11,111,13,210,135,216)
    Command:	MLSD
    Response:	150 Accepted data connection
    Response:	226-Options: -a -l 
    Response:	226 8 matches total
    Status:	Directory listing successful
    but when i try access "log" folder i get and folder inside is empty:

    Code:
    Command:	CWD /log
    Response:	250 OK. Current directory is /log
    Command:	PWD
    Response:	257 "/log" is your current location
    Command:	PASV
    Response:	227 Entering Passive Mode (11,111,13,210,230,174)
    Command:	MLSD
    Response:	150 Accepted data connection
    Response:	226-Sorry, we were unable to read [.]
    Response:	226-Options: -a -l 
    Response:	226 0 matches total
    Status:	Directory listing successful
    so i think there is something about that. Sorry, we were unable to read [.]

    with backup folder even shorter story
    Code:
    Command:	CWD /backup
    Response:	550 Can't change directory to /backup: Permission denied
    Error:	Failed to retrieve directory listing
    
    missing backups also. (yesterday i set up backups from admin user > Sites > Website > Backup > Daily "10".


    PS. My setup

    Ubuntu 10.10 ISPConfig 3.0.3.2 according to manual.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    make sure that you installed the sudo and zip packages.
     
  4. pavljiks

    pavljiks New Member

    fantastic response. log files work now.
    which script creates those daily backup folders?

    zip with sudo allready installed
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    /usr/local/ispconfig/server/cron_daily.sh
     

Share This Page