010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 11


Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?

Show Answer
Correct Answer: E

The command 'chmod 654 file.txt' sets the permissions for a regular file where: 6 represents read and write permissions for the owner, 5 represents read and execute permissions for the group, and 4 represents read permission for others. The correct representation of these permissions is '-rw-r-xr--'.

Discussion

9 comments
Sign in to comment
vuonganhkhang
Nov 18, 2022

E. -rw-r-xr-- -> equal 645 not 654

aliulight
Oct 29, 2024

eaxctly my point

Mims007
Jan 24, 2025

i think you might be getting things mixed up, u=rw-, g=r-x, o=r--, which makes it 654

Mims007
Jan 24, 2025

i think you might be getting things mixed up, u=rw-, g=r-x, o=r--, which makes it 654

Cert2022
Nov 5, 2022

rw = Read & Write for Owner r-x = Read & Execute for Group r = Only read for others

scottmr
Feb 28, 2023

The question is worded incorrectly it SHOULD be 645; but getting that corrected is a whole other issue I guess. 0: (000) No permission. 1: (001) Execute permission. 2: (010) Write permission. 3: (011) Write and execute permissions. 4: (100) Read permission. 5: (101) Read and execute permissions. 6: (110) Read and write permissions. 7: (111) Read, write, and execute permissions.

Kels
Aug 1, 2023

It’s a file so immediately look for (-) at the beginning. (d) is a directory and (l) is symbolic link.

kuzummjakk
Sep 22, 2023

654 is correct. Just did it in a terminal and got -rw-r-x-r--

ter170107
Aug 15, 2024

4 = r 2 = w 1= x (-) Regular file rw = 4+2 = 6 r-x = 4+1 = 5 r-- = 4+0 = 4

linvidiaOption: E
Oct 26, 2022

user = rw group=r-x others=r

POGActual
Dec 12, 2022

E -rw-r-xr-- is correct. If this were asking about a directory, then 'A' would be the correct answer as the 'd' at the beginning of the permissions string denotes Directory.

Vovanich
Dec 20, 2022

E. -rw-r-xr--