ADD USER
adduser xxxx
Adding user `xxxx' ...
Adding new group `xxxx' (1001) ...
Adding new user `xxxx' (1001) with group `xxxx' ...
Creating home directory `/home/xxxx' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for xxxx
Enter the new value, or press ENTER for the default
Full Name []: User
Room Number []: 1
Work Phone []: +39
Home Phone []:
Other []:
Is the information correct? [Y/n]
vi /etc/ssh/sshd_config
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
PermitRootLogin no
PasswordAuthentication yes
AllowUsers user
UsePAM yes
add user to sudoers
sudo gpasswd -a xxxx sudo Adding user xxxx to group sudo
vi /etc/sudoers
xxxx ALL=(ALL) NOPASSWD: ALL
service ssh restart
ssh stop/waiting
ssh start/running, process 6107
No comments:
Post a Comment