How do I limit the new account? Can you log in into the server?

xiaoxiao2021-03-06  41

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

转载请注明原文地址:https://www.9cbs.com/read-75620.html

New Post(0)