Changeset 7a5b2e77


Ignore:
Timestamp:
01/08/2014 05:56:18 PM (8 years ago)
Author:
Fernando de Oliveira <fernando@…>
Branches:
10.0, 10.1, 11.0, 7.10, 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, ken/refactor-virt, krejzi/svn, lazarus, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
8a6b187
Parents:
6af5a27c
Message:

New package: ssh-askpass-6.4p1. Remove instructions to build it and rephrase pkexec and other parts of Gparted-0.17.0.

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

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r6af5a27c r7a5b2e77  
    161161<!ENTITY polkit-version               "0.112">
    162162<!ENTITY shadow-version               "4.1.5.1">
     163<!ENTITY ssh-askpass-version          "&openssh-version;">
    163164<!ENTITY stunnel-version              "4.56">
    164165<!ENTITY sudo-version                 "1.8.8">
  • introduction/welcome/changelog.xml

    r6af5a27c r7a5b2e77  
    4848      <itemizedlist>
    4949        <listitem>
     50          <para>[fernando] - New package: ssh-askpass-6.4p1. Remove instructions
     51          to build it and rephrase pkexec and other parts of Gparted-0.17.0.
     52          Hopefully fix
     53          <ulink url="&blfs-ticket-root;4524">#4524</ulink> and
     54          <ulink url="&blfs-ticket-root;4454">#4454</ulink>.</para>
     55        </listitem>
     56        <listitem>
    5057          <para>[fernando] - Update to lxappearance-0.5.5. Fixes
    5158          <ulink url="&blfs-ticket-root;4537">#4537</ulink>.</para>
  • postlfs/security/security.xml

    r6af5a27c r7a5b2e77  
    6363  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="polkit.xml"/>
    6464  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="shadow.xml"/>
     65  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ssh-askpass.xml"/>
    6566  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="stunnel.xml"/>
    6667  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sudo.xml"/>
  • xsoft/other/gparted.xml

    r6af5a27c r7a5b2e77  
    165165      Other solution is to use <application>pkexec</application>, from
    166166      <xref linkend="polkit"/>, but some configuration is necessary.
    167       Another simple solution is the <application>GTK+</application> based
    168       <application>ssh-askpass</application> (does not need
    169       <application>GNOME</application>). Below, we describe these two
    170       alternatives: "ssh-askpass" and "pkexec".
     167      Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
     168      describe these two alternatives: "ssh-askpass" and "pkexec".
    171169    </para>
    172170
     
    174172      <title>ssh-askpass</title>
    175173        <para>
    176           To optionally use <application>ssh-askpass</application>, you need
    177           <xref linkend="sudo"/> and <xref linkend="openssh"/> to be installed.
    178           Uncompress the <xref linkend="openssh"/> tarball and, inside the
    179           source directory, install <application>ssh-askpass</application> by
    180           running the following commands:
    181         </para>
    182 
    183 <screen><userinput>cd contrib &amp;&amp;
    184 make gnome-ssh-askpass2</userinput></screen>
    185 
    186         <para>
    187           Now, as the <systemitem class="username">root</systemitem> user:
    188         </para>
    189 
    190 <screen role="root"><userinput>install -v -d -m755                  /usr/lib/openssh/contrib     &amp;&amp;
    191 install -v -m755  gnome-ssh-askpass2 /usr/lib/openssh/contrib     &amp;&amp;
    192 ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass</userinput></screen>
    193 
    194         <para>
    195           Still as the <systemitem class="username">root</systemitem> user,
    196           configure <xref linkend="gparted"/> and <xref linkend="sudo"/> to
    197           use <application>ssh-askpass</application>:
     174          To optionally use <xref linkend="ssh-askpass"/> if it is installed in
     175          your system, run the following commands as the
     176          <systemitem class="username">root</systemitem> user:
    198177        </para>
    199178
    200179<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
    201 sed -i 's/Exec=/Exec=sudo -A /'               /usr/share/applications/gparted.desktop      &amp;&amp;
    202 
    203 cat &gt;&gt; /etc/sudo.conf &lt;&lt; "EOF" &amp;&amp;
    204 # Path to askpass helper program
    205 Path askpass /usr/lib/openssh/ssh-askpass
    206 EOF
    207 chmod -v 0644 /etc/sudo.conf</userinput></screen>
     180sed -i 's/Exec=/Exec=sudo -A /'               /usr/share/applications/gparted.desktop      &amp;&amp;</userinput></screen>
    208181
    209182        <para>
    210183         Now, clicking in the menu item for Gparted, a dialog appears in the
    211          screen, asking for the administrator password. Any graphical program
    212          requiring root privileges can be run using "sudo -A &lt;program&gt;",
    213          e.g. from a terminal, from a desktop launcher, or including it in the
    214          desktop file.
    215         </para>
     184         screen, asking for the administrator password.</para>
    216185
    217186    </sect3>
     
    221190        <para>
    222191          To optionally use <application>pkexec</application>, you need
    223           <xref linkend="which"/> (for the script),
    224192          <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/>, and
    225193          <xref linkend="consolekit"/> installed with support to
     
    236204
    237205cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
    238 #!/bin/bash
    239 if [ $(which pkexec) ]; then
    240     pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
    241 else
    242     /usr/sbin/gparted "$@"
    243 fi
     206<literal>#!/bin/bash
     207
     208pkexec /usr/sbin/gparted $@</literal>
    244209EOF
    245210chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
     
    251216        </para>
    252217
    253 <screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy &lt;&lt; "EOF"
    254 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
     218<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
     219<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    255220&lt;!DOCTYPE policyconfig PUBLIC
    256221 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
     
    270235  &lt;/action&gt;
    271236
    272 &lt;/policyconfig&gt;
     237&lt;/policyconfig&gt;</literal>
    273238EOF
    274 chmod -v 0644 /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy</userinput></screen>
     239chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
    275240
    276241        <para>
    277242         Now, clicking in the menu item for Gparted, a dialog appears in the
    278          screen, asking for the administrator password. Any graphical program
    279          requiring root privileges can be run using "pkexec &lt;program&gt;",
    280          e.g. from a terminal, from a desktop launcher, or including it in the
    281          desktop file.
    282         </para>
     243         screen, asking for the administrator password.</para>
    283244
    284245    </sect3>
     
    296257      <seglistitem>
    297258        <seg>
    298           gparted and gpartedbin
     259          gparted, gpartedbin and gparted_polkit (optional)
    299260        </seg>
    300261        <seg>
     
    338299      </varlistentry>
    339300
     301      <varlistentry id="gparted_polkit">
     302        <term><command>gparted_polkit</command></term>
     303        <listitem>
     304          <para>
     305            is an optional script which can be used to run gparted with polkit,
     306            from a menu.
     307          </para>
     308          <indexterm zone="gparted gparted_polkit">
     309            <primary sortas="b-gparted_polkit">gparted_polkit</primary>
     310          </indexterm>
     311        </listitem>
     312      </varlistentry>
     313
    340314    </variablelist>
    341315
Note: See TracChangeset for help on using the changeset viewer.