Permission Problem

Discussion in 'Installation/Configuration' started by wabz, Sep 7, 2009.

  1. wabz

    wabz New Member

    I am having a problem when installing new joomla components and modules on my site. For unknown reasons the file permission are given to another user and not the web client. Here is an example


    drwxrwxrwx 2 web2 client2 4096 Aug 11 15:23 com_checkin
    drwxr-xr-x 3 wwwrun www 4096 Sep 7 13:25 com_civicrm
    drwxrwxrwx 5 web2 client2 4096 Aug 11 15:24 com_config
    drwxrwxrwx 6 web2 client2 4096 Aug 11 15:24 com_fpss
    drwxr-xr-x 6 wwwrun www 4096 Sep 7 16:47 com_freepaypal
    drwxrwxrwx 4 web2 client2 4096 Aug 11 15:24 com_frontpage
    drwxrwxrwx 8 web2 client2 4096 Aug 11 15:24 com_google


    So how do i revert back to web2 client2 instead of wwwrun www?
     
  2. falko

    falko Super Moderator

    You can use the chown command:
    Code:
    chown web2:client2 com_civicrm
    See
    Code:
    man chown
     
  3. wabz

    wabz New Member

    Yes

    Thanks Falko. Will i have to do it every time i install a new component, module or pluggin in joomla?
     
  4. falko

    falko Super Moderator

    Depends on how you install it. If you upload it with FTP as the right user, then no. If you install it through your browser and you're using mod_php, then the files/directories will be owned by the Apache user/group.
     
  5. wabz

    wabz New Member

    OK Nice

    the problem is when i run chown web2:client2 com_civicrm it only work for the main folder and not the subfolders and files inside.
     
  6. till

    till Super Moderator

    Use:

    chown -R web2:client2 com_civicrm
     

Share This Page