Hot answers tagged


When creating the user with useradd use the option -s -s, --shell SHELL The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by default. Give it the value /sbin/nologin. This will prevent ...

Only top voted, non community-wiki answers of a minimum length are eligible