[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, systemd, updated. clfs-2.1.0-741-gc3b54fa

git git at cross-lfs.org
Mon Apr 14 20:39:58 PDT 2014


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 "Cross-LFS Book".

The branch, systemd has been updated
       via  c3b54facdc7c87ff3d21fa0dd83a0560b1fff0d3 (commit)
      from  2b54a63ce1abe9a771adfd1d319ddcf3a0b3e261 (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 c3b54facdc7c87ff3d21fa0dd83a0560b1fff0d3
Author: Chris Staub <chris at beaker67.com>
Date:   Mon Apr 14 23:39:49 2014 -0400

    Cleanup of passwd/group creation

diff --git a/BOOK/boot/common/pwdgroup.xml b/BOOK/boot/common/pwdgroup.xml
index 8664120..95428bd 100644
--- a/BOOK/boot/common/pwdgroup.xml
+++ b/BOOK/boot/common/pwdgroup.xml
@@ -28,8 +28,8 @@
 
 <screen><userinput>cat > ${CLFS}/etc/passwd << "EOF"
 <literal>root::&uid-root;:&gid-root;:root:/root:/bin/bash</literal>
-<literal>bin:x:&uid-bin;:&gid-bin;:/dev/null:/bin/false</literal>
-<literal>daemon:x:&uid-daemon;:&gid-daemon;:/dev/null:/bin/false</literal>
+<literal>bin:x:&uid-bin;:&gid-bin;:/bin:/bin/false</literal>
+<literal>daemon:x:&uid-daemon;:&gid-daemon;:/sbin:/bin/false</literal>
 <literal>messagebus:x:&uid-messagebus;:&gid-messagebus;:D-Bus Message Daemon User:/dev/null:/bin/false</literal>
 <literal>nobody:x:&uid-nobody;:&gid-nogroup;:Unprivileged User:/dev/null:/bin/false</literal>
 EOF</userinput></screen>
@@ -43,19 +43,6 @@ EOF</userinput></screen>
     <title>Additional users you may want to add if not already included:</title>
 
     <varlistentry>
-      <term><literal>bin:x:&uid-bin;:&gid-bin;:bin:/bin:/bin/false</literal></term>
-      <listitem>
-        <para>Can be useful for compatibility with legacy applications.</para>
-      </listitem>
-    </varlistentry>
-    <varlistentry>
-      <term><literal>daemon:x:&uid-daemon;:&gid-daemon;:daemon:/sbin:/bin/false</literal></term>
-      <listitem>
-        <para>It is often recommended to use an unprivileged User ID/Group ID
-        for daemons to run as, in order to limit their access to the system.</para>
-      </listitem>
-    </varlistentry>
-    <varlistentry>
       <term><literal>adm:x:&uid-adm;:&gid-adm;:adm:/var/adm:/bin/false</literal></term>
       <listitem>
         <para>Was used for programs that performed administrative tasks.</para>
@@ -91,12 +78,6 @@ EOF</userinput></screen>
         <para>Generally used as an account that receives all the information of troubles with the mail server</para>
       </listitem>
     </varlistentry>
-    <varlistentry>
-      <term><literal>nobody:x:&uid-nobody;:&gid-nogroup;:nobody:/:/bin/false</literal></term>
-      <listitem>
-        <para>Used by NFS</para>
-      </listitem>
-    </varlistentry>
   </variablelist>
 
   <para>Create the <filename>${CLFS}/etc/group</filename> file by running
@@ -132,12 +113,6 @@ EOF</userinput></screen>
     <title>Additional groups you may want to add if not already included:</title>
 
     <varlistentry>
-      <term><literal>adm:x:&gid-adm;:root,adm,daemon</literal></term>
-      <listitem>
-        <para>All users in this group are allowed to do administrative tasks</para>
-      </listitem>
-    </varlistentry>
-    <varlistentry>
       <term><literal>console:x:&gid-console;:</literal></term>
       <listitem>
         <para>This group has direct access to the console</para>
@@ -150,12 +125,6 @@ EOF</userinput></screen>
       </listitem>
     </varlistentry>
     <varlistentry>
-      <term><literal>mail:x:&gid-mail;:mail</literal></term>
-      <listitem>
-        <para>Used by MTAs (Mail Transport Agents)</para>
-      </listitem>
-    </varlistentry>
-    <varlistentry>
       <term><literal>news:x:&gid-news;:news</literal></term>
       <listitem>
         <para>Used by Network News Servers</para>
@@ -168,13 +137,6 @@ EOF</userinput></screen>
       </listitem>
     </varlistentry>
     <varlistentry>
-      <term><literal>nogroup:x:&gid-nogroup;:</literal></term>
-      <listitem>
-        <para>This is a default group used by some programs that do not
-        require a group</para>
-      </listitem>
-    </varlistentry>
-    <varlistentry>
       <term><literal>nobody:x:&gid-nogroup;:</literal></term>
       <listitem>
         <para>This is used by NFS</para>
diff --git a/BOOK/chroot/common/pwdgroup.xml b/BOOK/chroot/common/pwdgroup.xml
index 5456faa..10c783c 100644
--- a/BOOK/chroot/common/pwdgroup.xml
+++ b/BOOK/chroot/common/pwdgroup.xml
@@ -27,8 +27,8 @@
 
 <screen><userinput>cat > /etc/passwd << "EOF"
 <literal>root:x:&uid-root;:&gid-root;:root:/root:/bin/bash</literal>
-<literal>bin:x:&uid-bin;:&gid-bin;:/dev/null:/bin/false</literal>
-<literal>daemon:x:&uid-daemon;:&gid-daemon;:/dev/null:/bin/false</literal>
+<literal>bin:x:&uid-bin;:&gid-bin;:/bin:/bin/false</literal>
+<literal>daemon:x:&uid-daemon;:&gid-daemon;:/sbin:/bin/false</literal>
 <literal>messagebus:x:&uid-messagebus;:&gid-messagebus;:D-Bus Message Daemon User:/dev/null:/bin/false</literal>
 <literal>nobody:x:&uid-nobody;:&gid-nogroup;:Unprivileged User:/dev/null:/bin/false</literal>
 EOF</userinput></screen>

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

Summary of changes:
 BOOK/boot/common/pwdgroup.xml   |   42 +-------------------------------------
 BOOK/chroot/common/pwdgroup.xml |    4 +-
 2 files changed, 4 insertions(+), 42 deletions(-)


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list