Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Kamelia Popova on March 04, 2001, 03:19:11 PM
-
Hi, all!
I tried extending the user interface of the e-smith manager.( Needed parameters exist in /home/e-smith/configuration file.)
1. I created new web page (by copy and edit an existing one) in /etc/e-smith/web/functions
2. I created link to it in /etc/e-smith/web/panels/manager/cgi-bin
3. Finally, I created actions in events directory
The file permissions of my script,link, etc. are exactly the same as the e-smith's base scripts,links,etc.
The problem:
When I access my script via e-smith-manager and change one or more parameters in the web page, after submitting I get the following error:
Software error:
Cannot open file /home/e-smith/configuration: Permission denied.
I can't understand what goes wrong. Please help.
Thanks in advance.
Kamelia Popova
-
Kamelia Popova wrote:
> The problem:
> When I access my script via e-smith-manager and change one or
> more parameters in the web page, after submitting I get the
> following error:
>
> Software error:
> Cannot open file /home/e-smith/configuration: Permission
> denied.
>
Hi Kamelia, see if you can follow this HowTo. Substitute 'my-script' for your filename. You probably missed this permission command, chmod u+rws,g+rx /etc/e-smith/web/functions/my-script.
e-smith-manager script:
chown root:admin /etc/e-smith/web/functions/my-script
chmod u+rws,g+rx /etc/e-smith/web/functions/my-script
action script:
chmod 554 /etc/e-smith/events/actions/my-script
chown root:root /etc/e-smith/events/actions/my-script
Create an event directory and link to my-script action script:
mkdir -p /etc/e-smith/events/my-script
ln -sf /etc/e-smith/events/actions/my-script /etc/e-smith/events/my-script/S10my-script
Create a link in /etc/e-smith/web/panels/manager/cg-bin
ln -sf /etc/e-smith/web/functions/my-script /etc/e-smith/web/panels/manager/cgi-bin/my-script
Test in the e-smith-manager
-
All file permissions are good. But it isn't work.
Another ideas?
-
Yes, now it worked! The problem was in file permissions.
Thank you, Darrell!