0 of 16 lessons done
Course classroom
CompTIA Linux+ XK0-006

Day 5 of 15

Day 5 · Permissions, ownership and ACLs

Fix the support team's shared folder and lock down sensitive files: permissions, owners, special bits, ACLs and attributes.

⏱ 2 hours 🧪 16 terminal tasks ✅ 10 review questions 🔒 Part of the full course

By the end of this day you will be able to

  • Read and explain rwx permissions on files and on directories.
  • Change permissions with chmod in octal and symbolic notation, and owners with chown and chgrp.
  • Work out the permissions a umask leaves and set it.
  • Use SUID, SGID and the sticky bit, and build a shared folder for a team.
  • Grant permissions to specific people with ACLs (getfacl and setfacl).
  • Protect files with chattr, and find and remove unnecessary SUID bits.

Topics

  • Owner, group and others
  • rwx on files and directories
  • Octal and symbolic chmod
  • chown and chgrp
  • umask
  • SUID, SGID and sticky bit
  • Shared folders with SGID
  • ACLs: getfacl and setfacl
  • chattr and lsattr: +i and +a
  • Least privilege and SUID hunting

This lesson is part of the full course

It includes the full explanation, 16 terminal tasks that check themselves and 10 review questions. If you already bought the course, sign in and pick up where you left off.

Full course: $99 (regular price $149) · one payment · 12 months of access

Already paid? Sign in with the email you used to buy: we send you a 6-digit code, no password.

Want to try it first? Take a free trial of the course. Questions? Message us on WhatsApp.

Loading your lesson…

Go to the course classroom

See all the lessons in the course

The companies, people and data in the course stories are fictional; any resemblance to reality is coincidental.