Jump to content

Ubuntu:Menambahkan User: Difference between revisions

From Wiki
No edit summary
Line 1: Line 1:
adduser username
<syntaxhighlight lang="shell">adduser username</syntaxhighlight>


*Konfirmasi password untuk user baru
*Konfirmasi password untuk user baru
Set password prompts:
 
Enter new UNIX password:
<syntaxhighlight lang="shell">
Retype new UNIX password:
Set password prompts:
passwd: password updated successfully
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
</syntaxhighlight>


*Isi from berikut. Atau bisa dikosongkan juga bisa.
*Isi from berikut. Atau bisa dikosongkan juga bisa.
User information prompts:
 
Changing the user information for username
<syntaxhighlight lang="shell">
Enter the new value, or press ENTER for the default
User information prompts:
    Full Name []:
Changing the user information for username
    Room Number []:
Enter the new value, or press ENTER for the default
    Work Phone []:
    Full Name []:
    Home Phone []:
    Room Number []:
    Other []:
    Work Phone []:
Is the information correct? [Y/n]
    Home Phone []:
    Other []:
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
usermod -aG sudo username
 
<syntaxhighlight lang="shell">usermod -aG sudo username</syntaxhighlight>


==Terkait==
==Terkait==

Revision as of 07:23, 29 August 2022

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