2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-10-11 17:14:43 +05:30
|
|
|
<!--
|
2021-12-05 21:05:27 +05:30
|
|
|
SPDX-FileCopyrightText: 1996 , Marek Michałkiewicz
|
|
|
|
SPDX-FileCopyrightText: 2001 - 2006, Tomasz Kłoczko
|
|
|
|
SPDX-License-Identifier: BSD-3-Clause
|
2008-10-11 17:14:43 +05:30
|
|
|
-->
|
2011-07-09 01:19:09 +05:30
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!-- SHADOW-CONFIG-HERE -->
|
|
|
|
]>
|
2007-10-07 17:16:16 +05:30
|
|
|
<refentry id='suauth.5'>
|
2007-11-11 05:16:11 +05:30
|
|
|
<!-- $Id$ -->
|
2012-05-25 17:15:21 +05:30
|
|
|
<refentryinfo>
|
|
|
|
<author>
|
|
|
|
<firstname>Marek</firstname>
|
|
|
|
<surname>Michałkiewicz</surname>
|
|
|
|
<contrib>Creation, 1996</contrib>
|
|
|
|
</author>
|
|
|
|
<author>
|
|
|
|
<firstname>Thomas</firstname>
|
|
|
|
<surname>Kłoczko</surname>
|
|
|
|
<email>kloczek@pld.org.pl</email>
|
|
|
|
<contrib>shadow-utils maintainer, 2000 - 2007</contrib>
|
|
|
|
</author>
|
|
|
|
<author>
|
|
|
|
<firstname>Nicolas</firstname>
|
|
|
|
<surname>François</surname>
|
|
|
|
<email>nicolas.francois@centraliens.net</email>
|
|
|
|
<contrib>shadow-utils maintainer, 2007 - now</contrib>
|
|
|
|
</author>
|
|
|
|
</refentryinfo>
|
2007-10-07 17:16:16 +05:30
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>suauth</refentrytitle>
|
|
|
|
<manvolnum>5</manvolnum>
|
2021-10-16 02:58:12 +05:30
|
|
|
<refmiscinfo class="sectdesc">File Formats and Configuration Files</refmiscinfo>
|
2011-07-09 01:19:09 +05:30
|
|
|
<refmiscinfo class="source">shadow-utils</refmiscinfo>
|
|
|
|
<refmiscinfo class="version">&SHADOW_UTILS_VERSION;</refmiscinfo>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>suauth</refname>
|
2007-10-07 17:17:33 +05:30
|
|
|
<refpurpose>detailed su control file</refpurpose>
|
2007-10-07 17:16:16 +05:30
|
|
|
</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'>
|
2016-04-28 19:25:15 +05:30
|
|
|
1) the user su is targeting
|
2007-10-07 17:16:16 +05:30
|
|
|
</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
|
2011-06-01 17:28:04 +05:30
|
|
|
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
|
2016-04-28 19:25:15 +05:30
|
|
|
<emphasis>GROUP</emphasis> is recognized. <emphasis>ALL EXCEPT
|
2007-10-07 17:17:01 +05:30
|
|
|
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>
|
2016-04-28 19:25:15 +05:30
|
|
|
<manvolnum>5</manvolnum></citerefentry> is necessary.
|
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>
|
|
|
|
</refentry>
|