101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 78


Running chmod 640 filea.txt as a regular user doesn't update filea.txt's permission. What might be a reason why chmod cannot modify the permissions? (Choose two.)

Show Answer
Correct Answer: AB

A regular user cannot change the permissions of a file owned by another user, and a symbolic link's permissions are a fixed value which cannot be changed.

Discussion

8 comments
Sign in to comment
MIUOptions: AB
Nov 22, 2020

filea.txt is a symbolic link whose permissions are a fixed value which cannot be cha"N"ged.

toni23Options: AB
Feb 8, 2022

you can change the permissions on a hard link file without issues due it will be change the permissions in the original source too. You cannot change the permissions on symbolic inks due all is under 777

Robert12Options: AC
Mar 24, 2021

A Sticky bit is a permission bit that is set on a file or a directory that lets only the owner of the file/directory or the root user to delete or rename the file. No other user is given privileges to delete the file created by some other user.

McLaba
Mar 31, 2021

Sticky bit is just for directories

Robert12
Mar 24, 2021

Permissions on all hard links to the same data on disk are always identical. The same applies to attributes. That means if you change the permissions/owner/attributes on one hard link, you will immediately see the changes on all other hard links.

minhng99Options: AD
Jan 2, 2022

Wait, isn't D is more correct? A hardlink permission is inherited and cannot be changed by anyone else but root/owner

Sloop93Options: AB
Mar 31, 2022

are correct

LazylinuxOptions: AB
Apr 10, 2022

Is correct answer

KiddyLittyOptions: AB
Apr 14, 2022

A, B is correct bcos you cannot change permission of softlink/symbolic link.