Mencoba membuat sebuah user
root@wwww-instance:/home/ext_sabagus_gmail_com# adduser ansible-userAdding user `ansible-user' ...
Adding new group `ansible-user' (1001) ...
Adding new user `ansible-user' (1000) with group `ansible-user' ...
Creating home directory `/home/ansible-user' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for ansible-user
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Memasukkan ke group sudo
root@wwww-instance:/home/ext_sabagus_gmail_com# usermod -aG sudo ansible-user
Mencoba user
root@wwww-instance:/home/ext_sabagus_gmail_com# su - ansible-user
ansible-user@wwww-instance:~$ sudo su
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for ansible-user:
root@wwww-instance:/home/ansible-user#
Comments
Post a Comment