User Tools

Site Tools


server-administration:locking-user-shell-account

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 johnsmith

/bin/passwd -l johnsmith

In this example we will unlock the system user johnsmith

/bin/passwd -u johnsmith

server-administration/locking-user-shell-account.txt · Last modified: by garrett.plasky

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki