Add sudoers configuration for Xorg.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22329 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
DJ Lucas 2019-10-30 06:24:02 +00:00
parent 40d3e7af15
commit 5ce789c811
3 changed files with 24 additions and 2 deletions

View File

@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
<!ENTITY day "29"> <!-- Always 2 digits -->
<!ENTITY day "30"> <!-- Always 2 digits -->
<!ENTITY month "10"> <!-- Always 2 digits -->
<!ENTITY year "2019">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
<!ENTITY releasedate "October 29th, &year;">
<!ENTITY releasedate "October 30th, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->

View File

@ -41,6 +41,15 @@
</itemizedlist>
</listitem>
-->
<listitem>
<para>October 30th, 2019</para>
<itemizedlist>
<listitem>
<para>[dj] - Add sudoers configuration for Xorg.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>October 29th, 2019</para>
<itemizedlist>

View File

@ -137,6 +137,19 @@ chmod 644 /etc/profile.d/xorg.sh</userinput></screen>
will not remove the baskslash. It must then be removed manually.
</para></note>
<para>
If you've installed <xref linkend="sudo"/>, ensure that
<envar>XORG_PREFIX</envar> and <envar>XORG_CONFIG</envar> are available
in the <application>sudo</application> environment. As the
<systemitem class="username">root</systemitem> user, run the following
command:
</para>
<screen role="root"><userinput>cat &gt; /etc/sudoers.d/xorg &lt;&lt; EOF
<literal>Defaults env_keep += XORG_PREFIX
Defaults env_keep += XORG_CONFIG</literal>
EOF</userinput></screen>
<note><para>If you've decided to use the standard <filename
class="directory">/usr</filename> prefix, you can omit the remainder of
this page and continue at <xref linkend='util-macros'/>.</para></note>