Changeset 03e6a40 for BOOK/boot/common/creatingdirs.xml
- Timestamp:
- Apr 20, 2014, 8:57:39 AM (11 years ago)
- Children:
- 0be79ea
- Parents:
- 88ef769 (diff), 578ca586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/creatingdirs.xml
r88ef769 r03e6a40 11 11 <title>Creating Directories</title> 12 12 13 <para os="a">It is time to create some structure in the CLFS file system. Create a 13 <note os="a"> 14 <para>The commands in the remainder of the book should be run as 15 the <systemitem class="username">root</systemitem> user. Check 16 that ${CLFS} is set in the 17 <systemitem class="username">root</systemitem> user’s environment 18 before proceeding.</para> 19 </note> 20 21 <para os="b">It is time to create some structure in the CLFS file system. Create a 14 22 standard directory tree by issuing the following commands:</para> 15 23 16 <screen os=" b"><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,{etc/,}opt,home,lib,mnt}24 <screen os="c"><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,{etc/,}opt,home,lib/firmware,mnt} 17 25 mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},run/{,shm},sbin,srv,sys} 18 26 mkdir -pv ${CLFS}/var/{lock,log,mail,spool} … … 23 31 mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man} 24 32 mkdir -pv ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo} 25 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8} 26 for dir in ${CLFS}/usr{,/local}; do 27 ln -sv share/{man,doc,info} $dir 28 done</userinput></screen> 33 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}</userinput></screen> 29 34 30 <para os=" c">Directories are, by default, created with permission mode 755,35 <para os="d">Directories are, by default, created with permission mode 755, 31 36 but this is not desirable for all directories. In the commands above, 32 37 two changes are made—one to the home directory of user … … 34 39 directories for temporary files.</para> 35 40 36 <para os=" d">The first mode change ensures that not just anybody can enter41 <para os="e">The first mode change ensures that not just anybody can enter 37 42 the <filename class="directory">/root</filename> directory—the 38 43 same as a normal user would do with his or her home directory. The … … 44 49 1777 bit mask.</para> 45 50 46 <sect2 os=" e">51 <sect2 os="f"> 47 52 <title>FHS Compliance Note</title> 48 53
Note:
See TracChangeset
for help on using the changeset viewer.