mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
Add polkit configuration for Network Manager.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17951 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
35e0af7f2c
commit
8df33ae376
@ -1,12 +1,12 @@
|
||||
<!-- $LastChangedBy$ $Date$ -->
|
||||
|
||||
<!ENTITY day "11"> <!-- Always 2 digits -->
|
||||
<!ENTITY day "13"> <!-- Always 2 digits -->
|
||||
<!ENTITY month "11"> <!-- Always 2 digits -->
|
||||
<!ENTITY year "2016">
|
||||
<!ENTITY copyrightdate "2001-&year;">
|
||||
<!ENTITY copyholder "The BLFS Development Team">
|
||||
<!ENTITY version "&year;-&month;-&day;">
|
||||
<!ENTITY releasedate "November 11th &year;">
|
||||
<!ENTITY releasedate "November 13th &year;">
|
||||
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
|
||||
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
|
||||
<!ENTITY lfs-version "development"> <!-- x.y|development -->
|
||||
|
@ -43,6 +43,15 @@
|
||||
</listitem>
|
||||
-->
|
||||
|
||||
<listitem>
|
||||
<para>November 13th, 2016</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[dj] - Add polkit configuration for Network Manager.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>November 11th, 2016</para>
|
||||
<itemizedlist>
|
||||
|
@ -33,10 +33,11 @@
|
||||
|
||||
<para>
|
||||
<application>NetworkManager</application> is a set of co-operative
|
||||
tools that make networking simple and straightforward. Whether WiFi, wired,
|
||||
3G, or Bluetooth, NetworkManager allows you to quickly move from one network
|
||||
to another: Once a network has been configured and joined once, it can be
|
||||
detected and re-joined automatically the next time it's available.
|
||||
tools that make networking simple and straightforward. Whether WiFi,
|
||||
wired, 3G, or Bluetooth, NetworkManager allows you to quickly move from
|
||||
one network to another: Once a network has been configured and joined
|
||||
once, it can be detected and re-joined automatically the next time it's
|
||||
available.
|
||||
</para>
|
||||
|
||||
&lfs7a_checked;
|
||||
@ -248,11 +249,10 @@ make</userinput></screen>
|
||||
|
||||
<para>
|
||||
For <application>NetworkManager</application> to work, at least
|
||||
minimal configuration file must be present. Such file is not
|
||||
installed with <command>make install</command>. Issue following
|
||||
command as the
|
||||
<systemitem class="username">root</systemitem> user to create
|
||||
minimal <filename>NetworkManager.conf</filename> file:
|
||||
a minimal configuration file must be present. Such file is not
|
||||
installed with <command>make install</command>. Issue the following
|
||||
command as the <systemitem class="username">root</systemitem> user to
|
||||
create minimal <filename>NetworkManager.conf</filename> file:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
|
||||
@ -267,6 +267,25 @@ EOF</userinput></screen>
|
||||
for any additional options.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To allow regular users permission to configure network connections,
|
||||
you should add them to the
|
||||
<systemitem class="groupname">netdev</systemitem>
|
||||
group, and create a <application>polkit</application> rule that grants
|
||||
access. Run the following commands as the
|
||||
<systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>/sbin/usermod -a -G netdev <replaceable><username></replaceable>
|
||||
|
||||
cat > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules << "EOF"
|
||||
<literal>polkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3 id="NetworkManager-init">
|
||||
@ -286,6 +305,15 @@ EOF</userinput></screen>
|
||||
as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
If using <application>Network Manager</application> to manage
|
||||
an interface, any previous configuration for that interface should be
|
||||
removed, and the interface brought down prior to starting
|
||||
<application>Network Manager</application>.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<indexterm zone="NetworkManager NetworkManager-init">
|
||||
<primary sortas="f-NetworkManager">NetworkManager</primary>
|
||||
</indexterm>
|
||||
|
Loading…
Reference in New Issue
Block a user