<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/win32service.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'win32service.security.php',
    1 => 'Security consideration',
    2 => 'Security consideration',
  ),
  'up' => 
  array (
    0 => 'win32service.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'win32service.installation.php',
    1 => '安装',
  ),
  'next' => 
  array (
    0 => 'win32service.constants.php',
    1 => '预定义常量',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/win32service/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="win32service.security" class="section">
  <h2 class="title">Security consideration</h2>
  <p class="para">
   This extension needs administrator privileges for some actions such as
   <a href="function.win32-create-service.php" class="link">create</a>,
   <a href="function.win32-delete-service.php" class="link">delete</a>,
   <a href="function.win32-start-service.php" class="link">start</a>,
   <a href="function.win32-stop-service.php" class="link">stop</a>,
   <a href="function.win32-pause-service.php" class="link">pause</a> and
   <a href="function.win32-continue-service.php" class="link">continue</a>.
   This requirement can cause an elevation of privileges if the service
   control is available from the web interface or remote control.
  </p>
  <p class="para">
   The ACL on the service can be set after adding it into SCM to delegate the
   current administration tasks to a non administrator account or service account.
  </p>
  <p class="para">
   As of Win32Service 1.1.0, service rights can be managed with PHP. The actual ACLs can be read with
   <span class="function"><a href="function.win32-read-all-rights-access-service.php" class="function">win32_read_all_rights_access_service()</a></span>, an access or deny right can be added with
   <span class="function"><a href="function.win32-add-right-access-service.php" class="function">win32_add_right_access_service()</a></span>, or an access right can be removed with
   <span class="function"><a href="function.win32-remove-right-access-service.php" class="function">win32_remove_right_access_service()</a></span>.
  </p>
  <p class="para">
   It is recommended to update to Win32Service 1.1.0.
   For further instructions to manage rights without the extension (or a version prior to 1.1.0), see the
   <a href="https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/914392" class="link external">&raquo;&nbsp;Microsoft Knowledge Base</a>.
  </p>
 </div><?php manual_footer($setup); ?>