Courseiva

010-160 · topic practice

Security And File Permissions practice questions

This domain covers Linux local account and group management plus file permission mechanics on the 010-160 exam. You are tested on reading /etc/passwd, /etc/shadow and /etc/group, interpreting rwx bits for owner, group and other, and applying chmod, chown, chgrp, usermod and special bits like setgid and the sticky bit.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Security And File Permissions

What the exam tests

What to know about Security And File Permissions

Be able to inspect /etc/passwd, /etc/shadow and /etc/group, then set correct ownership and permissions with chown, chgrp, chmod and usermod. The key skill is choosing the right permission bits and special bits so only intended users can read, write or delete files.

Reading /etc/passwd, /etc/shadow and /etc/group to audit accounts, shells and group membership

Interpreting and setting rwx permissions with chmod symbolic and octal notation

Changing ownership with chown and group ownership with chgrp, and primary groups with usermod -g

Applying the sticky bit on shared directories and setgid on shared group directories

Watch out for

Common Security And File Permissions exam traps

  • ▸Confusing the sticky bit, which restricts deletion in shared directories, with setgid, which makes new files inherit the directory group.
  • ▸Assuming chmod changes ownership; only chown and chgrp do, and usermod -g changes a user's primary group.
  • ▸Forgetting that permissions are checked owner, then group, then other, so a matching group entry overrides other bits.

Practice set

Security And File Permissions questions

20 questions · select your answer, then reveal the explanation

A user reports they cannot execute a script named 'deploy.sh' even though the file permissions are set to 644. What must you change to enable execution for the owner?

Which TWO of the following files are essential for basic user and group management?

Which command would you use to change the expiration date of a user's password?

Which TWO of the following characterize the 'root' user in Linux?

A junior administrator runs `ls -l /srv/payroll` and sees the permissions string `drwxrwx---` with owner `hr` and group `finance`. A member of the group `audit` needs read access to files inside this directory, and you must accomplish this without altering the permissions of any files already inside. Which approach meets the requirement?

You are reviewing the security posture of a Linux server. You want to identify which files have the SUID or SGID permission bits set, because these can pose privilege-escalation risks. Which TWO commands will list such files? (Choose two.)

A junior administrator needs to grant read and write access to a file named report.txt for the user alice, while ensuring that the file's group (finance) can read it and no one else has any access. The file currently has mode 640 and is owned by alice:finance. Which TWO commands will achieve the required permissions? (Choose two.)

An administrator is reviewing how Linux decides whether a process may open a file, and wants to confirm which statements about the permission-checking model are accurate. (Choose two.)

A developer stores a script at /home/dev/deploy.sh and wants to prevent other users on the system from reading, writing, or executing it. The file is currently owned by dev with permissions 644. Which command should the developer run?

A security administrator notices that a script located at /usr/local/bin/backup.sh has permissions -rwsr-xr-x and is owned by root:root. The administrator wants to prevent the script from running with root privileges while still allowing all users to execute it. Which command should be executed?

A security policy requires that new files created by any user on a shared project directory automatically belong to the group 'projectteam' instead of the user's primary group. Which command should the administrator run on the directory /srv/project to achieve this?

A user named dave complains that he cannot change into the directory /data/reports even though he has read permission on it. Which TWO of the following could be the reason? (Choose two.)

You are managing a directory shared by a project team. You want all files created in this directory to automatically belong to the 'developers' group, regardless of the user's primary group. Which command achieves this?

You want to change the primary group of an existing user named 'bob' to 'staff'. Which command should you use?

A system administrator needs to identify the numerical ID (UID) of the user 'jdoe'. Which file should be checked?

A user's account has been compromised. Which command is the most effective way to lock the user account immediately while preserving their files?

Which permission bit must be set on a directory to allow a user to enter the directory and access files within it?

You are configuring a temporary directory where multiple users save files. To ensure that users can only delete their own files and not files created by others, what must you set?

You need to prevent a standard user from accidentally deleting a critical configuration file owned by root. Which command ensures the file cannot be modified or deleted even by the root user?

Which command-line tool is used to display the groups a specific user belongs to?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Security And File Permissions sessions

Start a Security And File Permissions only practice session

Every question in these sessions is drawn from the Security And File Permissions domain — nothing else.

Related practice questions

Related 010-160 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the 010-160 exam test about Security And File Permissions?
Be able to inspect /etc/passwd, /etc/shadow and /etc/group, then set correct ownership and permissions with chown, chgrp, chmod and usermod. The key skill is choosing the right permission bits and special bits so only intended users can read, write or delete files.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Security And File Permissions questions in a focused session?
Yes — the session launcher on this page draws every question from the Security And File Permissions domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other 010-160 topics?
Use the topic links above to move to related areas, or go back to the 010-160 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the 010-160 exam covers. They are not copied from any real exam or dump site.