Changes

Jump to navigation Jump to search
no edit summary
Line 16: Line 16:  
$ln -s /bin/bash /bin/rbash
 
$ln -s /bin/bash /bin/rbash
 
</pre>
 
</pre>
3. enable rbash by system setting /etc/shells  
+
* enable rbash by system setting /etc/shells  
 
<pre>
 
<pre>
 
$echo '/bin/rbash' >> /etc/shells
 
$echo '/bin/rbash' >> /etc/shells
 
</pre>
 
</pre>
4. set user shell to /bin/rbash
+
* set user shell to /bin/rbash
 
<pre>
 
<pre>
 
$chsh  #set user shell to /bin/rbash
 
$chsh  #set user shell to /bin/rbash
 
</pre>
 
</pre>
5. Disable "chsh" command for users
+
* Disable "chsh" command for users
 
<pre>
 
<pre>
 
$chmod o= /bin/chsh
 
$chmod o= /bin/chsh
 
</pre>
 
</pre>
6. Login as user and test linux commands..
+
* Login as user and test linux commands..
7. Purge tmux and screen Multiplexer!
+
 
 +
* Purge tmux and screen Multiplexer if installed!

Navigation menu