<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="userenv">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>userenv</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">nosh</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>userenv</refname>
<refpurpose>set the "user" environment variables from the current UID and GID</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>userenv</command>
<arg choice='req'><replaceable>args</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection><title>Description</title>

<para>
<command>userenv</command> <arg choice='plain'><replaceable>args</replaceable></arg> is equivalent to <command>getuidgid</command> <command>userenv-fromenv</command> <arg choice='plain'><replaceable>args</replaceable></arg>.
<citerefentry><refentrytitle>getuidgid</refentrytitle><manvolnum>1</manvolnum></citerefentry> retrieves the current process's effective UID and GID and supplementary group ID list, and <citerefentry><refentrytitle>userenv-fromenv</refentrytitle><manvolnum>1</manvolnum></citerefentry> uses them to set per-account environment variables.
</para>

</refsection><refsection><title>Author</title>
<para><author><personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname></author></para>
</refsection>

</refentry>
