Changeset d8277ea
- Timestamp:
- 06/19/2004 09:05:36 PM (20 years ago)
- 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
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r1fd5d19 rd8277ea 77 77 </listitem> 78 78 79 <listitem><para>June 19, 2004 [matt]: chapter06 - creatingdirs. Use 80 `install -d` instead of `mkdir` (fixes bug #821)</para></listitem> 81 79 82 <listitem><para>June 19, 2004 [matt]: chapter04 - addinguser. Make the lfs user 80 83 a member of the lfs group, in case hosts add a new user to a non-existent gid by -
chapter06/creatingdirs.xml
r1fd5d19 rd8277ea 12 12 standard tree:</para> 13 13 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} 15 install -d /{sbin,srv,usr/local,var,opt} 16 install -d /root -m 0750 17 install -d /tmp /var/tmp -m 1777 18 install -d /media/{floppy,cdrom} 19 install -d /usr/{bin,include,lib,sbin,share,src} 18 20 ln -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}21 install -d /usr/share/{doc,info,locale,man} 22 install -d /usr/share/{misc,terminfo,zoneinfo} 23 install -d /usr/share/man/man{1,2,3,4,5,6,7,8} 24 install -d /usr/local/{bin,etc,include,lib,sbin,share,src} 23 25 ln -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>26 install -d /usr/local/share/{doc,info,locale,man} 27 install -d /usr/local/share/{misc,terminfo,zoneinfo} 28 install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8} 29 install -d /var/{lock,log,mail,run,spool} 30 install -d /var/{tmp,opt,cache,lib/{misc,locate},local} 31 install -d /opt/{bin,doc,include,info} 32 install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 31 33 32 34 <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> 35 isn't desirable for all directories. In the commands above, we make two changes: 36 one to the home directory of <emphasis>root</emphasis>, and another to the 37 directories for temporary files.</para> 39 38 40 39 <para>The first mode change ensures that not just anybody can enter the
Note:
See TracChangeset
for help on using the changeset viewer.