Question: Write a script to make sure that user home directories are owned and only accessible by the owner. The script can assume home directories are
Write a script to make sure that user home directories are owned and only accessible by the owner. The script can assume home directories are descendants of /users.
Finally, write a script which takes as an argument the filesystem name e.g. /home and looks for objects which do not belong i.e. end with the extension
a. mp3
b. aac
c. mp4
d. mov
e. avi
f. vid
When these files are found a summary should be produced including where they are and the size. The script should also remove the files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
