Index: general.ent
===================================================================
--- general.ent	(revision 6af5a27c49ce7c327bab3bed136ed178553a03ce)
+++ general.ent	(revision 7a5b2e772ad4bba34dddaef65374e129d5e7238c)
@@ -161,4 +161,5 @@
 <!ENTITY polkit-version               "0.112">
 <!ENTITY shadow-version               "4.1.5.1">
+<!ENTITY ssh-askpass-version          "&openssh-version;">
 <!ENTITY stunnel-version              "4.56">
 <!ENTITY sudo-version                 "1.8.8">
Index: introduction/welcome/changelog.xml
===================================================================
--- introduction/welcome/changelog.xml	(revision 6af5a27c49ce7c327bab3bed136ed178553a03ce)
+++ introduction/welcome/changelog.xml	(revision 7a5b2e772ad4bba34dddaef65374e129d5e7238c)
@@ -48,4 +48,11 @@
       <itemizedlist>
         <listitem>
+          <para>[fernando] - New package: ssh-askpass-6.4p1. Remove instructions
+          to build it and rephrase pkexec and other parts of Gparted-0.17.0.
+          Hopefully fix
+          <ulink url="&blfs-ticket-root;4524">#4524</ulink> and
+          <ulink url="&blfs-ticket-root;4454">#4454</ulink>.</para>
+        </listitem>
+        <listitem>
           <para>[fernando] - Update to lxappearance-0.5.5. Fixes
           <ulink url="&blfs-ticket-root;4537">#4537</ulink>.</para>
Index: postlfs/security/security.xml
===================================================================
--- postlfs/security/security.xml	(revision 6af5a27c49ce7c327bab3bed136ed178553a03ce)
+++ postlfs/security/security.xml	(revision 7a5b2e772ad4bba34dddaef65374e129d5e7238c)
@@ -63,4 +63,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="polkit.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="shadow.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ssh-askpass.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="stunnel.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sudo.xml"/>
Index: postlfs/security/ssh-askpass.xml
===================================================================
--- postlfs/security/ssh-askpass.xml	(revision 7a5b2e772ad4bba34dddaef65374e129d5e7238c)
+++ postlfs/security/ssh-askpass.xml	(revision 7a5b2e772ad4bba34dddaef65374e129d5e7238c)
@@ -0,0 +1,203 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+
+  <!ENTITY ssh-askpass-download-http
+    "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-&ssh-askpass-version;.tar.gz">
+  <!ENTITY ssh-askpass-download-ftp
+    "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-&ssh-askpass-version;.tar.gz">
+  <!ENTITY ssh-askpass-md5sum        "a62b88b884df0b09b8a8c5789ac9e51b">
+  <!ENTITY ssh-askpass-size          "1.2 MB">
+  <!ENTITY ssh-askpass-buildsize     "6.0 MB">
+  <!ENTITY ssh-askpass-time          "Less than 0.1 SBU">
+]>
+
+<sect1 id="ssh-askpass" xreflabel="ssh-askpass-&ssh-askpass-version;">
+  <?dbhtml filename="openssh.html"?>
+
+  <sect1info>
+    <othername>$LastChangedBy: fernando $</othername>
+    <date>$Date: 2013-11-08 18:23:05 -0300 (Fri, 08 Nov 2013) $</date>
+  </sect1info>
+
+  <title>ssh-askpass-&ssh-askpass-version;</title>
+
+  <indexterm zone="ssh-askpass">
+    <primary sortas="a-ssh-askpass">ssh-askpass</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title>Introduction to ssh-askpass</title>
+
+  <para>
+    The <application>ssh-askpass</application> is a generic executable name for
+    many packages, with similar names, that provide a interactive X service to
+    grab password for packages requiring administrative privileges to be run.
+    It prompts the user with a window box where the necessary password can be
+    inserted. Here, we choose Damien Miller's package distributed in the
+    <application>OpenSSH</application> tarball.</para>
+
+  &lfs74_checked;
+
+    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>
+          Download (HTTP): <ulink url="&ssh-askpass-download-http;"/>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download (FTP): <ulink url="&ssh-askpass-download-ftp;"/>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download MD5 sum: &ssh-askpass-md5sum;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download size: &ssh-askpass-size;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated disk space required: &ssh-askpass-buildsize;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated build time: &ssh-askpass-time;
+        </para>
+      </listitem>
+    </itemizedlist>
+
+    <bridgehead renderas="sect3">ssh-askpass Dependencies</bridgehead>
+
+    <bridgehead renderas="sect4">Required</bridgehead>
+    <para role="required">
+    <xref linkend="gtk2"/>,
+    <xref linkend="openssh"/>,
+    <xref linkend="sudo"/> (runtime)
+    <xref linkend="x-lib"/>, and
+    <xref linkend="x-window-system"/> (runtime)</para>
+
+    <para condition="html" role="usernotes">
+        User Notes: <ulink url='&blfs-wiki;/ssh-askpass'/>
+    </para>
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of ssh-askpass</title>
+
+    <para>
+      Install <application>ssh-askpass</application> by running the following
+      commands:
+    </para>
+
+<screen><userinput>cd contrib &amp;&amp;
+make gnome-ssh-askpass2</userinput></screen>
+
+    <para>
+      Now, as the <systemitem class="username">root</systemitem> user:
+    </para>
+
+<screen role="root"><userinput>install -v -d -m755                  /usr/lib/openssh/contrib     &amp;&amp;
+install -v -m755  gnome-ssh-askpass2 /usr/lib/openssh/contrib     &amp;&amp;
+ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass</userinput></screen>
+
+    <para>
+     The use of /usr/lib/openssh/contrib and a symlink are justified by the
+     eventual necessity of a different program for that service.
+    </para>
+
+  </sect2>
+
+  <sect2 role="configuration">
+    <title>Configuring ssh-askpass</title>
+
+        <para>
+          Now, as the <systemitem class="username">root</systemitem> user:
+        </para>
+
+    <sect3 id="ssh-askpass-config">
+      <title>Config File</title>
+
+        <para>
+          As the <systemitem class="username">root</systemitem> user, configure
+          <xref linkend="sudo"/> to use <application>ssh-askpass</application>:
+        </para>
+
+<screen role="root"><userinput>cat &gt;&gt; /etc/sudo.conf &lt;&lt; "EOF" &amp;&amp;
+<literal># Path to askpass helper program
+Path askpass /usr/lib/openssh/ssh-askpass</literal>
+EOF
+chmod -v 0644 /etc/sudo.conf</userinput></screen>
+
+        <para>
+          If a given &lt;application&gt; requires administrative privileges, use
+          <command>sudo -A &lt;application&gt;</command> from a x-terminal, from a Window Manager menu and/or replace "Exec=&lt;application&gt; ..." by "Exec=sudo -A &lt;application&gt;
+          ..." in the &lt;application&gt;.desktop file.</para>
+
+    </sect3>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title>Contents</title>
+
+    <segmentedlist>
+      <segtitle>Installed Programs</segtitle>
+      <segtitle>Installed Libraries</segtitle>
+      <segtitle>Installed Directories</segtitle>
+
+      <seglistitem>
+        <seg>
+          ssh-askpass (symlink to gnome-ssh-askpass2) and gnome-ssh-askpass2
+        </seg>
+        <seg>
+          None
+        </seg>
+        <seg>
+          /usr/lib/openssh/contrib
+        </seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="gnome-ssh-askpass2-prog">
+        <term><command>gnome-ssh-askpass2</command></term>
+        <listitem>
+          <para>
+            is the program helper agent used to grab a password.
+          </para>
+          <indexterm zone="ssh-askpass gnome-ssh-askpass2-prog">
+            <primary sortas="b-gnome-ssh-askpass2">scp</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="ssh-askpass-prog">
+        <term><command>ssh-askpass</command></term>
+        <listitem>
+          <para>
+            is a symlink to the program helper agent.
+          </para>
+          <indexterm zone="ssh-askpass ssh-askpass-prog">
+            <primary sortas="b-ssh-askpass">scp</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>
Index: xsoft/other/gparted.xml
===================================================================
--- xsoft/other/gparted.xml	(revision 6af5a27c49ce7c327bab3bed136ed178553a03ce)
+++ xsoft/other/gparted.xml	(revision 7a5b2e772ad4bba34dddaef65374e129d5e7238c)
@@ -165,8 +165,6 @@
       Other solution is to use <application>pkexec</application>, from
       <xref linkend="polkit"/>, but some configuration is necessary.
-      Another simple solution is the <application>GTK+</application> based
-      <application>ssh-askpass</application> (does not need
-      <application>GNOME</application>). Below, we describe these two
-      alternatives: "ssh-askpass" and "pkexec".
+      Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
+      describe these two alternatives: "ssh-askpass" and "pkexec".
     </para>
 
@@ -174,44 +172,15 @@
       <title>ssh-askpass</title>
         <para>
-          To optionally use <application>ssh-askpass</application>, you need
-          <xref linkend="sudo"/> and <xref linkend="openssh"/> to be installed.
-          Uncompress the <xref linkend="openssh"/> tarball and, inside the
-          source directory, install <application>ssh-askpass</application> by
-          running the following commands:
-        </para>
-
-<screen><userinput>cd contrib &amp;&amp;
-make gnome-ssh-askpass2</userinput></screen>
-
-        <para>
-          Now, as the <systemitem class="username">root</systemitem> user:
-        </para>
-
-<screen role="root"><userinput>install -v -d -m755                  /usr/lib/openssh/contrib     &amp;&amp;
-install -v -m755  gnome-ssh-askpass2 /usr/lib/openssh/contrib     &amp;&amp;
-ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass</userinput></screen>
-
-        <para>
-          Still as the <systemitem class="username">root</systemitem> user,
-          configure <xref linkend="gparted"/> and <xref linkend="sudo"/> to
-          use <application>ssh-askpass</application>:
+          To optionally use <xref linkend="ssh-askpass"/> if it is installed in
+          your system, run the following commands as the
+          <systemitem class="username">root</systemitem> user:
         </para>
 
 <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
-sed -i 's/Exec=/Exec=sudo -A /'               /usr/share/applications/gparted.desktop      &amp;&amp;
-
-cat &gt;&gt; /etc/sudo.conf &lt;&lt; "EOF" &amp;&amp;
-# Path to askpass helper program
-Path askpass /usr/lib/openssh/ssh-askpass
-EOF
-chmod -v 0644 /etc/sudo.conf</userinput></screen>
+sed -i 's/Exec=/Exec=sudo -A /'               /usr/share/applications/gparted.desktop      &amp;&amp;</userinput></screen>
 
         <para>
          Now, clicking in the menu item for Gparted, a dialog appears in the
-         screen, asking for the administrator password. Any graphical program
-         requiring root privileges can be run using "sudo -A &lt;program&gt;",
-         e.g. from a terminal, from a desktop launcher, or including it in the
-         desktop file.
-        </para>
+         screen, asking for the administrator password.</para>
 
     </sect3>
@@ -221,5 +190,4 @@
         <para>
           To optionally use <application>pkexec</application>, you need
-          <xref linkend="which"/> (for the script),
           <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/>, and
           <xref linkend="consolekit"/> installed with support to
@@ -236,10 +204,7 @@
 
 cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
-#!/bin/bash
-if [ $(which pkexec) ]; then
-    pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
-else
-    /usr/sbin/gparted "$@"
-fi
+<literal>#!/bin/bash
+
+pkexec /usr/sbin/gparted $@</literal>
 EOF
 chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
@@ -251,6 +216,6 @@
         </para>
 
-<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy &lt;&lt; "EOF"
-&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
+<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;!DOCTYPE policyconfig PUBLIC
  "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
@@ -270,15 +235,11 @@
   &lt;/action&gt;
 
-&lt;/policyconfig&gt;
+&lt;/policyconfig&gt;</literal>
 EOF
-chmod -v 0644 /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy</userinput></screen>
+chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
 
         <para>
          Now, clicking in the menu item for Gparted, a dialog appears in the
-         screen, asking for the administrator password. Any graphical program
-         requiring root privileges can be run using "pkexec &lt;program&gt;",
-         e.g. from a terminal, from a desktop launcher, or including it in the
-         desktop file.
-        </para>
+         screen, asking for the administrator password.</para>
 
     </sect3>
@@ -296,5 +257,5 @@
       <seglistitem>
         <seg>
-          gparted and gpartedbin
+          gparted, gpartedbin and gparted_polkit (optional)
         </seg>
         <seg>
@@ -338,4 +299,17 @@
       </varlistentry>
 
+      <varlistentry id="gparted_polkit">
+        <term><command>gparted_polkit</command></term>
+        <listitem>
+          <para>
+            is an optional script which can be used to run gparted with polkit,
+            from a menu.
+          </para>
+          <indexterm zone="gparted gparted_polkit">
+            <primary sortas="b-gparted_polkit">gparted_polkit</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
     </variablelist>
 
