Differences

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

Link to this comparison view

Next revision
Previous revision
server-administration:locking-user-shell-account [2010-08-23 19:18:19]
garrett.plasky created
server-administration:locking-user-shell-account [2011-07-01 19:18:05] (current)
garrett.plasky Approved
Line 1: Line 1:
-====== How to lock and unlock system user account ======+====== How to Lock and Unlock System User Account ======
  
 Disabling shell access doesn't fully lock a user out of a server.  They can still login via ftp/pop/imap/smtp servers if they are running on the local server and are checking local user authentication.  Below you will find instructions on how to fully lock a system users account. Disabling shell access doesn't fully lock a user out of a server.  They can still login via ftp/pop/imap/smtp servers if they are running on the local server and are checking local user authentication.  Below you will find instructions on how to fully lock a system users account.
  
 In this example we will lock the system user johnsmith In this example we will lock the system user johnsmith
-<code console>/bin/passwd -l johnsmith</code>+<sxh shell>/bin/passwd -l johnsmith</sxh>
  
 In this example we will unlock the system user johnsmith In this example we will unlock the system user johnsmith
-<code console>/bin/passwd -u johnsmith</code>+<sxh shell>/bin/passwd -u johnsmith</sxh>
  
  
  
 {{tag>how-to vps centos}} {{tag>how-to vps centos}}