Tutorial Category

User Management

  1. How To Lock And Unlock A 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. In this example we will lock the system user peterhope /bin/passwd -l  In this example we will unlock the system user peterhope /bin/passwd -u peterhope ...
  2. 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. In this example we will disable shell access for username johnsmith: chsh -s /bin/false johnsmith 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. ...
  3. How To Change The Shell Type For A Specific User

    If you would like to change the shell type for a specific user you can do the following. In this example we will change the shell type for username jimmysmith to Bash: chsh -s /bin/bash jimmysmith If you have any questions feel free to leave me a note below and I will get back to you....