Linux CLI - Users and GroupsYou want to ensure only specific users can access a sensitive directory. Which approach best secures it?ASet directory ownership to a group and add only allowed users to that groupBMake the directory world-readableCDelete all users except the adminDUse the same password for all usersCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand group-based permissionsAssigning directory ownership to a group lets you control access by group membership.Step 2: Add only allowed users to the groupThis restricts access to only those users in the group.Final Answer:Set directory ownership to a group and add only allowed users to that group -> Option AQuick Check:Group ownership controls access = A [OK]Quick Trick: Use groups to control directory access [OK]Common Mistakes:MISTAKESMaking directory world-readableDeleting users unnecessarilySharing passwords weakens security
Master "Users and Groups" in Linux CLI9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Linux CLI Quizzes File Permissions and Ownership - Special permissions (setuid, setgid, sticky bit) - Quiz 3easy File Permissions and Ownership - Permission types (read, write, execute) - Quiz 11easy File and Directory Operations - touch (create empty files) - Quiz 10hard File and Directory Operations - mv (move and rename) - Quiz 6medium Linux Basics and Terminal - Opening and using the terminal - Quiz 13medium Navigating the File System - ls (list files and directories) - Quiz 7medium Users and Groups - su (switch user) - Quiz 13medium Users and Groups - groups and group management - Quiz 15hard Users and Groups - groups and group management - Quiz 9hard Viewing and Editing Files - diff for file comparison - Quiz 13medium