Changeset 65018363


Ignore:
Timestamp:
Jun 28, 2006, 2:08:43 PM (18 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3826e26
Parents:
1246ca4
Message:

Modified the creation the /etc/passwd and /etc/group, and added some temp. placeholder text for additional users and groups

Location:
BOOK
Files:
2 edited

Legend:

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

    r1246ca4 r65018363  
    4444
    4545<screen><userinput>cat &gt; ${LFS}/etc/passwd &lt;&lt; "EOF"
    46 <literal>root::0:0:root:/root:/bin/bash
     46<literal>root:x:0:0:root:/root:/bin/bash</literal>
     47EOF</userinput></screen>
     48
     49<para os="a">TO BE WRITTEN: more text describing additional users
    4750bin:x:1:1:bin:/bin:/bin/false
    48 daemon:x:2:2:daemon:/sbin:/bin/false
    49 adm:x:3:4:adm:/var/adm:/bin/false
    50 lp:x:10:18:lp:/var/spool/lp:/bin/false
     51daemon:x:2:6:daemon:/sbin:/bin/false
     52adm:x:3:16:adm:/var/adm:/bin/false
     53lp:x:10:9:lp:/var/spool/lp:/bin/false
    5154mail:x:30:30:mail:/var/spool/mail:/bin/false
    5255news:x:31:31:news:/var/spool/news:/bin/false
     
    5457operator:x:50:0:operator:/root:/bin/bash
    5558postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false
    56 nobody:x:65534:65534:nobody:/:/bin/false</literal>
    57 EOF</userinput></screen>
     59nobody:x:65534:65534:nobody:/:/bin/false</para>
    5860
    59   <para os="a">The actual password for <systemitem class="username">root</systemitem>
     61  <para os="b">The actual password for <systemitem class="username">root</systemitem>
    6062  (the <quote>x</quote> used here is just a placeholder) will be set
    6163  later.</para>
     
    6567
    6668<screen><userinput>cat &gt; ${LFS}/etc/group &lt;&lt; "EOF"
    67 <literal>root::0:root
    68 bin::1:root,bin,daemon
    69 daemon::2:root,bin,daemon
    70 sys::3:root,bin,adm
    71 adm::4:root,adm,daemon
    72 kmem::5:
    73 utmp::6:
    74 tty::10:
    75 video::11:root
    76 console::12:
    77 disk::13:root,adm
    78 floppy::14:root
    79 cdrom::15:
    80 cdrw::16:
    81 tape::17:root
    82 lp::18:lp
    83 usb::19:
    84 audio::20:
    85 dialout::21:root
     69<literal>root:x:0:
     70bin:x:1:
     71sys:x:2:
     72kmem:x:3:
     73tty:x:4:
     74tape:x:5:
     75daemon:x:6:
     76floppy:x:7:
     77disk:x:8:
     78lp:x:9:
     79dialout:x:10:
     80audio:x:11:
     81video:x:12:
     82utmp:x:13:
     83usb:x:14:
     84cdrom:x:15:</literal>
     85EOF</userinput></screen>
     86
     87<para os="c">TO BE WRITTEN: more text describing additional groups
     88adm::16:root,adm,daemon
     89console::17:
     90cdrw::18:
    8691mail::30:mail
    8792news::31:news
     
    8994users::100:
    9095nogroup::65533:
    91 nobody::65534:</literal>
    92 EOF</userinput></screen>
     96nobody::65534:</para>
    9397
    94   <para os="b">The created groups are not part of any standard&mdash;they are
     98  <para os="d">The created groups are not part of any standard&mdash;they are
    9599  groups decided on in part by the requirements of the Udev configuration
    96100  in the final system, and in part by common convention employed by a
     
    103107  group's name.</para>
    104108
    105   <para os="c">The <command>login</command>, <command>agetty</command>, and
     109  <para os="e">The <command>login</command>, <command>agetty</command>, and
    106110  <command>init</command> programs (and others) use a number of log
    107111  files to record information such as who was logged into the system and
  • BOOK/chroot/common/pwdgroup.xml

    r1246ca4 r65018363  
    4444
    4545<screen><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"
    46 <literal>root::0:0:root:/root:/bin/bash
    47 bin:x:1:1:bin:/bin:/bin/false
    48 daemon:x:2:2:daemon:/sbin:/bin/false
    49 adm:x:3:4:adm:/var/adm:/bin/false
    50 lp:x:10:18:lp:/var/spool/lp:/bin/false
    51 mail:x:30:30:mail:/var/spool/mail:/bin/false
    52 news:x:31:31:news:/var/spool/news:/bin/false
    53 uucp:x:32:32:uucp:/var/spool/uucp:/bin/false
    54 operator:x:50:0:operator:/root:/bin/bash
    55 postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false
    56 nobody:x:65534:65534:nobody:/:/bin/false</literal>
     46<literal>root:x:0:0:root:/root:/bin/bash</literal>
    5747EOF</userinput></screen>
    5848
     
    6151  xpointer="xpointer(//*[@os='a'])"/>
    6252
     53  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     54  href="../../boot/common/pwdgroup.xml"
     55  xpointer="xpointer(//*[@os='b'])"/>
     56
    6357  <para>Create the <filename>/etc/group</filename> file by running the
    6458  following command:</para>
    6559
    6660<screen><userinput>cat &gt; /etc/group &lt;&lt; "EOF"
    67 <literal>root::0:root
    68 bin::1:root,bin,daemon
    69 daemon::2:root,bin,daemon
    70 sys::3:root,bin,adm
    71 adm::4:root,adm,daemon
    72 kmem::5:
    73 utmp::6:
    74 tty::10:
    75 video::11:root
    76 console::12:
    77 disk::13:root,adm
    78 floppy::14:root
    79 cdrom::15:
    80 cdrw::16:
    81 tape::17:root
    82 lp::18:lp
    83 usb::19:
    84 audio::20:
    85 dialout::21:root
    86 mail::30:mail
    87 news::31:news
    88 uucp::32:uucp
    89 users::100:
    90 nogroup::65533:
    91 nobody::65534:</literal>
     61<literal>root:x:0:
     62bin:x:1:
     63sys:x:2:
     64kmem:x:3:
     65tty:x:4:
     66tape:x:5:
     67daemon:x:6:
     68floppy:x:7:
     69disk:x:8:
     70lp:x:9:
     71dialout:x:10:
     72audio:x:11:
     73video:x:12:
     74utmp:x:13:
     75usb:x:14:
     76cdrom:x:15:</literal>
    9277EOF</userinput></screen>
    9378
    9479  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    9580  href="../../boot/common/pwdgroup.xml"
    96   xpointer="xpointer(//*[@os='b'])"/>
     81  xpointer="xpointer(//*[@os='c'])"/>
     82
     83  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     84  href="../../boot/common/pwdgroup.xml"
     85  xpointer="xpointer(//*[@os='d'])"/>
     86
     87  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     88  href="../../boot/common/pwdgroup.xml"
     89  xpointer="xpointer(//*[@os='e'])"/>
    9790
    9891  <para>To remove the <quote>I have no name!</quote> prompt, start a
Note: See TracChangeset for help on using the changeset viewer.