Answered You can hire a professional tutor to get the answer.

QUESTION

User Management 1.

I need help with these command

Challenge Lab A: User Management

  • Createa directory at the root (/) of the file system for each department. This name should reflect the department name that will use the directory.

Commands Used to Create Directories:

  • Create a group for each department. This name should reflect the department name that the group will be assigned.

Commands Used to Create Engineering Group:

Commands Used to Create Sales Group:

Commands Used to Create IS Group:

Commands Used to Prove that the Groups were Created:

  • Create an administrative user for each of the departments.
  • The user will have a Bash login shell.
  • The user will belong to the respective group for each department. This will need to be the user's primary group.

Commands Used to Create Administrative User for Engineering:

Commands Used to Create Administrative User for Sales:

Commands Used to Create Administrative User for IS:

  • Create two additional users for each department.
  • The users will have a Bash login shell.
  • The users will belong to their respective group for each department. This will need to be the user's primary group.

Commands Used to Create User #1 (jsmith) for Engineering:

Commands Used to Create User #2 (mmatt) for Engineering:

Commands Used to Create User #1 (lmario) for Sales:

Commands Used to Create User #2 (dpeach) for Sales:

Commands Used to Create User #1 (lrose) for IS:

Commands Used to Create User #2 (bparr) for IS:

  • For security reasons, the following modifications will need to be made to each of the departments' respective directories:
  • Ensure that the owner of each of the directories is the department administrator and the group ownership is the group for each department.
  • The department administrator will have full access to their respective department directories.
  • Ensure that only the owner of a file in the department's directory can delete the file. The user will also have ownership of their respective department folders.
  • Normal users in each department will have full access (Read, Write and Execute) to their respective department folders.
  • The department folders will ONLY be accessible by users/administrators in each of the respective departments. Ensure that no one else will have permissions to the folders.

Commands Used to Set Permissions for /Engineering:

Commands Used to Set Permissions for /Sales:

Commands Used to Set Permissions for /IS:

  • Create a document in each of the department directories.
  • The ownerships on this file will be the same as the directory it is located in.
  • The document should contain only one line of text that states, "This file contains confidential information for the department."
  • This file can be read by any user in the department, but can only be modified by the department administrator. No one else has permissions to this file.

Commands Used to Create Document and Set its Permissions in /Engineering:

Commands Used to Create Document and Set its Permissions in /Sales:

Commands Used to Create Document and Set its Permissions in /IS:

Commands Proving that Administrative Permissions are Effective:

Commands Proving that Group Permissions are Effective (Part 1 of 3):

Commands Proving that Group Permissions are Effective (Part 2 of 3):

Commands Proving that Group Permissions are Effective (Part 3 of 3):

Commands Proving that Others ("World") Permissions are Effective:

Challenge Lab B:

  • Create a new group. Each group must have a unique name. The script must check to ensure that no duplicate group names exist on the system. If a duplicate is found, an error needs to be reported, and the administrator must try another group name.
  • Create a new user. Each user must have a unique name. The script must check to ensure that no duplicate usernames exist on the system. If a duplicate is found, an error needs to be reported and the administrator must try another username. The user will have a Bash login shell and belong to the group that was created in the previous step.
  • Create a password for each user that is created.
  • Ensure that the new user created is a member of the new group created.
  • Create a directory at the root / of the file system with same name as the user created.
  • Set the ownership of the directory to the user and group created.
  • Set the permissions of the directory to full control for the owner and full control for the group created.
  • Set the permissions to ensure that only the owner of a file can delete it from the directory.
  • Ensure that the script is executable.

Script used to Perform User Management:

Screenshot 1 of 2: Proof that Script was Created:

Screenshot 2 of 2: Proof that Script was Created:

Screenshot 1 of 2: Proof that the Script Ran Successfully:

Screenshot 2 of 2: Proof that the Script Ran Successfully:

Challenge Lab C: Log File Archiving:

  • Create an archive named log.tar that is stored in the archive directory located in the home directory.
  • Remove path names from the files that are archived.
  • Produce verbose output while archiving.
  • List the contents of the archive without extracting.
  • Extract the files to the directory, ~/backup.

Commands Used to Create Directories and Archive:

Commands Used to List Archive Contents (Without Extracting):

Commands Used to Extract Files to ~/backup:

Lab Challenge D: Pipes, Redirection, and REGEX:

  • Extract all the service names from the file.
  • Sort the names alphabetically removing any duplicates.
  • Remove any blank lines or lines that do not begin with a letter of the alphabet.
  • Capture the final output to a file named uniqueservices.txt.
  • Count the lines in the file using a conditional command that is only executed if the previous combined commands are successful.

Commands Used to Create uniqueservices.txt and Extract the Service Names to the File:

Commands Used to Prove that the Data was Extracted Successfully:

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question