Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using linux Log in as john Create a new group called project1 (needs sudo). Q1: Report your command. Add john to group project1 (needs sudo).

using linux

Log in as john

Create a new group called project1 (needs sudo).

Q1: Report your command.

Add john to group project1 (needs sudo). Note that project1 will be your additional group. Your primary group will still be john.

Q2: Report your command.

At this point, you need to log out and log in again as john. This step ensures that the system knows about your updated group membership. Failure to do so may create problems later in this task.

Create new user user01 using the following command (needs sudo). The -m option creates a home directory for the new user.

$ sudo useradd -m user01

Set password for user01 using the following command (needs sudo).

$ sudo passwd user01

Add user01 to group project1 (needs sudo).

Q3: Report your command.

Create a new directory project1 inside /home directory (needs sudo).

Q4: Report your command.

Set the permissions of /home/project1 such that owner and group have full access (read/write/execute), and others have no access (needs sudo).

Q5: Report your command.

Change the owner and group of /home/project1 to john and project1, respectively (needs sudo).

Q6: Report your command.

Set your umask to 0027.

Q7: Report your command.

Q8: What is the effect of the above command on newly created files by your user?

Download the latest Pro Git book as your first document in the project folder via the following command:

$ wget https://github.com/progit/progit2/releases/download/2.1.32/progit.pdf -P /home/project1

Log out as john and log in as user01.

Try copying the downloaded file /home/project1/progit.pdf to user01 home folder.

Q9: Why can't you copy the file?

Q10: What is the error message you received?

Log out as user01 and log in as john.

Change the group of the downloaded file /home/project1/progit.pdf to project1.

Q11: Report your command.

Now, log out again as john and log in as user01.

Try copying the downloaded file /home/project1/progit.pdf to user01 home folder.

Q12: Explain why you are successful this time.

How can you make sure that future files created in /home/project1 will be available to project1 members without needing to change ownership explicitly for every downloaded file?

Q13: Report your command.

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, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions