Skip to content
Ameen Abozaid
Planned lessonJNR-048-L03

Users, permissions, ownership

  • Lesson 3 of 7
  • Junior
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

read and set file permissions without using chmod 777.

Planned topics

  • Every file has an owner, a group, and three permission sets: owner, group, others, each with read, write, execute.
  • ls -l shows them: -rwxr-x---.
  • chmod 640 file or chmod u+x file changes permissions; chown user:group file changes ownership.
  • Run services as a dedicated, unprivileged user, not root.
  • sudo runs one command with admin rights; use it sparingly.
Draft outline details

Demonstration

-rw-r----- shop shop app.env means the owner reads and writes, the group reads, others get nothing.

Check your understanding

What does chmod 777 do and why is it bad?

Show answer

Gives everyone full access; a security risk.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.