0% found this document useful (0 votes)
77 views10 pages

Portfolio

This document outlines a project focused on managing file permissions in Linux as part of the Google Cybersecurity Professional Certification. It details the importance of authorization, describes the process of checking and modifying file and directory permissions, and provides specific examples of commands used to adjust permissions. The project concludes with a summary of the actions taken to align permissions with organizational security requirements.

Uploaded by

Cyberdine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views10 pages

Portfolio

This document outlines a project focused on managing file permissions in Linux as part of the Google Cybersecurity Professional Certification. It details the importance of authorization, describes the process of checking and modifying file and directory permissions, and provides specific examples of commands used to adjust permissions. The project concludes with a summary of the actions taken to align permissions with organizational security requirements.

Uploaded by

Cyberdine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Linux File Permissions Project [Portfolio]

Google Cybersecurity Professional Certification

Marcelo Gomes Portfolio Project 2024


Project Portfolio
Title Using Linux-commands-to-manage-file-permissions
Version 2.3
Date Issued 30/08/2024
Status Finished
Document owner Marcelo Da Silveira Gomes
Creator name Marcelo Da Silveira Gomes
Creator organisation name Google [Coursera]
Subject category Cybersecurity – Linux - Permissions

Marcelo Gomes Portfolio Project 2024


Contents
1. Project Description..........................................................................................................................................................................................
2. Check file and directory details .......................................................................................................................................................................
3. Describe the permissions string ......................................................................................................................................................................
4. Change file permissions..................................................................................................................................................................................
5. Change file permissions on a hidden file .........................................................................................................................................................
6. Change directory permissions.........................................................................................................................................................................
7. Summary ........................................................................................................................................................................................................

Marcelo Gomes Portfolio Project 2024


1. Project Description
Authorization is the concept of granting access to specific resources in a system. It's important because without
authorization any user could access and modify all files belonging to other users or system files.
This would certainly be a security risk. In Linux, file and directory permissions are used to specify who has access
to specific files and directories.
The permissions do not currently reflect the level of authorization that should be given. Checking and updating
these permissions will help keep their system secure.

To complete this task, I performed the following tasks:

Marcelo Gomes Portfolio Project 2024


2. Check File and directory details.
This document displays the file structure of the /home/researcher2/projects directory and the permissions of the
files and subdirectory it contains.
In the /home/researcher2/projects directory, there are five files with the following names and permissions.
To check this, I run the ls -la command in the Shell terminal:

I use the First, ls -la displays permissions to files and directories. This shows the files and directories, including
the hidden ones.

Marcelo Gomes Portfolio Project 2024


3. Describe the permissions string.
The 10-character string begins each entry and indicates how the permissions on the file are set.
 The 1st character indicates the file type. The d indicates it’s a directory. When this character is a hyphen (-
), it's a regular file.
 The 2nd-4th characters indicate the read (r), write (w), and execute (x) permissions for the user. When one
of these characters is a hyphen (-) instead, it indicates that this permission is not granted to the user.
 The 5th-7th characters indicate the read (r), write (w), and execute (x) permissions for the group. When
one of these characters is a hyphen (-) instead, it indicates that this permission is not granted for the
group.
 The 8th-10th characters indicate the read (r), write (w), and execute (x) permissions for the owner type of
other. This owner type consists of all other users on the system apart from the user and the group. When
one of these characters is a hyphen (-) instead, that indicates that this permission is not granted for other.

Marcelo Gomes Portfolio Project 2024


4. Change file permissions.
The organization does not allow other to have write access to any files. Based on the permissions established in
Step 3, identify which file needs to have its permissions modified. Use a Linux command to modify these
permission.
The file project_m.txt is a restricted file and should not be readable or writable, even by the group. List the contents
and permissions of the current directory and check if the group has read or write permissions.
Then, I used the chmod command to change permissions of the project_m.txt file so that the group doesn’t have
read or write permissions.

Marcelo Gomes Portfolio Project 2024


5. Change file permissions on a hidden file.
The research team has archived .project_x.txt, which is why it’s a hidden file. This file should not have write
permissions for anyone, but the user and group should be able to read the file. Used a Linux command to assign
.project_x.txt the appropriate authorization.

By using this command and setting the correct permissions, I’ve changed the permissions of the file .project_x.txt
so that both the user and the group can read, but not write to, the file.

Marcelo Gomes Portfolio Project 2024


6. Change directory permissions.
The files and directories in the project’s directory belong to the researcher2 user. Only researcher2 should be
allowed to access the drafts directory and its contents. Used a Linux command to modify the permissions
accordingly.

With this command, I’ve removed the execute permission for the group from the drafts directory.

Marcelo Gomes Portfolio Project 2024


7. Summary
I examined various permissions to align them with my organization's desired level of authorization for files and
directories in the project’s directory. To begin, I utilized the ls -la command to assess the existing permissions
of the directory. This provided valuable insights that guided my subsequent actions. Afterwards, I employed the
chmod command multiple times to modify the permissions of both files and directories.

Marcelo Gomes Portfolio Project 2024

You might also like