Changeset d8277ea


Ignore:
Timestamp:
06/19/2004 09:05:36 PM (20 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
deaf14a
Parents:
1fd5d19
Message:

Use 'install' instead of 'mkdir' (fixes bug 821)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3821 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r1fd5d19 rd8277ea  
    7777</listitem>
    7878
     79<listitem><para>June 19, 2004 [matt]: chapter06 - creatingdirs.  Use
     80`install -d` instead of `mkdir` (fixes bug #821)</para></listitem>
     81
    7982<listitem><para>June 19, 2004 [matt]: chapter04 - addinguser.  Make the lfs user
    8083a member of the lfs group, in case hosts add a new user to a non-existent gid by
  • chapter06/creatingdirs.xml

    r1fd5d19 rd8277ea  
    1212standard tree:</para>
    1313 
    14 <screen><userinput>mkdir -p /{bin,boot,dev,etc/opt,home,lib,mnt}
    15 mkdir -p /{root,sbin,srv,tmp,usr/local,var,opt}
    16 mkdir -p /media/{floppy,cdrom}
    17 mkdir /usr/{bin,include,lib,sbin,share,src}
     14<screen><userinput>install -d /{bin,boot,dev,etc/opt,home,lib,mnt}
     15install -d /{sbin,srv,usr/local,var,opt}
     16install -d /root -m 0750
     17install -d /tmp /var/tmp -m 1777
     18install -d /media/{floppy,cdrom}
     19install -d /usr/{bin,include,lib,sbin,share,src}
    1820ln -s share/{man,doc,info} /usr
    19 mkdir /usr/share/{doc,info,locale,man}
    20 mkdir /usr/share/{misc,terminfo,zoneinfo}
    21 mkdir /usr/share/man/man{1,2,3,4,5,6,7,8}
    22 mkdir /usr/local/{bin,etc,include,lib,sbin,share,src}
     21install -d /usr/share/{doc,info,locale,man}
     22install -d /usr/share/{misc,terminfo,zoneinfo}
     23install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
     24install -d /usr/local/{bin,etc,include,lib,sbin,share,src}
    2325ln -s share/{man,doc,info} /usr/local
    24 mkdir /usr/local/share/{doc,info,locale,man}
    25 mkdir /usr/local/share/{misc,terminfo,zoneinfo}
    26 mkdir /usr/local/share/man/man{1,2,3,4,5,6,7,8}
    27 mkdir /var/{lock,log,mail,run,spool}
    28 mkdir -p /var/{tmp,opt,cache,lib/{misc,locate},local}
    29 mkdir /opt/{bin,doc,include,info}
    30 mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>
     26install -d /usr/local/share/{doc,info,locale,man}
     27install -d /usr/local/share/{misc,terminfo,zoneinfo}
     28install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}
     29install -d /var/{lock,log,mail,run,spool}
     30install -d /var/{tmp,opt,cache,lib/{misc,locate},local}
     31install -d /opt/{bin,doc,include,info}
     32install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>
    3133
    3234<para>Directories are, by default, created with permission mode 755, but this
    33 isn't desirable for all directories. We will make two changes: one to the home
    34 directory of <emphasis>root</emphasis>, and another to the directories for
    35 temporary files.</para>
    36 
    37 <screen><userinput>chmod 0750 /root
    38 chmod 1777 /tmp /var/tmp</userinput></screen>
     35isn't desirable for all directories. In the commands above, we make two changes:
     36one to the home directory of <emphasis>root</emphasis>, and another to the
     37directories for temporary files.</para>
    3938
    4039<para>The first mode change ensures that not just anybody can enter the
Note: See TracChangeset for help on using the changeset viewer.