Linux 서버 설정 후에 일반 유저로 root 권한을 얻기 위하여 sudo 유저를 설정해야 한다.
## root 권한으로 username 을 sudo 그룹에 추가
root$ usermod -aG sudo username
## 그룹에 추가된 유저로 변경하고,
root$ su - username
username$
## 확인
username$ sudo whoami
root 👈성공!🎉
Hi, my name is Richard. I’m a developer wants to make the world better with logic power. Mainly I use Linux, Nginx, MySQL, PHP and JavaScript . I want to share my knowledge with someone that it was also based from some great persons via LYNMP. 👨💻
Responses
Leave a response to @richard