aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/creatingdirs.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2003-05-13 07:38:47 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2003-05-13 07:38:47 +0000
commit4a7a683b9a72b17fe56efe9b1e0e2e33d1c9278d (patch)
tree8fa3ab5367dc2725d0a5c7d1b5cfd798e46b819b /chapter06/creatingdirs.xml
parentb74e415582bf90f1189d9546cfd07b902b6f8e0a (diff)
Applied Zack's various-fixes patch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2608 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/creatingdirs.xml')
-rw-r--r--chapter06/creatingdirs.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/chapter06/creatingdirs.xml b/chapter06/creatingdirs.xml
index 3763bf202..6e1c597af 100644
--- a/chapter06/creatingdirs.xml
+++ b/chapter06/creatingdirs.xml
@@ -6,8 +6,8 @@
a directory tree. Issuing the following commands will create a more or less
standard tree:</para>
-<para><screen><userinput>mkdir -p /{bin,boot,dev/pts,etc/opt,home,lib,mnt,proc} &amp;&amp;
-mkdir -p /{root,sbin,tmp,usr/local,var,opt} &amp;&amp;
+<para><screen><userinput>mkdir -p /{bin,boot,dev/pts,etc/opt,home,lib,mnt,proc}
+mkdir -p /{root,sbin,tmp,usr/local,var,opt}
for dirname in /usr /usr/local
&nbsp;&nbsp;&nbsp;&nbsp;do
&nbsp;&nbsp;&nbsp;&nbsp;mkdir $dirname/{bin,etc,include,lib,sbin,share,src}
@@ -15,19 +15,19 @@ for dirname in /usr /usr/local
&nbsp;&nbsp;&nbsp;&nbsp;mkdir $dirname/share/{dict,doc,info,locale,man}
&nbsp;&nbsp;&nbsp;&nbsp;mkdir $dirname/share/{nls,misc,terminfo,zoneinfo}
&nbsp;&nbsp;&nbsp;&nbsp;mkdir $dirname/share/man/man{1,2,3,4,5,6,7,8}
-done &amp;&amp;
-mkdir /usr/lib/locale &amp;&amp;
-mkdir /var/{lock,log,mail,run,spool} &amp;&amp;
-mkdir -p /var/{tmp,opt,cache,lib/misc,local} &amp;&amp;
-mkdir /opt/{bin,doc,include,info} &amp;&amp;
-mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}} &amp;&amp;
+done
+mkdir /usr/lib/locale
+mkdir /var/{lock,log,mail,run,spool}
+mkdir -p /var/{tmp,opt,cache,lib/misc,local}
+mkdir /opt/{bin,doc,include,info}
+mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}}
ln -s ../var/tmp /usr</userinput></screen></para>
<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 root, and another to the directories for temporary files.</para>
-<para><screen><userinput>chmod 0750 /root &amp;&amp;
+<para><screen><userinput>chmod 0750 /root
chmod 1777 /tmp /var/tmp</userinput></screen></para>
<para>The first mode change ensures that not just anybody can enter the