Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
A. drw-r-xr–
B. d-wxr-x–
C. -wxr-x–x
D. -rwxrw—x
E. -rw-r-xr–
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
A. drw-r-xr–
B. d-wxr-x–
C. -wxr-x–x
D. -rwxrw—x
E. -rw-r-xr–
The first number represents the Owner permission; the second represents the Group permissions; and the last number represents the permissions for all other users. The numbers are a binary representation of the rwx string.
r = 4
w = 2
x = 1
You add the numbers to get the integer/number representing the permissions you wish to set. You will need to include the binary permissions for each of the three permission groups.
So to set a file to permissions on file1 to read _rwxr_____, you would enter chmod 740 file1.