Package: securing-debian-howto
Version:
Author: Guillem Jover <guillem@hadrons.org>
Status: applied
Description:
 Fixed bash readonly command.

--- securing-debian-howto.sgml	2002-12-19 05:30:25.000000000 +0100
+++ securing-debian-howto_patched.sgml	2002-12-21 18:18:11.000000000 +0100
@@ -2482,15 +2482,12 @@
   HISTFILE=~/.bash_history
   HISTSIZE=100000000000000000
   HISTFILESIZE=10000000000000000
-  set -o HISTFILE
-  set -o HISTSIZE
-  set -o HISTFILESIZE
+  readonly HISTFILE
+  readonly HISTSIZE
+  readonly HISTFILESIZE
   export HISTFILE HISTSIZE HISTFILESIZE
 </example>
 
-<p>Note: the <tt>-o</tt> attribute sets a variable read-only in 
-<prgn>bash</prgn>.
-
 <p>For this to work the user can only append information to
 <file>.bash_history</file>. You need <em>also</em> to set the 
 <em>append-only</em> option using <prgn>chattr</prgn> program 
