Controlling File and Directory Permissions
51
Granting Ownership to a Group
To transfer ownership of a file from one group to another, we can use the
chgrp
(or change group) command.
Hackers are often more likely
to work alone than in groups, but it’s not
unheard of for several hackers or pentesters work together on a project, and
in that case, using groups is necessary. For instance,
you might have a group
of pentesters and a group of security team members working on the same
project. The pentesters in this example are the root group, meaning they
have all permissions and access. The root group
needs access to the hack-
ing tools, whereas the security folk only need access to defensive tools such
as an intrusion detection system (IDS). Let’s say the root group downloads
and installs a program named newIDS; the root
group will need to change
the ownership to the security group so the security group can use it at will.
To do so, the root group would simply enter the following command:
kali >
chgrp
u