Study for the TestOut Linux Pro Exam with our engaging quiz. Prepare using our flashcards and comprehensive multiple choice questions, each with hints and explanations to help you succeed. Get ready for your Linux certification today!

Practice this question and more.


What should you modify to allow the other group to browse the /sales directory?

  1. chmod o+rx /sales

  2. chmod o+r /sales/*

  3. chown sales /sales

  4. chmod g+rx /sales

The correct answer is: chmod o+rx /sales

To enable the other group to browse the /sales directory, the appropriate action is to modify the permissions of that directory itself. When using the command `chmod o+rx /sales`, you are granting read and execute permissions to others (the 'o' represents others) for the /sales directory. Execute permission allows users to enter the directory, while read permission allows them to list the files within that directory. Therefore, by adding both permissions, you ensure that any user not part of the owner group or the group associated with the directory can still navigate into /sales and see its contents. The other options don't correctly achieve the intended goal. For instance, granting permissions to individual files within the directory (as in another option) does not grant access to the directory itself. Additionally, changing the ownership of the directory or adjusting group permissions may not suffice if the intent is to allow all users outside the current group to have access. Thus, modifying the permissions for others on the directory itself is the most effective and direct approach.