Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Restricted Shell for SSH Server
(view source)
Revision as of 15:38, 23 May 2017
9 bytes added
,
15:38, 23 May 2017
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
!
Author
Bureaucrats
,
Administrators
286
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Linux
Debian + Ubuntu
Apache Webserver
Openbox
SME server
Privoxy Tor
Postfix
Tinycore Linux
Tools
MySQL
MySQL
Wordpress
Customize
Unix
FreeBSD
Router OS
openwrt
pfsense
fritzbox
Netio Koukaam Wiki
netio-230a/b
Mediawiki
MediaWiki
Tools
Special pages
Printable version