Dave's Brain

Browse - Computer Tips - How can I deny login to a user?

Date: 2013oct27
OS: Linux

Q.  How can I deny login to a user?

A.  Set their shell to /sbin/nologin

chsh -s /sbin/nologin USERNAME
See "man nologin" for more info.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.