Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Managing and Troubleshooting File Permissions

This lab touches on most things anyone would need to know when navigating and troubleshooting a filesystem. It will facilitate practice on octal permissions, setting ACLs, working with SELinux, special bits, and file attributes to complete a set of tasks that could happen in the real world.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
May 19, 2025
Duration
45m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Set /var/www/html up Using ACLs to Allow the devs Group Access

    First, we should run getfacl /var/www/html to get some baseline information.

    Since we don't see any currently set ACLs, let's set our own with the following command:

    setfacl -m d:g:devs:rwx /var/www/html

    Now anyone in the devs group can navigate to, and write to, /var/www/html.

  2. Challenge

    Fix Startup Errors for Apache

    Trying to run systemctl start httpd will give errors. Running journalctl -xe will show lines similar to this:

    Jan 09 20:32:46 Server1 httpd[7107]: (13)Permission denied: AH00091: httpd: could not open error log file /etc/httpd/l>
    Jan 09 20:32:46 Server1 httpd[7107]: AH00015: Unable to open logs
    

    It looks like a problem with the error log file, which is /var/log/httpd/error_log.

    ls -lZ /var/log/httpd/error_log shows:

    -rw-r--r--. 1 root root unconfined_u:object_r:admin_home_t:s0 0 Jan  9 20:17 /var/log/httpd/error_log
    

    Let's use restorecon to fix it:

    restorecon /var/log/httpd/error_log
    systemctl start httpd
    

    The service starts.

  3. Challenge

    Set up the /var/www/devs Directory so That All Files Created Are Owned by the devs Group

    First we should run ls -ld /var/www/devs to get a base of information about this directory.

    Then we can run the following commands to set it up as directed:

    chmod g+w /var/www/devs
    chown root.devs /var/www/devs
    chmod g+s /var/www/devs
    

    This will set the setGID bit on the directory and enable all new files and folders created to be owned by the devs group.

  4. Challenge

    Move /var/www/devs/index.html to /var/www/html and Make Sure the Page Is Served Correctly

    First we'll run mv /var/www/devs/index.html /var/www/html.

    This returns an "Operation not permitted" error. Since that's not a normal permission denied error, let's look at file attributes.

    lsattr /var/www/devs/index.html shows that the file has the immutable flag set. chattr -i /var/www/devs/index.html will allow us to do what we need for this task.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight