Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
server-administration:disable-user-shell-access [2010-08-25 12:45:43]
garrett.plasky Approved
server-administration:disable-user-shell-access [2011-07-01 12:16:20] (current)
garrett.plasky Approved
Line 5: Line 5:
 In this example we will disable shell access for username johnsmith: In this example we will disable shell access for username johnsmith:
  
-<code console>chsh -s /bin/false johnsmith</​code>+<sxh shell>chsh -s /bin/false johnsmith</​sxh>
  
 <​note>​Please note that this disables shell access for the user when they are logging in using the normal means. ​ If the user is able to execute commands through a PHP/CGI script they can spawn their own shell.</​note>​ <​note>​Please note that this disables shell access for the user when they are logging in using the normal means. ​ If the user is able to execute commands through a PHP/CGI script they can spawn their own shell.</​note>​
  
 {{tag>​centos cpanel how-to shell vps ubuntu}} {{tag>​centos cpanel how-to shell vps ubuntu}}