Differences

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

Link to this comparison view

Next revision
Previous revision
server-administration:disable-user-shell-access [2010-08-23 19:15:57]
garrett.plasky created
server-administration:disable-user-shell-access [2011-07-01 19:16:20]
garrett.plasky Approved
Line 1: Line 1:
-====== How to disable shell access for a specific user ======+====== How to Disable Shell Access for a Specific User ======
  
 If you would like to disable shell access for a specific user you can do the following. If you would like to disable shell access for a specific user you can do the following.
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}}