Cara membuat user sudoers di linux


Berikut langkah langkahnya :

  1. Log in pada server linux
  2. Ketik comand ini#adduser username
  3. Output yang ditampilkan lalu masukan passwordAdding user ‘username’ …
    Adding new group ‘username’ (1001) …
    Adding new user ‘username’ (1001) with group ‘username’ …
    Creating home directory ‘/home/username’ …
    Copying files from ‘/etc/skel’ …
    New password:
    Retype new password:
    passwd: password updated successfully
  4. Lalu ketik Y dan enterChanging 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]
  5. Lalu tambahkan user ke dalam group sudo  :#usermod -aG sudo username

Di tulis oleh: