DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th May 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default Joomla FreeBSD port file permissions

The FreeBSD port of Joomla 2.5.11 has the file ownership and permissions of the joomla directories
set as:
Code:
drwxr-xr-x   4 root  wheel
The files are:
Code:
-r--r--r--  1 www   www
Because of these restricted permissions the Joomla configuration, done through the Joomla web-based PHP code, fails.
The Apache webserver runs as user www and thus cannot modify/write the configuration and remove the Joomla installation directory, that for the sake of security, needs to be done.

So the only way out is to temporarily loosen the permissions and then restore them after configuration.

Is this normal or am I missing something?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #2   (View Single Post)  
Old 22nd May 2013
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

I just installed www/joomla25 and get this:

Code:
[/ports/www/joomla25]# grep \$FreeBSD Makefile
# $FreeBSD: www/joomla25/Makefile 316691 2013-04-27 20:49:53Z nivit $

[/ports/www/joomla25]# lc /usr/local/www/
total 2
drwxr-xr-x  20 www  www  -  512B May 22 23:55:10 2013 joomla/
Quote:
Because of these restricted permissions the Joomla configuration, done through the Joomla web-based PHP code, fails.
IMHO this is what you want, the configuration phase is a special case, in normal operation, the webserver should be able to write as little as possible, or preferably nothing, to your document root (ie. /usr/local/www).

You should compare the PHP files in /usr/local/www/joomla/ to your /bin/ directory. /bin/ isn't writable by users or daemons, they can only read and execute files, why should this be different?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 23rd May 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

This was my first experience with Joomla!.

I understand the configuration case is special, but why not a message that in order to configure you temporarily need to adjust permissions. Now I had to google for that solution.

Maybe I am too spoiled by OpenBSD packages, where usually configuration tips or hints like this are given .
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Reply

Tags
joomla

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd port issue on FreeBSD 8.2 x64 sparky FreeBSD Ports and Packages 7 29th March 2012 11:50 AM
FreeBSD Juniper contributes FreeBSD port to MIPS architecture vermaden News 1 4th December 2009 09:21 PM
port JDownloader to freebsd? tfcheng FreeBSD General 2 29th August 2008 10:20 PM
How to open port 80 on FreeBSD kapom FreeBSD General 14 19th June 2008 04:48 AM
Semi-brief introduction to file permissions, BSDfan666 Guides 4 7th June 2008 02:38 PM


All times are GMT. The time now is 01:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick