File permissions in Linux

I completed this during Google's Cybersecurity Certificate Program.

Project description

In the project directory, there are several files, including a hidden file, and a subdirectory that have permissions in need of being updated. I checked the directory and file permissions, identified what needed to be changed, then updated the permissions.

Check file and directory details

Describe the permissions string

Above, I can see that project_k.txt has read and write permissions for the user, group and other. However, other should not be able to write.

In project_m.txt the group currently has read permission, but it should not.

In the hidden file, .project_x.txt, the only permission should be the user and group having read permission.

Last, in the directory drafts, the group should not have executable permissions.

Below are steps taken to verify the current permission and update them. At times, I look at permissions for only a specific file or directory to reduce the possibility of the error.

Change file permissions

Change file permissions on a hidden file

Change directory permissions

Summary

After reviewing and updating permissions, all permissions for the directory projects/ are updated and correct. The security team would be able to move forward confidently knowing that they are following the rule of least privilege.

Last updated