Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Linux terminal Please provide answer ordered by numbers Write a bash command lin

ID: 3601950 • Letter: L

Question

Linux terminal

Please provide answer ordered by numbers

Write a bash command line for the following actions 1.- Create a regular user named user01. 2.- As super-user create a directory called backup under the home directory of user01 and change the owner and group associated to the directory to user01 3.- Set security on the backup directory so that user01 has all permissions and no one else has any permissions. 4.- Write a script for creating a backup of all your data in the folder backup. In the creation of the copy of security exclude the copy of the folder backup. The name of the backup must be like backupUserData 10 26_17.zip. The name of the script and location will be /home/user01/backup/backupUserData.sh 5.- Add the script above to the crontab scheduler of user01 in such a way that a new copy of security is created every Friday at 11:30 pm. Specify the text line to be added in the job scheduler.

Explanation / Answer

1. useradd user01

2. cd /home

  mkdir "backup"

chown user01 cd/home

  chown :user01 cd/home

3. chmod 500 cd/home

4. tar -cvpzf /home/backup/backupUserData_10_26_17.zip.gz /home

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote