Koozali.org: home of the SME Server

Control Services from Server-Manager - Acces Denied

gbl

Control Services from Server-Manager - Acces Denied
« on: September 26, 2004, 11:45:01 AM »
After execute this Script from Server-manager
Code: [Select]
#!/usr/bin/perl -wT
package esmith;
BEGIN
{
  $ENV {'SHELL'}='/bin/bash';
  delete $ENV {'ENV'};
}
use strict;
use esmith::util;
use esmith::db;
my %conf;
tie %conf, 'esmith::config';
db_set_prop (\%conf, 'dhcpd', 'status', 'disabled');
esmith::util::backgroundCommand (8, "/etc/init.d/dhcpd", "start");


I get this error

Code: [Select]
Sep 26 13:39:44 test e-smith-bg: Stopping dhcpd:svc: warning: unable to control /service/dhcpd: access denied
Sep 26 13:39:44 test dhcpd: Stopping dhcpd succeeded
Sep 26 13:39:44 test e-smith-bg: [   OK   ]^M
Sep 26 13:39:44 test e-smith-bg: Starting dhcpd:svc: warning: unable to control /service/dhcpd: access denied
Sep 26 13:39:45 test dhcpd: Starting dhcpd failed
Sep 26 13:39:45 test e-smith-bg: [ FAILED ]^M


Can anyone tell my why?

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Control Services from Server-Manager - Acces Denied
« Reply #1 on: September 28, 2004, 08:15:21 PM »
Quote from: "gbl"
After execute this Script from Server-manager
Can anyone tell my why?


You can't execute scripts from the server-manager.  Is this a panel you are trying to build or something?

Please explain exactly what you are trying to do. This would make it much easier for people to jump in and provide suggestions.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.