Users, permissions, ownership
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 -lshows them:-rwxr-x---.chmod 640 fileorchmod u+x filechanges permissions;chown user:group filechanges ownership.- Run services as a dedicated, unprivileged user, not root.
sudoruns 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.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.