source: postlfs/security/sudo.xml@ 21755bc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 21755bc was 21755bc, checked in by Randy McMurchy <randy@…>, 17 years ago

Fixed more broken download URLs, added a note to the Gaim instructions that the package is now called Pidgin, added a test suite note to the Sudo instructions

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

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