Jump to content

Ubuntu:Menambahkan User: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<syntaxhighlight lang="shell">adduser username</syntaxhighlight>
adduser username


*Konfirmasi password untuk user baru
*Konfirmasi password untuk user baru


<syntaxhighlight lang="shell">
Set password prompts:
Set password prompts:
Enter new UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
passwd: password updated successfully
</syntaxhighlight>


*Isi from berikut. Atau bisa dikosongkan juga bisa.
*Isi from berikut. Atau bisa dikosongkan juga bisa.


<syntaxhighlight lang="shell">
User information prompts:
User information prompts:
Changing the user information for username
Changing the user information for username
Enter the new value, or press ENTER for the default
Enter the new value, or press ENTER for the default
    Full Name []:
    Full Name []:
    Room Number []:
    Room Number []:
    Work Phone []:
    Work Phone []:
    Home Phone []:
    Home Phone []:
    Other []:
    Other []:
Is the information correct? [Y/n]
Is the information correct? [Y/n]
</syntaxhighlight>


*Gunakan perintah usermod untuk menambahkan user baru dengan akses root
*Gunakan perintah usermod untuk menambahkan user baru dengan akses root


<syntaxhighlight lang="shell">usermod -aG sudo username</syntaxhighlight>
usermod -aG sudo username


==Terkait==
==Terkait==

Latest revision as of 23:39, 23 November 2025

adduser username
  • Konfirmasi password untuk user baru
Set password prompts:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
  • Isi from berikut. Atau bisa dikosongkan juga bisa.
User information prompts:
Changing the user information for username
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]
  • Gunakan perintah usermod untuk menambahkan user baru dengan akses root
usermod -aG sudo username

Terkait

Source