title: GNU Octave in rbash shell
body: <p>I would like to start an octave session within a restricted bash shell, or rbash, and thus restrict a user to their home directory.</p>
  
  <p>The rbash works as expected, and the user is unable to use the cd command.</p>
  
  <pre><code>&gt;prompt:~/$ /bin/bash -r
  &gt;bash-3.2$ pwd
    /home/user1
  &gt;bash-3.2$ cd /
  &gt;bash: cd: restricted
  &gt;bash-3.2$ 
  </code></pre>
  
  <p>When octave is started, the user is then able to cd to any directory.</p>
  
  <pre><code>&gt;bash-3.2$ octave --silent
  octave-3.4.0:1&gt; pwd
     ans = /home/user1
  octave-3.4.0:2&gt; cd /
  octave-3.4.0:3&gt; pwd
     ans = /
  </code></pre>
  
  <p>Is there a way to disable the user account within octave in the way that rbash does?</p>
  
  <p>Thanks.</p>