cvs commit: LFS/BOOK/chapter06 creatingdirs.xml

matthew at matthew at
Sat Jun 19 14:05:36 PDT 2004

matthew     04/06/19 15:05:36

  Modified:    BOOK/chapter01 changelog.xml
               BOOK/chapter06 creatingdirs.xml
  Use 'install' instead of 'mkdir' (fixes bug 821)
  Revision  Changes    Path
  1.828     +3 -0      LFS/BOOK/chapter01/changelog.xml
  Index: changelog.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.827
  retrieving revision 1.828
  diff -u -r1.827 -r1.828
  --- changelog.xml	19 Jun 2004 20:48:04 -0000	1.827
  +++ changelog.xml	19 Jun 2004 21:05:36 -0000	1.828
  @@ -76,6 +76,9 @@
  +<listitem><para>June 19, 2004 [matt]: chapter06 - creatingdirs.  Use
  +`install -d` instead of `mkdir` (fixes bug #821)</para></listitem>
   <listitem><para>June 19, 2004 [matt]: chapter04 - addinguser.  Make the lfs user
   a member of the lfs group, in case hosts add a new user to a non-existent gid by
   default (which causes the glibc testsuite to fail). Fixes bug #856.</para>
  1.22      +20 -21    LFS/BOOK/chapter06/creatingdirs.xml
  Index: creatingdirs.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/creatingdirs.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- creatingdirs.xml	3 May 2004 21:28:57 -0000	1.21
  +++ creatingdirs.xml	19 Jun 2004 21:05:36 -0000	1.22
  @@ -11,31 +11,30 @@
   a directory tree. Issuing the following commands will create a more or less
   standard tree:</para>
  -<screen><userinput>mkdir -p /{bin,boot,dev,etc/opt,home,lib,mnt}
  -mkdir -p /{root,sbin,srv,tmp,usr/local,var,opt}
  -mkdir -p /media/{floppy,cdrom}
  -mkdir /usr/{bin,include,lib,sbin,share,src}
  +<screen><userinput>install -d /{bin,boot,dev,etc/opt,home,lib,mnt}
  +install -d /{sbin,srv,usr/local,var,opt}
  +install -d /root -m 0750
  +install -d /tmp /var/tmp -m 1777
  +install -d /media/{floppy,cdrom}
  +install -d /usr/{bin,include,lib,sbin,share,src}
   ln -s share/{man,doc,info} /usr
  -mkdir /usr/share/{doc,info,locale,man}
  -mkdir /usr/share/{misc,terminfo,zoneinfo}
  -mkdir /usr/share/man/man{1,2,3,4,5,6,7,8}
  -mkdir /usr/local/{bin,etc,include,lib,sbin,share,src}
  +install -d /usr/share/{doc,info,locale,man}
  +install -d /usr/share/{misc,terminfo,zoneinfo}
  +install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
  +install -d /usr/local/{bin,etc,include,lib,sbin,share,src}
   ln -s share/{man,doc,info} /usr/local
  -mkdir /usr/local/share/{doc,info,locale,man}
  -mkdir /usr/local/share/{misc,terminfo,zoneinfo}
  -mkdir /usr/local/share/man/man{1,2,3,4,5,6,7,8}
  -mkdir /var/{lock,log,mail,run,spool}
  -mkdir -p /var/{tmp,opt,cache,lib/{misc,locate},local}
  -mkdir /opt/{bin,doc,include,info}
  -mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>
  +install -d /usr/local/share/{doc,info,locale,man}
  +install -d /usr/local/share/{misc,terminfo,zoneinfo}
  +install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}
  +install -d /var/{lock,log,mail,run,spool}
  +install -d /var/{tmp,opt,cache,lib/{misc,locate},local}
  +install -d /opt/{bin,doc,include,info}
  +install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>
   <para>Directories are, by default, created with permission mode 755, but this
  -isn't desirable for all directories. We will make two changes: one to the home
  -directory of <emphasis>root</emphasis>, and another to the directories for
  -temporary files.</para>
  -<screen><userinput>chmod 0750 /root
  -chmod 1777 /tmp /var/tmp</userinput></screen>
  +isn't desirable for all directories. In the commands above, we make two changes:
  +one to the home directory of <emphasis>root</emphasis>, and another to the
  +directories for temporary files.</para>
   <para>The first mode change ensures that not just anybody can enter the
   <filename class="directory">/root</filename> directory -- the same

More information about the lfs-book mailing list