diff options
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 |