Koozali.org: home of the SME Server

Folder permissions in iBays

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Folder permissions in iBays
« Reply #15 on: July 01, 2016, 04:12:36 PM »
If you want full control on filesystem permission (and other settings), don't use ibay. Install your app manually in /opt/myapp or /home/e-smith/files/myapp, create the custom-template for httpd.conf. Ibays are made to have something simple and working. You can't conciliate simple to use and full control.
C'est la fin du monde !!! :lol:

Offline michelandre

  • *
  • 261
  • +0/-0
Re: Folder permissions in iBays
« Reply #16 on: July 01, 2016, 04:17:52 PM »
Hi Stefano,

Making umask consistent with the creation of the i-bay will take out group w and you will not be able to install WordPress as it is needed for the primary installation.

The only suggestion will be to install WordPress in any i-bay except Primary.

SME is very well done and secure and I think there is a reason for having shared as the Primary's group.

Michel-André


Offline michelandre

  • *
  • 261
  • +0/-0
Re: Folder permissions in iBays
« Reply #17 on: July 01, 2016, 04:23:33 PM »
Hi Daniel B,

The security problem is not with SME but with WordPress.   :sad:

Michel-André

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Folder permissions in iBays
« Reply #18 on: July 02, 2016, 10:58:00 AM »
If you want full control on filesystem permission (and other settings), don't use ibay. Install your app manually in /opt/myapp or /home/e-smith/files/myapp, create the custom-template for httpd.conf. Ibays are made to have something simple and working. You can't conciliate simple to use and full control.
this should not be in opt as it will not be included in the standard backup process, so you should rather /home/e-smith/files/myapp or /home/e-smith/files/webapps/myapp.



Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Folder permissions in iBays
« Reply #19 on: July 02, 2016, 01:50:20 PM »
For what it's worth, I make these changes to ibay settings for ibays that contain Wordpress:

Code: [Select]
# set IBAY manually, or replace it in this command with your ibay name
#
/sbin/e-smith/db accounts setprop $IBAY \
FollowSymLinks enabled \
CgiBin enabled \
AllowOverride All \
Group www \
PublicAccess global \
UserAccess wr-group-rd-everyone \
PHPBaseDir /home/e-smith/files/ibays/$IBAY/:/tmp/
#
signal-event remoteaccess-update

My notes on this say:
Quote
# Set AllowOverride, FollowSymlinks, Group, UserAccess and PHPBaseDir so that
# permalinks and uploads will work