Question: Requirements: New user: Create a new user with the first 6 letters of your last name and the first 2 letters of your first name.

Requirements:
New user:
Create a new user with the first 6 letters of your last name and the first 2 letters of your first name. The user will be in the 'users' group and must be in the /home directory using zsh (must be installed) as the shell. You must utilize the 'comments' field.
Example: wittendo
*\$home = your home directory
Directory structure:
\$home/scripts/assignment5
\$home/scripts/assignment5/logs
\$home/scripts/assignment5/scripts
\$home/scripts/assignment5/tmp
\$home/scripts/assignment5/data
You will use this new user for your program.
Please create a shell program using the 'case' statement to get user input from a menu screen that allows the user to copy files, tar and move the files, set the hostname (details below), display the calculator application, or exit the program. They must accomplish the following:
1) Copy option:
a. Copy the following logs files to the portion of the logs directory as described above:
i. dmesg
ii. wtmp
iii. kern.log
iv. auth.log
2) tar / move option:
a. in a separate script (root ownership) create a tar bundle of the file from a. and move them to \(/\mathrm{dev}\)
Page 1 note: you will need to pass the command(s) to another script owned by root to complete the process
3) Set hostname option:
a. Modify the hostname name to name specified in the requirements section.
b. Please provide a snapshot of your program running with the new hostname.
4) Calculator program
a. Run the 'xcalc' program
Note: you must capture the PID as you will use it once you select the 'exit' portion.
5) Exit
a. Please close the xcalc application
b. Please move the tar file in / dev to the data directory listed in the requirements section
c. Please remove any file in the tmp directory listed in the requirements section.
Please provide all the code, snapshots of your code running, and proof that your hostname was changed.
Requirements: New user: Create a new user with

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 Programming Questions!