Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!