Add a user to Sudo group
After install a linux server, for security reason, you have to add a normal user to sudo group.
How to
## as root permission, adding ‘username’ to sudo group
root$ usermod -aG sudo username
root$ usermod -aG mysql username
## change shell for ‘username’,
root$ su - username
username$
## Let’s check
username$ sudo whoami
root 👈Succeed!🎉
Group List
root@venus:~# vi /etc/passwd
root@venus:~# vi /etc/group
독자 의견
저자 @richard 에게 의견 남기기: