Koozali.org formerly Contribs.org

moving ibay with permissions

ruud

moving ibay with permissions
« on: March 02, 2006, 10:39:27 PM »
I have installed an additional disk on which i want to move some of my big ibays.
From the console i used MC to move one of my ibays from disk1 to disk2 and i created a symbolic link in the /home/e-smith/files/ibays directory.

When i want to open the webpage of the ibay, i got the message that i don't have permissions.

Can anybody tell me what i've done wrong ?

thnx

moving ibay with permissions
« Reply #1 on: March 06, 2006, 01:50:56 AM »
I also added a new drive and followed the how-to here:
http://mirror.contribs.org/smeserver/contribs//mblotwijk/HowToGuides/AddExtraHardDisk.htm

All seemed well, but it get page not found trying to access the ibay website. Are there some permissions that need changing?

This is how the symlink looks compared to the Primary which is working and I did not move:

lrwxrwxrwx    1 root     root           26 Mar  5 19:37 netjuke -> /mnt/bigdisk/ibays/netjuke
drwxr-xr-x    5 root     root         4096 Feb  4  2004 Primary

I cd can to the symlink and list the contents with Putty and also from a WinXP client on the LAN. Any suggestions?
Tampa, FL USA

moving ibay with permissions
« Reply #2 on: March 06, 2006, 01:56:19 AM »
Logs have this:
[Sun Mar  5 19:55:12 2006] [error] [client 192.168.1.1] Symbolic link not allowed: /home/e-smith/files/ibays/gallery/

Any ideas what needs to be done?
Tampa, FL USA

ruud

moving ibay with permissions
« Reply #3 on: March 06, 2006, 02:08:34 AM »
I fixed it by making the necessary adjustments in the template directories.

The apache httpd config file needs some changes because the file locations have changed. Therefore you need to adjust/create custom templates. these templates can be found in /etc/e-smith/templates

In the how-to's overhere can be found how to make/change custom templates

moving ibay with permissions
« Reply #4 on: March 06, 2006, 04:59:55 AM »
I ended up adding a new custom template:

pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85DefaultAccess

Added this:
Options FollowSymLinks

Expanded the new template
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/e-smith/events/actions/restart-httpd-full

This has the effect of adding FollowSymLinks as a default for all ibays. I didn't seem to be able to figure out how to do it for just one. Are there any problems or security implications with this approach?
Tampa, FL USA

moving ibay with permissions
« Reply #5 on: March 06, 2006, 09:35:42 AM »
Since I was running a php application (Gallery 2.0.2) I had to run the install script for it and also add the path to the new location of the ibay to OpenBaseDir setting for the ibay. It was all bit more complicated than I expected, but isn't it always? Now for some well deserved rest  :pint:
Tampa, FL USA