Ubuntu
Linux 로컬 계정 추가하기 (Ubuntu)
재심
2023. 4. 15. 10:58
새로운 계정 생성
# 새로운 계정 생성
$ sudo adduser {newuser}
Adding user `jaeshim' ...
Adding new group `jaeshim' (1001) ...
Adding new user `jaeshim' (1001) with group `jaeshim' ...
Creating home directory `/home/jaeshim' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
Sorry, passwords do not match.
New password:
Retype new password:
Retype new password:
passwd: password updated successfully
Changing the user information for jaeshim
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]
sudo 권한 부여
# sudo 권한 부여
# ubuntu
$ sudo usermod -aG sudo {newuser}
# centos
$ sudo usermod -aG wheel {newuser}