Читать книгу Kali Linux Penetration Testing Bible - Gus Khawaja - Страница 23
Groups Commands
ОглавлениеTo add a new group in Kali Linux, use the groupadd
command:
$groupadd [new group name] Gus@kali:~$ sudo groupadd hackers
To join a user (which is Gus for this example) to the hackers
group that we created earlier, execute the usermod
command:
$usermod -aG [group name] [user name] Gus@kali:~$ sudo usermod -aG hackers Gus
To list all the groups created in Kali Linux, open the file /etc/group
. Again, use the cat
command to get the job done (the following example shows only the first three):
Gus@kali:~$ cat /etc/group root:x:0: daemon:x:1: bin:x:2: […] hackers:x:1002:Gus