XK0-006 System Management Practice Question
A user has a file with permissions set to 644. Which of the following commands will add the setuid permission to the file? (Choose two.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
chmod u+s file
chmod u+s file adds setuid via symbolic. chmod 4644 file sets permissions to rwsr--r-- (setuid). The other options: chmod 2644 sets SGID; chmod 1644 sets sticky bit; chmod g+s sets SGID.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
chmod u+s file
Why this is correct
Correct: symbolic mode for setuid.
- ✗
chmod g+s file
Why it's wrong here
Sets SGID, not SUID.
- ✗
chmod 1644 file
Why it's wrong here
1644 sets sticky bit, not SUID.
- ✓
chmod 4644 file
Why this is correct
Correct: octal 4xxx sets setuid.
- ✗
chmod 2644 file
Why it's wrong here
2644 sets SGID, not SUID.
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
Key term
User
A user is any person, system, or device that interacts with an IT service, resource, or identity system, typically authenticated through credentials and authorized to perform specific actions.
Key term
chmod
chmod is a command in Linux and Unix-like operating systems used to change the permissions (read, write, execute) of a file or directory.
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.