GoDaddy 도움말

How to add users in Ubuntu

Ubuntu is a Linux-based operating system that uses the Debian model to distribute it as open-source software. The administrators for Ubuntu systems routinely manage user accounts, which primarily consist of creating new accounts, deleting accounts that are no longer needed and changing the privileges of existing accounts. Adding a new user account in Ubuntu is a simple task if you have superuser privileges, commonly known as root privileges. A single command will prompt you for the information needed to create the new user account. You'll then logon with the new user name and password to ensure the account is working properly.

DIFFICULTY Basic - 1 | Medium - 2 | Advanced - 3
TIME REQUIRED 5 min
RELATED PRODUCTS Linux-based VPS or dedicated servers

Here is a quick tutorial on how to how to add users in Ubuntu.

Create the new account

Enter the following command from a terminal window to create the new account:

# sudo adduser testuser

The above command creates an account for the user testuser and uses sudo to ensure the command has the necessary root privileges.

The system will prompt you to enter the user's password and confirm it by entering the password again. You'll also be prompted for the user's name and phone numbers. The system will use default values for these fields if you press the Enter key without entering a value. Once you have entered the information correctly, press the "y" or Enter key to create the account.

Test the new account

Test the new account with the following command:

# su --login testuser

The above command uses the su command to change the current user account totestuser. The --login option makes the new shell a login shell, requiring you to provide the password. Enter the password for the testuser account when prompted.


이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.