Acces log trough shell user (ssh)

Discussion in 'Installation/Configuration' started by global-e, Jun 28, 2012.

  1. global-e

    global-e New Member

    Hi ISP Community,

    I want to give shell users access to their log files. They see the log files folder redirection but when they try to open they get the error:

    Code:
    xxxxxx_shell@foo.bar:/$ ls -lar
    total 732
    drwx--x--- 10 xxxxxx_shell client2   4096 Jun 27 16:11 web
    drwxr-x--x  3 root           root      4096 Jun 12 08:57 var
    drwxr-x--x  6 root           root      4096 Jun 12 08:57 usr
    drwxrwxrwx  2 xxxxxx_shell client2 692224 Jun 28 07:54 tmp
    drwxr-x--x  2 xxxxxx_shell client2   4096 Jun 12 08:38 ssl
    lrwxrwxrwx  1 root           root        32 Jun 12 08:38 log -> /var/log/ispconfig/httpd/foo.bar
    lrwxrwxrwx  1 root           root         4 Jun 12 08:57 lib64 -> /lib
    drwxr-x--x  3 root           root      4096 Jun 12 08:57 lib
    drwxr-x--x  4 root           root      4096 Jun 12 08:57 home
    drwxr-x--x  6 root           root      4096 Jun 12 08:57 etc
    drwxr-x--x  2 root           root      4096 Jun 12 08:57 dev
    drwxr-x--x  2 xxxxxx_shell client2   4096 Jun 12 08:38 cgi-bin
    drwxr-x--x  2 root           root      4096 Jun 12 08:57 bin
    drwx------  2 xxxxxx_shell client2   4096 Jun 12 08:57 .ssh
    -rwxr-xr-x  1 xxxxxx_shell client2      0 Jun 28 07:12 .bash_history
    drwxr-xr-x 14 root           root      4096 Jun 12 08:57 ..
    drwxr-xr-x 14 root           root      4096 Jun 12 08:57 .
    
    
    Code:
    xxxxxx_shell@foo.bar:/$ cd log
    bash: cd: log: No such file or directory
    or

    Code:
    xxxxxx_shell@foo.bar:/$ cd /var/log/ispconfig/httpd/foo.bar
    bash: cd: /var/log/ispconfig/httpd/foo.bar: No such file or directory
    How can i fix this?
     
    Last edited: Jun 28, 2012
  2. till

    till Super Moderator

    You can not provide access to the log files for shell users that are jailed as jailed users can not access files outside of their jail. But you users can access the file by FTP.
     
  3. global-e

    global-e New Member

    Ok :'( Thanks for the info and the quick response :rolleyes:
     

Share This Page