Group command in ubuntu server is actually very easy to understand, short orders and easy to remember, just like other commands in ubuntu server but even so sometimes we forget a few commands like this. It's good we note, and stored so that when we forget and need, then look at the note. And here are some commands as below:
The command to add a group
# addgroup nama_grup
The command to delete a group
# delgroup nama_grup
Command to check the group
# cat /etc/group
the result :

The command to add users to the group
# adduser username nama_grup
The command to delete the user in the group
# deluser username nama_grup
then check if the username already in the group with command " cat /etc/group "

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
COMMAND GRUP DI UBUNTU SERVER

Catatan : Loginlah terlebih dahulu dengan user root
Perintah untuk menambah grup
# addgroup nama_grup

Perintah untuk menghapus grup
# delgroup nama_grup
Perintah untuk mengecek grup
# cat /etc/group
hasilnya :
Perintah untuk menambahkan user ke dalam grup
# adduser namauser nama_grup

Perintah untuk menghapus user di dalam grup
# deluser namauser nama_grup

Cek jika username tersebut sudah ada di dalam grup dengan " cat /etc/group "
Tidak ada komentar:
Posting Komentar