Add User Accounts / Menambahkan Pengguna

Cara menambahkan user akun pada Linux Debian adalah sebagai berikut :

# adduser bookworm

Adding user `bookworm' ...
Adding new group `bookworm' (1001) ...
Adding new user `bookworm' (1001) with group `bookworm' ...
Creating home directory `/home/bookworm' ...
Copying files from `/etc/skel' ...
New password:            # set user password
Retype new password:     # confirm
passwd: password updated successfully
Changing the user information for bookworm
Enter the new value, or press ENTER for the default
        Full Name []:    # input user info (OK with empty all if you do not need)
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y

Melimit user akun untuk berpindah ke user root :

# vi /etc/pam.d/su
# line 15 : uncomment and add the group

auth       required   pam_wheel.so group=adm

Menghapus user :

# deluser bookworm 
# deluser bookworm --remove-home 

Leave a Reply

Your email address will not be published. Required fields are marked *