2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
|
|
|
|
<refentry id='suauth.5'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<!-- $Id: suauth.5.xml,v 1.12 2005/10/01 15:01:45 kloczek Exp $ -->
|
2007-10-07 17:16:16 +05:30
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>suauth</refentrytitle>
|
|
|
|
<manvolnum>5</manvolnum>
|
|
|
|
<refmiscinfo class='source'>Feb 14, 1996</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>suauth</refname>
|
|
|
|
<refpurpose>Detailed su control file</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<!-- body begins here -->
|
|
|
|
<refsynopsisdiv id='synopsis'>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>/etc/suauth</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='description'>
|
|
|
|
<title>DESCRIPTION</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
The file <filename>/etc/suauth</filename> is referenced whenever the
|
|
|
|
su command is called. It can change the behaviour of the su command,
|
|
|
|
based upon:
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<!-- .RS -->
|
|
|
|
<literallayout remap='.nf'>
|
|
|
|
1) the user su is targetting
|
|
|
|
</literallayout>
|
|
|
|
<!-- .fi -->
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
2) the user executing the su command (or any groups he might be
|
2007-10-07 17:16:16 +05:30
|
|
|
a member of)
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
The file is formatted like this, with lines starting with a # being
|
|
|
|
treated as comment lines and ignored;
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<literallayout remap='RS'>
|
|
|
|
to-id:from-id:ACTION
|
|
|
|
</literallayout>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
Where to-id is either the word <emphasis>ALL</emphasis>, a list of
|
|
|
|
usernames delimited by "," or the words <emphasis>ALL
|
|
|
|
EXCEPT</emphasis> followed by a list of usernames delimited by ","
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
from-id is formatted the same as to-id except the extra word
|
|
|
|
<emphasis>GROUP</emphasis> is recognised. <emphasis>ALL EXCEPT
|
|
|
|
GROUP</emphasis> is perfectly valid too. Following
|
|
|
|
<emphasis>GROUP</emphasis> appears one or more group names, delimited
|
|
|
|
by ",". It is not sufficient to have primary group id of the relevant
|
|
|
|
group, an entry in
|
|
|
|
<citerefentry><refentrytitle>/etc/group</refentrytitle>
|
|
|
|
<manvolnum>5</manvolnum></citerefentry> is neccessary.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
Action can be one only of the following currently supported options.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
<variablelist remap='TP'>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<emphasis>DENY</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>The attempt to su is stopped before a password is
|
|
|
|
even asked for.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<emphasis>NOPASS</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The attempt to su is automatically successful; no password is
|
|
|
|
asked for.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<emphasis>OWNPASS</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
For the su command to be successful, the user must enter his or
|
|
|
|
her own password. They are told this.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
Note there are three separate fields delimited by a colon. No
|
|
|
|
whitespace must surround this colon. Also note that the file is
|
|
|
|
examined sequentially line by line, and the first applicable rule is
|
|
|
|
used without examining the file further. This makes it possible for a
|
|
|
|
system administrator to exercise as fine control as he or she wishes.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='example'>
|
|
|
|
<title>EXAMPLE</title>
|
|
|
|
<literallayout remap='.nf'>
|
|
|
|
# sample /etc/suauth file
|
|
|
|
#
|
|
|
|
# A couple of privileged usernames may
|
|
|
|
# su to root with their own password.
|
|
|
|
#
|
|
|
|
root:chris,birddog:OWNPASS
|
2007-10-07 17:17:01 +05:30
|
|
|
#
|
2007-10-07 17:16:16 +05:30
|
|
|
# Anyone else may not su to root unless in
|
|
|
|
# group wheel. This is how BSD does things.
|
|
|
|
#
|
|
|
|
root:ALL EXCEPT GROUP wheel:DENY
|
|
|
|
#
|
|
|
|
# Perhaps terry and birddog are accounts
|
|
|
|
# owned by the same person.
|
|
|
|
# Access can be arranged between them
|
|
|
|
# with no password.
|
|
|
|
#
|
|
|
|
terry:birddog:NOPASS
|
|
|
|
birddog:terry:NOPASS
|
|
|
|
#
|
|
|
|
</literallayout>
|
|
|
|
<!-- .fi -->
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='files'>
|
|
|
|
<title>FILES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/suauth</filename></term>
|
|
|
|
<listitem><para></para></listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='bugs'>
|
|
|
|
<title>BUGS</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
There could be plenty lurking. The file parser is particularly
|
2007-10-07 17:16:16 +05:30
|
|
|
unforgiving about syntax errors, expecting no spurious whitespace
|
|
|
|
(apart from beginning and end of lines), and a specific token
|
|
|
|
delimiting different things.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='diagnostics'>
|
|
|
|
<title>DIAGNOSTICS</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
An error parsing the file is reported using
|
|
|
|
<citerefentry><refentrytitle>syslogd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
|
|
as level ERR on facility AUTH.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='see_also'>
|
|
|
|
<title>SEE ALSO</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>su</refentrytitle><manvolnum>1</manvolnum>
|
|
|
|
</citerefentry>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='author'>
|
|
|
|
<title>AUTHOR</title>
|
|
|
|
<literallayout remap='.nf'>
|
|
|
|
Chris Evans (lady0110@sable.ox.ac.uk)
|
|
|
|
Lady Margaret Hall
|
|
|
|
Oxford University
|
|
|
|
England
|
|
|
|
</literallayout>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|