source: postlfs/security/sudo.xml@ 9084c2eb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9084c2eb was 9084c2eb, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Typo fix. Postlfs.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5383 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY sudo-download-http "http://www.courtesan.com/sudo/dist/sudo-&sudo-version;.tar.gz">
8 <!ENTITY sudo-download-ftp " ">
9 <!ENTITY sudo-md5sum "b29893c06192df6230dd5f340f3badf5">
10 <!ENTITY sudo-size "576 KB">
11 <!ENTITY sudo-buildsize "3.6 MB">
12 <!ENTITY sudo-time "less than 0.1 SBU">
13]>
14
15<sect1 id="sudo" xreflabel="sudo-&sudo-version;">
16 <?dbhtml filename="sudo.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">sudo-&sudo-version;.tar</keyword>
23 <keyword role="ftpdir">sudo</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Sudo-&sudo-version;</title>
28
29 <indexterm zone="sudo">
30 <primary sortas="a-sudo">sudo</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Sudo</title>
35
36 <para>The <application>sudo</application> package allows a system
37 administrator to give certain users (or groups of users) the ability to run
38 some (or all) commands as
39 <systemitem class="username">root</systemitem> or another user while
40 logging the commands and arguments.</para>
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&sudo-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&sudo-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &sudo-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &sudo-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &sudo-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &sudo-time;</para>
61 </listitem>
62 </itemizedlist>
63
64<!--
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing='compact'>
67 <listitem>
68 <para>Required patch: <ulink
69 url="&patch-root;/sudo-&sudo-version;-xxxx-1.patch"/></para>
70 </listitem>
71 </itemizedlist>
72 <bridgehead renderas="sect3">Sudo Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75
76
77-->
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of Sudo</title>
82
83 <para>Install <application>sudo</application> by running
84 the following commands:</para>
85
86<screen><userinput>sed -i -e 's/CDPATH",/&amp;\n "SHELLOPTS",\n "PS4",/' env.c
87./configure --prefix=/usr --libexecdir=/usr/lib \
88 --enable-noargs-shell --with-ignore-dot --with-all-insults \
89 --enable-shell-sets-home &amp;&amp;
90make</userinput></screen>
91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
94<screen role="root"><userinput>make install</userinput></screen>
95
96 </sect2>
97
98 <sect2 role="commands">
99 <title>Command Explanations</title>
100
101 <para><command>sed -i -e 's/CDPATH",/&amp;\n "SHELLOPTS",\n "PS4",/'
102 env.c</command>: This command adds two environment variables to a list of
103 variables to be excluded from the target environment. It solves a
104 security problem.</para>
105
106 <para><option>--enable-noargs-shell</option>: This switch allows
107 <application>sudo</application> to run a shell if invoked with no
108 arguments.</para>
109
110 <para><option>--with-ignore-dot</option>: This switch causes
111 <application>sudo</application> to ignore '.' in the PATH.</para>
112
113 <para><option>--with-all-insults</option>: This switch includes all the
114 <application>sudo</application> insult sets.</para>
115
116 <para><option>--enable-shell-sets-home</option>: This switch sets HOME to
117 the target user in shell mode.</para>
118
119 <note>
120 <para>There are many options to <application>sudo</application>'s
121 <command>configure</command> command. Check the
122 <command>configure --help</command> output for a complete list.</para>
123 </note>
124
125 </sect2>
126
127 <sect2 role="configuration">
128 <title>Configuring Sudo</title>
129
130 <sect3 id="sudo-config">
131 <title>Config File</title>
132
133 <para><filename>/etc/sudoers</filename></para>
134
135 <indexterm zone="sudo sudo-config">
136 <primary sortas="e-etc-sudoers">/etc/sudoers</primary>
137 </indexterm>
138
139 </sect3>
140
141 <sect3>
142 <title>Configuration Information</title>
143
144 <para>The <filename>sudoers</filename> file can be quite complicated. It
145 is composed of two types of entries: aliases (basically variables) and
146 user specifications (which specify who may run what). The installation
147 installs a default configuration that has no privileges installed for any
148 user.</para>
149
150 <para>One example usage is to allow the system administrator to execute
151 any program without typing a password each time root privileges are
152 needed. This can be configured as:</para>
153
154 <screen># User alias specification
155User_Alias ADMIN = YourLoginId
156
157# Allow people in group ADMIN to run all commands without a password
158ADMIN ALL = NOPASSWD: ALL</screen>
159
160 <para>For details, see <command>man sudoers</command>.</para>
161
162 </sect3>
163
164 </sect2>
165
166 <sect2 role="content">
167 <title>Contents</title>
168
169 <segmentedlist>
170 <segtitle>Installed Programs</segtitle>
171 <segtitle>Installed Library</segtitle>
172 <segtitle>Installed Directories</segtitle>
173
174 <seglistitem>
175 <seg>sudo and sudoedit</seg>
176 <seg>sudo_noexec.so</seg>
177 <seg>None</seg>
178 </seglistitem>
179 </segmentedlist>
180
181 <variablelist>
182 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
183 <?dbfo list-presentation="list"?>
184 <?dbhtml list-presentation="table"?>
185
186 <varlistentry id="sudo_prog">
187 <term><command>sudo</command></term>
188 <listitem>
189 <para>executes a command as another user as permitted by
190 the <filename>/etc/sudoers</filename> configuration file.
191 </para>
192 <indexterm zone="sudo sudo">
193 <primary sortas="b-sudo">sudo</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="sudoedit">
199 <term><command>sudoedit</command></term>
200 <listitem>
201 <para>is a hard link to <command>sudo</command> that implies
202 the <option>-e</option> option to invoke an editor as another
203 user.</para>
204 <indexterm zone="sudo sudoedit">
205 <primary sortas="b-sudoedit">sudoedit</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="sudo_noexec">
211 <term><filename class='libraryfile'>sudo_noexec.so</filename></term>
212 <listitem>
213 <para>enables support for the "noexec" functionality which prevents
214 a dynamically-linked program being run by sudo from executing
215 another program (think shell escapes).</para>
216 <indexterm zone="sudo sudo_noexec">
217 <primary sortas="c-sudo_noexec">sudo_noexec.so</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 </variablelist>
223
224 </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.