ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 295 - XK0-005 discussion

Report
Export

A Linux administrator wants a permission bit on a shared folder that allows only the owner of the file within that directory or the root user to delete or rename the file. Which of the following commands will help achieve this goal?

A.

chmod u-w /directory/

Answers
A.

chmod u-w /directory/

B.

chmod a-r /directory/

Answers
B.

chmod a-r /directory/

C.

chmod o-t /directory/

Answers
C.

chmod o-t /directory/

D.

chmod +t /directory/

Answers
D.

chmod +t /directory/

Suggested answer: D

Explanation:

The +t option sets the 'sticky bit' on a directory, which restricts deletion or renaming of files in the directory to the file's owner or the root user. This is commonly used in shared directories like /tmp, where multiple users may have access, but only the file owner should be allowed to modify their own files. The command chmod +t /directory/ applies this permission.

asked 09/10/2024
Karoy Bandi
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first