Changeset 846eed7 in clfs-sysroot


Ignore:
Timestamp:
Sep 15, 2007, 11:23:44 AM (17 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
ed3a5a4
Parents:
e7585ab
Message:

Create entities for each uid and gid and reference those entities throught the book instead of using user names and group names. prevent util-linux-ng from changing programs groups.

Location:
BOOK
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootable/common/chowning.xml

    re7585ab r846eed7  
    2828  entire CLFS system.</para>
    2929
    30 <screen><userinput>chown -Rv 0:0 ${CLFS}</userinput></screen>
     30<screen><userinput>chown -Rv &uid-root;:&gid-root; ${CLFS}</userinput></screen>
    3131
    32   <para>The following files are not the be owned by
     32  <para>The following files are to be owned by the group
     33  <systemitem class="username">utmp</systemitem> not by
    3334  <systemitem class="username">root</systemitem>.</para>
    3435
    35 <screen><userinput>chgrp -v 13 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
     36<screen><userinput>chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
     37
     38  <para>During the installation of Util-Linux-ng configure was instructed not
     39  change the ownership of certain programs. Correct that ownership now that we
     40  have sufficent privileges.</para>
     41
     42<screen><userinput>chgrp -v &gid-tty; ${CLFS}/usr/bin/write
     43chmod g+s ${CLFS}/usr/bin/write</userinput></screen>
    3644
    3745  <para>The following device nodes need to be created for the system to
  • BOOK/final-preps/creatingfiles.xml

    re7585ab r846eed7  
    4444
    4545<screen><userinput>cat &gt; ${CLFS}/etc/passwd &lt;&lt; "EOF"
    46 <literal>root::0:0:root:/root:/bin/bash</literal>
     46<literal>root::&uid-root;:&gid-root;:root:/root:/bin/bash</literal>
    4747EOF</userinput></screen>
    4848
     
    5656
    5757    <varlistentry>
    58       <term><literal>bin:x:1:1:bin:/bin:/bin/false</literal></term>
     58      <term><literal>bin:x:&uid-bin;:&gid-bin;:bin:/bin:/bin/false</literal></term>
    5959      <listitem>
    6060        <para>Can be useful for compatibility with legacy applications.</para>
     
    6262    </varlistentry>
    6363    <varlistentry>
    64       <term><literal>daemon:x:2:6:daemon:/sbin:/bin/false</literal></term>
     64      <term><literal>daemon:x:&uid-daemon;:&uid-daemon;:daemon:/sbin:/bin/false</literal></term>
    6565      <listitem>
    6666        <para>It is often recommended to use an unprivileged User ID/Group ID
     
    6969    </varlistentry>
    7070    <varlistentry>
    71       <term><literal>adm:x:3:16:adm:/var/adm:/bin/false</literal></term>
     71      <term><literal>adm:x:&uid-adm;:&gid-adm;:adm:/var/adm:/bin/false</literal></term>
    7272      <listitem>
    7373        <para>Was used for programs that performed administrative tasks.</para>
     
    7575    </varlistentry>
    7676    <varlistentry>
    77       <term><literal>lp:x:10:9:lp:/var/spool/lp:/bin/false</literal></term>
     77      <term><literal>lp:x:&uid-lp;:&gid-lp;:lp:/var/spool/lp:/bin/false</literal></term>
    7878      <listitem>
    7979        <para>Used by programs for printing.</para>
     
    8181    </varlistentry>
    8282    <varlistentry>
    83       <term><literal>mail:x:30:30:mail:/var/mail:/bin/false</literal></term>
     83      <term><literal>mail:x:&uid-mail;:&gid-mail;:mail:/var/mail:/bin/false</literal></term>
    8484      <listitem>
    8585        <para>Often used by email programs.</para>
     
    8787    </varlistentry>
    8888    <varlistentry>
    89       <term><literal>news:x:31:31:news:/var/spool/news:/bin/false</literal></term>
     89      <term><literal>news:x:&uid-news;:&gid-news;:news:/var/spool/news:/bin/false</literal></term>
    9090      <listitem>
    9191        <para>Often used for network news servers.</para>
     
    9393    </varlistentry>
    9494    <varlistentry>
    95       <term><literal>uucp:x:32:32:uucp:/var/spool/uucp:/bin/false</literal></term>
     95      <term><literal>uucp:x:&uid-uucp;:&gid-uucp;:uucp:/var/spool/uucp:/bin/false</literal></term>
    9696      <listitem>
    9797        <para>Often used for Unix-to-Unix Copy of files from one server to the next</para>
     
    9999    </varlistentry>
    100100    <varlistentry>
    101       <term><literal>operator:x:50:0:operator:/root:/bin/bash</literal></term>
     101      <term><literal>operator:x:&uid-operator;:&gid-root;:operator:/root:/bin/bash</literal></term>
    102102      <listitem>
    103103        <para>Often used to allow system operators to access the system.</para>
     
    105105    </varlistentry>
    106106    <varlistentry>
    107       <term><literal>postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false</literal></term>
     107      <term><literal>postmaster:x:&uid-postmaster;:&gid-mail;:postmaster:/var/spool/mail:/bin/false</literal></term>
    108108      <listitem>
    109109        <para>Generally used as an account that receives all the information of troubles with the mail server.</para>
     
    111111    </varlistentry>
    112112    <varlistentry>
    113       <term><literal>nobody:x:65534:65534:nobody:/:/bin/false</literal></term>
     113      <term><literal>nobody:x:&uid-nobody;:&gid-nobody;:nobody:/:/bin/false</literal></term>
    114114      <listitem>
    115115        <para>Used by NFS.</para>
     
    122122
    123123<screen><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
    124 <literal>root:x:0:
    125 bin:x:1:
    126 sys:x:2:
    127 kmem:x:3:
    128 tty:x:4:
    129 tape:x:5:
    130 daemon:x:6:
    131 floppy:x:7:
    132 disk:x:8:
    133 lp:x:9:
    134 dialout:x:10:
    135 audio:x:11:
    136 video:x:12:
    137 utmp:x:13:
    138 usb:x:14:
    139 cdrom:x:15:</literal>
     124<literal>root:x:&gid-root;:
     125bin:x:&gid-bin;:
     126sys:x:&gid-sys;:
     127kmem:x:&gid-kmem;:
     128tty:x:&gid-tty;:
     129tape:x:&gid-tape;:
     130daemon:x:&gid-daemon;:
     131floppy:x:&gid-floppy;:
     132disk:x:&gid-disk;:
     133lp:x:&gid-lp;:
     134dialout:x:&gid-dialout;:
     135audio:x:&gid-audio;:
     136video:x:&gid-video;:
     137utmp:x:&gid-utmp;:
     138usb:x:&gid-usb;:
     139cdrom:x:&gid-cdrom;:</literal>
    140140EOF</userinput></screen>
    141141
     
    145145
    146146    <varlistentry>
    147       <term><literal>adm:x:16:root,adm,daemon</literal></term>
     147      <term><literal>adm:x:&gid-adm;16:root,adm,daemon</literal></term>
    148148      <listitem>
    149149        <para>All users in this group are allowed to do administrative tasks</para>
     
    151151    </varlistentry>
    152152    <varlistentry>
    153       <term><literal>console:x:17:</literal></term>
     153      <term><literal>console:x:&gid-console;:</literal></term>
    154154      <listitem>
    155155        <para>This group has direct access to the console</para>
     
    157157    </varlistentry>
    158158    <varlistentry>
    159       <term><literal>cdrw:x:18:</literal></term>
     159      <term><literal>cdrw:x:&gid-cdrw;:</literal></term>
    160160      <listitem>
    161161        <para>This group is allowed to use the CDRW drive</para>
     
    163163    </varlistentry>
    164164    <varlistentry>
    165       <term><literal>mail:x:30:mail</literal></term>
     165      <term><literal>mail:x:&gid-mail;:mail</literal></term>
    166166      <listitem>
    167167        <para>Used by MTAs (Mail Transport Agents)</para>
     
    169169    </varlistentry>
    170170    <varlistentry>
    171       <term><literal>news:x:31:news</literal></term>
     171      <term><literal>news:x:&gid-news;:news</literal></term>
    172172      <listitem>
    173173        <para>Used by Network News Servers</para>
     
    175175    </varlistentry>
    176176    <varlistentry>
    177       <term><literal>uucp:x:32:uucp</literal></term>
     177      <term><literal>uucp:x:&gid-uucp;:uucp</literal></term>
    178178      <listitem>
    179179        <para>Used by the Unix-to-Unix copy users</para>
     
    181181    </varlistentry>
    182182    <varlistentry>
    183       <term><literal>users:x:100:</literal></term>
     183      <term><literal>users:&gid-users;:100:</literal></term>
    184184      <listitem>
    185185        <para>The default GID used by shadow for new users</para>
     
    187187    </varlistentry>
    188188    <varlistentry>
    189       <term><literal>nogroup:x:65533:</literal></term>
     189      <term><literal>nogroup:&gid-nogroup;:65533:</literal></term>
    190190      <listitem>
    191191        <para>This is a default group used by some programs that do not
     
    194194    </varlistentry>
    195195    <varlistentry>
    196       <term><literal>nobody:x:65534:</literal></term>
     196      <term><literal>nobody:x:&gid-nobody;:</literal></term>
    197197      <listitem>
    198198        <para>This is used by NFS</para>
  • BOOK/final-system/common/util-linux-ng.xml

    re7585ab r846eed7  
    4747
    4848<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    49     --enable-partx --disable-wall --enable-write</userinput></screen>
     49    --enable-partx --disable-wall --enable-write \
     50    --disable-makeinstall-chown</userinput></screen>
    5051
    5152    <variablelist os="c">
     
    7273          <para>This option allows the <command>write</command> program to be
    7374          installed.</para>
     75        </listitem>
     76      </varlistentry>
     77
     78      <varlistentry>
     79        <term><parameter>--disable-makeinstall-chown</parameter></term>
     80        <listitem>
     81          <para>This option prevents installed programs from having groups
     82          changed. They will be changed later in the book.</para>
    7483        </listitem>
    7584      </varlistentry>
  • BOOK/general.ent

    re7585ab r846eed7  
    4747<!ENTITY % patches-entities SYSTEM "patches.ent">
    4848%patches-entities;
     49
     50<!ENTITY % uid-gid-entities SYSTEM "users_groups.ent">
     51%uid-gid-entities;
  • BOOK/introduction/common/changelog.xml

    re7585ab r846eed7  
    3838
    3939    <listitem>
    40       <para>September 9, 2007</para>
    41       <itemizedlist>
     40      <para>September 15, 2007</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jciccone] - Create entities for each UID and GID and reference
     44          those entities throught the book instead of using user names and
     45          group names.</para>
     46        </listitem>
    4247        <listitem>
    4348          <para>[jciccone] - Updated Vim 7.1 fixes Patch to -3.</para>
Note: See TracChangeset for help on using the changeset viewer.