Tasks In a new Linux environment: 1). Create at least three new u...

  1. Home
  2. Homework Library
  3. Computer Science
  4. Linux
  5. Tasks In a new Linux environment: 1). Create at least three new u...

QuestionQuestion

Tasks
In a new Linux environment:
1). Create at least three new users. I will refer to them as U1, U2 and U3, but you should choose other, realistic usernames. Set their passwords to different values, but don’t use passwords that you actually use in other systems.
2). View the password information stored for the new users in /etc/passwd and /etc/shadow. Understand the information stored. E.g. Where is the salt stored? How many bits is the salt? What hash algorithm is used? Which file stores the hash?
3). Create at least one new group, where at least two users are in that group, and at least one user is not in that group. I will refer to the group as G1 but you should choose a realistic group name.
4). Create some directories and files inside each users home.
5). Configure access control so that:
• No other user can access U1’s files or directories.
• U2 has a directory that all members of G1 can view and create files in. Other files and directories of U2 are not accessible by other users.
• All users can view U3’s files.
• If the above does not specify all requirements, then the default permissions (set when the users were created) can be used.
6). Test that the access control works by logging in as each user and checking they can(not) access the specified files/directories.

Submission
There are three pieces of information to be submitted: the password information (/etc/shadow), group members (/etc/group) and the listing of files/directories for the users. To obtain the listing, as network user run:
$ sudo ls –lR /home/U1 /home/U2 /home/U3 > ~/listing.txt

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

/home/john:
total 60
drwx------ 2 john john 4096 Jul 22 15:41 Desktop
drwx------ 2 john john 4096 Jul 22 15:41 Documents
drwx------ 2 john john 4096 Jul 22 15:41 Downloads
-rwx------ 1 john john 8445 Jul 22 15:39 examples.desktop
-rwx------ 1 john john   11 Jul 22 16:03 file1
-rwx------ 1 john john    5 Jul 22 15:43 file1~
drwx------ 2 john john 4096 Jul 22 15:42 john1
drwx------ 2 john john 4096 Jul 22 15:42 john2
-rw-rw-r-- 1 john john    0 Jul 22 18:28 listing.txt
drwx------ 2 john john 4096 Jul 22 15:41 Music
drwx------ 2 john john 4096 Jul 22 15:41 Pictures
drwx------ 2 john john 4096 Jul 22 15:41 Public
drwx------ 2 john john 4096 Jul 22 15:41 Templates
drwx------ 2 john john 4096 Jul 22 15:41 Videos

/home/john/Desktop:
total 0

/home/john/Documents:
total 0

/home/john/Downloads:
total 0

/home/john/john1:
total 0...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

50% discount

Hours
Minutes
Seconds
$25.00 $12.50
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Linux Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats