How do I limit the new account? Can you log in into the server?
# useradd test
#passwd test
CHANGING Password for User Test.
New Password:
Retype New Password:
Passwd: All Authentication Token Updated SuccessFully.
#CHSH TEST
CHANGING Shell for test.
New shell [/ bin / bash]: / sbin / nologin
Shell change.
#su - Test
This Account is currently not available.
If you want the user to log in into the server, please modify the file: / etc / passwd
Will the following line:
Test: x: 508: 508 :: / Home / Test: / sbin / nologin
change into:
Test: x: 508: 508 :: / Home / Test: / bin / bash