PDA

View Full Version : Permission Problem


wabz
7th September 2009, 19:48
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?

falko
8th September 2009, 15:02
You can use the chown command:
chown web2:client2 com_civicrm
See man chown

wabz
9th September 2009, 18:28
Thanks Falko. Will i have to do it every time i install a new component, module or pluggin in joomla?

falko
10th September 2009, 19:14
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.

wabz
14th September 2009, 12:47
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.

till
14th September 2009, 13:38
Use:

chown -R web2:client2 com_civicrm