Branch: Tag:

1997-08-12

1997-08-12 12:01:45 by Per Hedbor <ph@opera.com>

More actions

Rev: server/base_server/config/describers.pike:1.32
Rev: server/base_server/mainconfig.pike:1.54
Rev: server/base_server/roxen.pike:1.94
Rev: server/config_actions/reloadconfigurations.pike:1.1
Rev: server/config_actions/reloaduserdb.pike:1.1
Rev: server/config_actions/restart.pike:1.1
Rev: server/config_actions/shutdown.pike:1.1

1: - constant cvs_version = "$Id: roxen.pike,v 1.93 1997/08/12 06:32:06 per Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.94 1997/08/12 12:01:38 per Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
1067:    array pw;       u=QUERY(User); -  if(sscanf(u, "%s:%s", u, g) == 2) +  sscanf(u, "%s:%s", u, g); +  if(strlen(u))    {    if(getuid())    {
1077:    if(pw = getpwnam(u))    {    u = (string)pw[2]; +  if(!g) g = (string)pw[3];    } else    pw = getpwuid((int)u);   #if efun(initgroups)
1093:   #else    setuid((int)u);   #endif +  report_notice("Setting UID to "+u+" and GID to "+g);    return 1;    }    }
1181:   }      // Enable all configurations - static private void enable_configurations() + void enable_configurations()   {    array err;   
1449:    "a module is added, etc.).");       globvar("ConfigurationPassword", "", "Configuration interface: Password", -  TYPE_PASSWORD|VAR_MORE, +  TYPE_PASSWORD|VAR_EXPERT,    "The password you will have to enter to use the configuration "    "interface. Please note that changing this password in the "    "configuration interface will _not_ require an additional entry "
1457:    "that you use the <a href=/(changepass)/Globals/>form instead</a>.");       globvar("ConfigurationUser", "", "Configuration interface: User", -  TYPE_STRING|VAR_MORE, +  TYPE_STRING|VAR_EXPERT,    "The username you will have to enter to use the configuration "    "interface");    -  globvar("ConfigurationIPpattern", "*", "Configuration interface: IP-Pattern", +  globvar("ConfigurationIPpattern","*", "Configuration interface: IP-Pattern",    TYPE_STRING|VAR_MORE,    "The IP-pattern hosts trying to connect to the configuration "    "interface will have to match.");    -  +     globvar("User", "", "Change uid and gid to", TYPE_STRING,    "When roxen is run as root, to be able to open port 80 " -  "for listening, change to this user-id:group-id when the port " -  " has been opened. <b>NOTE:</b> Since this is done before the " -  "modules have been loaded, you will have to use the numeric user and" -  " group id's, and not the symbolic ones.\n"); +  "for listening, change to this user-id and group-id when the port " +  " has been opened. If you only specify a symbolic username, the " +  "default group of that user will be used.");       globvar("NumHostnameLookup", 2, "Number of hostname lookup processes",    TYPE_INT|VAR_MORE,