[git] gnupg-doc - branch, master, updated. 81797afe93a8130ae7c9db861696a8d6d8463bd5

by Justus Winter cvs at cvs.gnupg.org
Fri Apr 1 17:41:24 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, master has been updated
       via  81797afe93a8130ae7c9db861696a8d6d8463bd5 (commit)
      from  e644e6a19bac81bbc8bfb03a204123ea2bcafd69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 81797afe93a8130ae7c9db861696a8d6d8463bd5
Author: Justus Winter <justus at gnupg.org>
Date:   Fri Apr 1 17:37:56 2016 +0200

    card-howto: Add missing files.
    
    --
    GnuPG-bug-id: 1767
    Signed-off-by: Justus Winter <justus at gnupg.org>

diff --git a/misc/howtos.gnupg.org/card-howto/en/ch02s03.html b/misc/howtos.gnupg.org/card-howto/en/ch02s03.html
index d95cfc9..7feaf68 100644
--- a/misc/howtos.gnupg.org/card-howto/en/ch02s03.html
+++ b/misc/howtos.gnupg.org/card-howto/en/ch02s03.html
@@ -57,12 +57,12 @@
             <ul type="disc">
               <li>
                 <p>
-                  <a href="http://www.fsfe.org/en/content/download/17665/125518/file/gnupg-ccid.rules" target="_top">gnupg-ccid.rules</a>
+                  <a href="gnupg-ccid.rules" target="_top">gnupg-ccid.rules</a>
                 </p>
               </li>
               <li>
                 <p>
-                  <a href="" target="_top">gnupg-ccid</a>
+                  <a href="gnupg-ccid" target="_top">gnupg-ccid</a>
                 </p>
               </li>
             </ul>
diff --git a/misc/howtos.gnupg.org/card-howto/en/gnupg-ccid b/misc/howtos.gnupg.org/card-howto/en/gnupg-ccid
new file mode 100644
index 0000000..be06bec
--- /dev/null
+++ b/misc/howtos.gnupg.org/card-howto/en/gnupg-ccid
@@ -0,0 +1,30 @@
+#!/bin/bash
+#
+# taken from libgphoto2
+#
+# Sets up newly plugged in card reader so that only members of the
+# group can access it
+
+GROUP=scard
+
+# can access it from user space. (Replace scard with the name of the
+# group you want to have access to the card reader.)
+#
+# Note that for this script to work, you'll need all of the following:
+# a) a line in the file /etc/hotplug/gnupg-ccid.usermap that corresponds
+#    to the card reader you are using.
+# b) a group "scard" where all users allowed access to the
+#    card reader are listed
+# c) a Linux kernel supporting hotplug and usbdevfs
+# d) the hotplug package (http://linux-hotplug.sourceforge.net/)
+#
+# In the usermap file, the first field "usb module" should be named
+# "gnupg-ccid" like this script.
+#
+
+if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
+then
+    chmod o-rwx "${DEVICE}"
+    chgrp "${GROUP}" "${DEVICE}"
+    chmod g+rw "${DEVICE}"
+fi
diff --git a/misc/howtos.gnupg.org/card-howto/en/gnupg-ccid.rules b/misc/howtos.gnupg.org/card-howto/en/gnupg-ccid.rules
new file mode 100644
index 0000000..a04c022
--- /dev/null
+++ b/misc/howtos.gnupg.org/card-howto/en/gnupg-ccid.rules
@@ -0,0 +1,5 @@
+# GPG SmartCard Reader Support
+#
+
+ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="4e6/e003/*", RUN+="/etc/udev/scripts/gnupg-ccid"
+ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="4e6/5115/*", RUN+="/etc/udev/scripts/gnupg-ccid"
diff --git a/misc/howtos.gnupg.org/card-howto/en/smartcard-howto-single.html b/misc/howtos.gnupg.org/card-howto/en/smartcard-howto-single.html
index 7024fb5..dea3cde 100644
--- a/misc/howtos.gnupg.org/card-howto/en/smartcard-howto-single.html
+++ b/misc/howtos.gnupg.org/card-howto/en/smartcard-howto-single.html
@@ -51,7 +51,7 @@
                   edges a bit.  This is in particular important so
                   that you are able to remove the card using the tiny
                   blue lever.
-                </p></div></div></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2503642"></a>2.3. Installation of Card Reader</h2></div></div></div><p>Two standard protocols are used by GnuPG to access card readers. </p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="id2503652"></a>2.3.1. CCID (Chip Card Interface Description)</h3></div></div></div><p>The driver to access CCID cards is built into GnuPG.  This driver will be used by default.</p><p>To use this driver follow the instructions and make sure you have sufficient permission (see below) to access the USB device for reading and writing.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h4 class="title"><a id="id2503669"></a>With udev (preferred installation)</h4></div></div></div><p>First of all, you will need to download two files for udev and copy them to the udev configuration directories, in order to let it identify your card reader:</p><div class="itemizedlist"><ul type="disc"><li><p><a href="http://www.fsfe.org/en/content/download/17665/125518/file/gnupg-ccid.rules" target="_top">gnupg-ccid.rules</a></p></li><li><p><a href="" target="_top">gnupg-ccid</a></p></li></ul></div><p>Now, open a terminal and become root (you will be asked for your root password):</p><pre class="screen">
+                </p></div></div></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2503642"></a>2.3. Installation of Card Reader</h2></div></div></div><p>Two standard protocols are used by GnuPG to access card readers. </p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="id2503652"></a>2.3.1. CCID (Chip Card Interface Description)</h3></div></div></div><p>The driver to access CCID cards is built into GnuPG.  This driver will be used by default.</p><p>To use this driver follow the instructions and make sure you have sufficient permission (see below) to access the USB device for reading and writing.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h4 class="title"><a id="id2503669"></a>With udev (preferred installation)</h4></div></div></div><p>First of all, you will need to download two files for udev and copy them to the udev configuration directories, in order to let it identify your card reader:</p><div class="itemizedlist"><ul type="disc"><li><p><a href="gnupg-ccid.rules" target="_top">gnupg-ccid.rules</a></p></li><li><p><a href="gnupg-ccid" target="_top">gnupg-ccid</a></p></li></ul></div><p>Now, open a terminal and become root (you will be asked for your root password):</p><pre class="screen">
 archi at foobar:~ > su -
                 </pre><p>On Ubuntu systems, you should run (and then you will be asked for the user password):</p><pre class="screen">
 archi at foobar:~ > sudo su -

-----------------------------------------------------------------------

Summary of changes:
 misc/howtos.gnupg.org/card-howto/en/ch02s03.html   |  4 +--
 misc/howtos.gnupg.org/card-howto/en/gnupg-ccid     | 30 ++++++++++++++++++++++
 .../card-howto/en/gnupg-ccid.rules                 |  5 ++++
 .../card-howto/en/smartcard-howto-single.html      |  2 +-
 4 files changed, 38 insertions(+), 3 deletions(-)
 create mode 100644 misc/howtos.gnupg.org/card-howto/en/gnupg-ccid
 create mode 100644 misc/howtos.gnupg.org/card-howto/en/gnupg-ccid.rules


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list