54
Chapter 5
So, if we wanted to represent all permissions for the owner, group, and
all users, we could write it as follows:
7 7 7
Here’s where the shortcut comes in. By passing
chmod
three octal digits
(one for each
rwx
set), followed by a filename, we can change permissions on
that file for each type of user. Enter the following into your command line:
kali >
chmod 774 hashcat.hcstat
Looking at Table 5-1, we can see that this statement gives the owner all
permissions, the group all permissions, and everyone else (other) only the
read permission.
Now we can see whether those permissions have changed by running