diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-05-13 07:38:47 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-05-13 07:38:47 +0000 |
commit | 4a7a683b9a72b17fe56efe9b1e0e2e33d1c9278d (patch) | |
tree | 8fa3ab5367dc2725d0a5c7d1b5cfd798e46b819b /chapter06/creatingdirs.xml | |
parent | b74e415582bf90f1189d9546cfd07b902b6f8e0a (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.xml | 18 |
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} && -mkdir -p /{root,sbin,tmp,usr/local,var,opt} && +<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 do mkdir $dirname/{bin,etc,include,lib,sbin,share,src} @@ -15,19 +15,19 @@ for dirname in /usr /usr/local mkdir $dirname/share/{dict,doc,info,locale,man} mkdir $dirname/share/{nls,misc,terminfo,zoneinfo} mkdir $dirname/share/man/man{1,2,3,4,5,6,7,8} -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}} && +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 && +<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 |