Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 . Check file and directory details In this task, you must explore the permissions of the projects directory and the files it contains.

Task 1. Check file and directory details
In this task, you must explore the permissions of the projects directory and the files it contains. The lab starts with /home/researcher2 as the current working directory. This is because you're changing permissions for files and directories belonging to the researcher2 user.
Navigate to the projects directory.
List the contents and permissions of the projects directory.
The permissions of the files in the projects directory are as follows:
total 20
drwx--x---2 researcher2 research_team 4096 Oct 1418:40 drafts
-rw-rw-rw-1 researcher2 research_team 46 Oct 1418:40 project_k.txt
-rw-r-----1 researcher2 research_team 46 Oct 1418:40 project_m.txt
-rw-rw-r--1 researcher2 research_team 46 Oct 1418:40 project_r.txt
-rw-rw-r--1 researcher2 research_team 46 Oct 1418:40 project_t.txt
Note: The date and time information returned is the same as the date and time when you ran the command. Therefore, it is different from the date and time in the example.
As you may recall from the video lesson, a 10-character string begins each entry and indicates how the permissions on the file are set. For instance, a directory with full permissions for all owner types would be drwxrwxrwx:
The 1st character indicates the file type. The d indicates its 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.
The second block of text in the expanded directory listing is the user who owns the file. The third block of text is the group owner of the file.
What is the name of the group that owns the files in the projects directory?
researcher2
research_team
security_team
other_users
Check whether any hidden files exist in the projects directory.
Which of these files is hidden in the projects directory?
.project_x.txt
.project_m.txt
There are no hidden files
.project_r.txt
ClickCheck my progressto verify that you have completed this task correctly.
You have not completed this task. You can use the ls -l and ls -la commands to check the permissions of the projects directory and to check if it contains hidden files.
Check file and directory details

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

What is involved in the administration of a labor agreement?

Answered: 1 week ago

Question

What are topics included in virtually all labor agreements?

Answered: 1 week ago