<?xml version="1.0" encoding="UTF-8"?>
<refentry id='logoutd.8'>
  <!-- $Id$ -->
  <refmeta>
    <refentrytitle>logoutd</refentrytitle>
    <manvolnum>8</manvolnum>
    <refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
  </refmeta>
  <refnamediv id='name'>
    <refname>logoutd</refname>
    <refpurpose>Enforce login time restrictions</refpurpose>
  </refnamediv>
  <!-- body begins here -->
  <refsynopsisdiv id='synopsis'>
    <cmdsynopsis>
      <command>logoutd</command>
    </cmdsynopsis>
  </refsynopsisdiv>

  <refsect1 id='description'>
    <title>DESCRIPTION</title>
    <para>
      <command>logoutd</command> enforces the login time and port
      restrictions specified in <filename>/etc/porttime</filename>. 
      <command>logoutd</command> should be started from
      <filename>/etc/rc</filename>. The <filename>/var/run/utmp</filename>
      file is scanned periodically and each user name is checked to see if
      the named user is permitted on the named port at the current time. 
      Any login session which is violating the restrictions in
      <filename>/etc/porttime</filename> is terminated.
    </para>
  </refsect1>

  <refsect1 id='files'>
    <title>FILES</title>
    <variablelist>
      <varlistentry>
	<term><filename>/etc/porttime</filename></term>
	<listitem>
	  <para>File containing port access.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
	<term><filename>/var/run/utmp</filename></term>
	<listitem>
	  <para>List of current login sessions.</para>
	</listitem>
      </varlistentry>
    </variablelist>
  </refsect1>
</refentry>
