Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
server-administration:disable-user-shell-access [2010-08-25 12:45:43] – Approved garrett.plaskyserver-administration:disable-user-shell-access [2011-07-01 12:16:20] (current) – Approved garrett.plasky
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}}