Changeset 8df33ae3 for networking


Ignore:
Timestamp:
11/13/2016 04:08:20 AM (7 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
851ed2f
Parents:
35e0af7f
Message:

Add polkit configuration for Network Manager.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networking/netutils/networkmanager.xml

    r35e0af7f r8df33ae3  
    3434    <para>
    3535      <application>NetworkManager</application> is a set of co-operative
    36       tools that make networking simple and straightforward. Whether WiFi, wired,
    37       3G, or Bluetooth, NetworkManager allows you to quickly move from one network
    38       to another: Once a network has been configured and joined once, it can be
    39       detected and re-joined automatically the next time it's available.
     36      tools that make networking simple and straightforward. Whether WiFi,
     37      wired, 3G, or Bluetooth, NetworkManager allows you to quickly move from
     38      one network to another: Once a network has been configured and joined
     39      once, it can be detected and re-joined automatically the next time it's
     40      available.
    4041    </para>
    4142
     
    249250      <para>
    250251        For <application>NetworkManager</application> to work, at least
    251         minimal configuration file must be present. Such file is not
    252         installed with <command>make install</command>. Issue following
    253         command as the
    254         <systemitem class="username">root</systemitem> user to create
    255         minimal <filename>NetworkManager.conf</filename> file:
     252        a minimal configuration file must be present. Such file is not
     253        installed with <command>make install</command>. Issue the following
     254        command as the <systemitem class="username">root</systemitem> user to
     255        create minimal <filename>NetworkManager.conf</filename> file:
    256256      </para>
    257257
     
    268268      </para>
    269269
     270      <para>
     271        To allow regular users permission to configure network connections,
     272        you should add them to the
     273        <systemitem class="groupname">netdev</systemitem>
     274        group, and create a <application>polkit</application> rule that grants
     275        access. Run the following commands as the
     276        <systemitem class="username">root</systemitem> user:
     277      </para>
     278
     279<screen role="root"><userinput>/sbin/usermod -a -G netdev <replaceable>&lt;username&gt;</replaceable>
     280
     281cat &gt; /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules &lt;&lt; "EOF"
     282<literal>polkit.addRule(function(action, subject) {
     283    if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &amp;&amp; subject.isInGroup("netdev")) {
     284        return polkit.Result.YES;
     285    }
     286});</literal>
     287EOF</userinput></screen>
     288
    270289    </sect3>
    271290
     
    287306      </para>
    288307
     308      <note>
     309        <para>
     310          If using <application>Network Manager</application> to manage
     311          an interface, any previous configuration for that interface should be
     312          removed, and the interface brought down prior to starting
     313          <application>Network Manager</application>.
     314        </para>
     315      </note>
     316         
    289317      <indexterm zone="NetworkManager NetworkManager-init">
    290318        <primary sortas="f-NetworkManager">NetworkManager</primary>
Note: See TracChangeset for help on using the changeset viewer.