152 lines
4.2 KiB
HTML
152 lines
4.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of SESSREG</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SESSREG</H1>
|
|
Section: User Commands (1)<BR>Updated: sessreg 1.1.1<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
sessreg - manage utmpx/wtmpx entries for non-init clients
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>sessreg</B>
|
|
|
|
[-w <I>wtmpx-file</I>]
|
|
[-u <I>utmpx-file</I>]
|
|
[-L <I>lastlog-file</I>]
|
|
[-l <I>line-name</I>]
|
|
[-h <I>host-name</I>]
|
|
[-s <I>slot-number</I>]
|
|
[-x <I>Xservers-file</I>]
|
|
[-t <I>ttys-file</I>]
|
|
[-V]
|
|
[-a]
|
|
[-d]
|
|
<I>user-name</I>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<I>Sessreg</I> is a simple program for managing utmpx/wtmpx and lastlog
|
|
entries for xdm sessions.
|
|
|
|
<P>
|
|
|
|
This version of <I>sessreg</I> is built using the modern POSIX
|
|
<B><A HREF="/cgi-bin/man/man2html?3c+pututxline">pututxline</A></B>(3c)
|
|
|
|
interfaces, which no longer require the slot-number, ttys-file, or
|
|
Xservers-file mappings. For compatibility with older versions and other
|
|
operating systems, the <B>-s</B>, <B>-t</B>, and <B>-x</B> flags are accepted,
|
|
but ignored.
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>USAGE</H2>
|
|
|
|
<P>
|
|
|
|
In Xstartup, place a call like:
|
|
<PRE>
|
|
|
|
sessreg -a -l $DISPLAY -x /etc/X11/xdm/Xservers $USER
|
|
|
|
</PRE>
|
|
|
|
and in Xreset:
|
|
<PRE>
|
|
|
|
sessreg -d -l $DISPLAY -x /etc/X11/xdm/Xservers $USER
|
|
</PRE>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-w</B> <I>wtmpx-file</I><DD>
|
|
This specifies an alternate wtmpx file, instead of
|
|
<B>/var/log/wtmp</B>.
|
|
|
|
The special name "none" disables writing records to the wtmpx file.
|
|
<DT id="2"><B>-u</B> <I>utmpx-file</I><DD>
|
|
This specifies an alternate utmpx file, instead of
|
|
<B>/var/run/utmp</B>.
|
|
|
|
The special name "none" disables writing records to the utmpx file.
|
|
<DT id="3"><B>-L</B> <I>lastlog-file</I><DD>
|
|
This specifies an alternate lastlog file, instead of
|
|
<B>/var/log/lastlog</B>,
|
|
|
|
if the platform supports lastlog files.
|
|
The special name "none" disables writing records to the lastlog file.
|
|
<DT id="4"><B>-l</B> <I>line-name</I><DD>
|
|
This describes the "line" name of the entry. For terminal sessions,
|
|
this is the final pathname segment of the terminal device filename
|
|
(e.g. ttyd0). For X sessions, it should probably be the local display name
|
|
given to the users session (e.g. :0). If none is specified, the
|
|
terminal name will be determined with <A HREF="/cgi-bin/man/man2html?3+ttyname">ttyname</A>(3) and stripped of leading
|
|
components.
|
|
<DT id="5"><B>-h</B> <I>host-name</I><DD>
|
|
This is set to indicate that the session was initiated from
|
|
a remote host. In typical xdm usage, this options is not used.
|
|
<DT id="6"><B>-s</B> <I>slot-number</I><DD>
|
|
|
|
This option is accepted for compatibility, but does nothing in
|
|
this version of <I>sessreg</I>.
|
|
|
|
<DT id="7"><B>-x</B> <I>Xservers-file</I><DD>
|
|
|
|
This option is accepted for compatibility, but does nothing in
|
|
this version of <I>sessreg</I>.
|
|
|
|
<DT id="8"><B>-t</B> <I>ttys-file</I><DD>
|
|
|
|
This option is accepted for compatibility, but does nothing in
|
|
this version of <I>sessreg</I>.
|
|
|
|
<DT id="9"><B>-V</B><DD>
|
|
This option causes the command to print its version and exit.
|
|
<DT id="10"><B>-a</B><DD>
|
|
This session should be added to utmpx/wtmpx.
|
|
<DT id="11"><B>-d</B><DD>
|
|
This session should be deleted from utmpx/wtmpx. One of -a/-d must
|
|
be specified.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+xdm">xdm</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+utmpx">utmpx</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+wtmpx">wtmpx</A></B>(5)
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Keith Packard, MIT X Consortium
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="12"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="13"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="14"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="15"><A HREF="#lbAE">USAGE</A><DD>
|
|
<DT id="16"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="17"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="18"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:27 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|