Changeset 8f1ae86 for BOOK/boot/common


Ignore:
Timestamp:
Aug 8, 2010, 5:43:25 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
1c83a65f, 54cc3d8
Parents:
34be04a6
Message:

Migrated the UID and GID Map from Sysroot.

Location:
BOOK/boot/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/changingowner.xml

    r34be04a6 r8f1ae86  
    1919  for ${CLFS} and its subdirectories by running this command:</para>
    2020
    21 <screen os="b"><userinput>chown -Rv root:root ${CLFS}</userinput></screen>
     21<screen os="b"><userinput>chown -Rv &uid-root;:&gid-root; ${CLFS}</userinput></screen>
     22
     23  <para>The following files are to be owned by the group
     24  <systemitem class="username">utmp</systemitem> not by
     25  <systemitem class="username">root</systemitem>.</para>
     26
     27<screen><userinput>chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
     28
    2229
    2330</sect1>
  • BOOK/boot/common/fstab.xml

    r34be04a6 r8f1ae86  
    3030proc           /proc        proc   defaults         0     0
    3131sysfs          /sys         sysfs  defaults         0     0
    32 devpts         /dev/pts     devpts gid=4,mode=620   0     0
     32devpts         /dev/pts     devpts gid=&gid-tty;,mode=620   0     0
    3333shm            /dev/shm     tmpfs  defaults         0     0
    3434# End /etc/fstab</literal>
  • BOOK/boot/common/pwdgroup.xml

    r34be04a6 r8f1ae86  
    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:x:&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;:&gid-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>operator:x:50:0:operator:/root:/bin/bash</literal></term>
     95      <term><literal>operator:x:&uid-operator;:&gid-root;:operator:/root:/bin/bash</literal></term>
    9696      <listitem>
    9797        <para>Often used to allow system operators to access the system</para>
     
    9999    </varlistentry>
    100100    <varlistentry>
    101       <term><literal>postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false</literal></term>
     101      <term><literal>postmaster:x:&uid-postmaster;:&gid-mail;:postmaster:/var/spool/mail:/bin/false</literal></term>
    102102      <listitem>
    103103        <para>Generally used as an account that receives all the information of troubles with the mail server</para>
     
    105105    </varlistentry>
    106106    <varlistentry>
    107       <term><literal>nobody:x:65534:65534:nobody:/:/bin/false</literal></term>
     107      <term><literal>nobody:x:&uid-nobody;:&gid-nobody;:nobody:/:/bin/false</literal></term>
    108108      <listitem>
    109109        <para>Used by NFS</para>
     
    117117<screen><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
    118118<literal>root:x:0:
    119 bin:x:1:
    120 sys:x:2:
    121 kmem:x:3:
    122 tty:x:4:
    123 tape:x:5:
    124 daemon:x:6:
    125 floppy:x:7:
    126 disk:x:8:
    127 lp:x:9:
    128 dialout:x:10:
    129 audio:x:11:
    130 video:x:12:
    131 utmp:x:13:
    132 usb:x:14:
    133 cdrom:x:15:</literal>
     119bin:x:&gid-bin;:
     120sys:x:&gid-sys;:
     121kmem:x:&gid-kmem;:
     122tty:x:&gid-tty;:
     123tape:x:&gid-tape;:
     124daemon:x:&gid-daemon;:
     125floppy:x:&gid-floppy;:
     126disk:x:&gid-disk;:
     127lp:x:&gid-lp;:
     128dialout:x:&gid-dialout;:
     129audio:x:&gid-audio;:
     130video:x:&gid-video;:
     131utmp:x:&gid-utmp;:
     132usb:x:&gid-usb;:
     133cdrom:x:&gid-cdrom;:</literal>
    134134EOF</userinput></screen>
    135135
     
    139139
    140140    <varlistentry>
    141       <term><literal>adm:x:16:root,adm,daemon</literal></term>
     141      <term><literal>adm:x:&gid-adm;:root,adm,daemon</literal></term>
    142142      <listitem>
    143143        <para>All users in this group are allowed to do administrative tasks</para>
     
    145145    </varlistentry>
    146146    <varlistentry>
    147       <term><literal>console:x:17:</literal></term>
     147      <term><literal>console:x:&gid-console;:</literal></term>
    148148      <listitem>
    149149        <para>This group has direct access to the console</para>
     
    151151    </varlistentry>
    152152    <varlistentry>
    153       <term><literal>cdrw:x:18:</literal></term>
     153      <term><literal>cdrw:x:&gid-cdrw;:</literal></term>
    154154      <listitem>
    155155        <para>This group is allowed to use the CDRW drive</para>
     
    157157    </varlistentry>
    158158    <varlistentry>
    159       <term><literal>mail:x:30:mail</literal></term>
     159      <term><literal>mail:x:&gid-mail;:mail</literal></term>
    160160      <listitem>
    161161        <para>Used by MTAs (Mail Transport Agents)</para>
     
    163163    </varlistentry>
    164164    <varlistentry>
    165       <term><literal>news:x:31:news</literal></term>
     165      <term><literal>news:x:&gid-news;:news</literal></term>
    166166      <listitem>
    167167        <para>Used by Network News Servers</para>
     
    169169    </varlistentry>
    170170    <varlistentry>
    171       <term><literal>users:x:1000:</literal></term>
     171      <term><literal>users:x:&gid-users;:</literal></term>
    172172      <listitem>
    173173        <para>The default GID used by shadow for new users</para>
     
    175175    </varlistentry>
    176176    <varlistentry>
    177       <term><literal>nogroup:x:65533:</literal></term>
     177      <term><literal>nogroup:x:&gid-nogroup;:</literal></term>
    178178      <listitem>
    179179        <para>This is a default group used by some programs that do not
     
    182182    </varlistentry>
    183183    <varlistentry>
    184       <term><literal>nobody:x:65534:</literal></term>
     184      <term><literal>nobody:x:&gid-nobody;:</literal></term>
    185185      <listitem>
    186186        <para>This is used by NFS</para>
Note: See TracChangeset for help on using the changeset viewer.