1. Use UGOA notation to change the following file's
permission from this:
-rw-r----- 1 ryan ryan ....... topsecret.jpg
to this:
-rwxr-xrw- 1 ryan ryan ....... topsecret.jpg
USE UGOA NOTATION ONLY - NOT OCTAL (5 points)
2. User rswanson has quit to pursue carpentry and I need to not
only remove his account from my server, but backup the user's home
directory AND then delete all files which were owned by the user.
What SINGLE command would do this? (5 points)
3. Whoops! I just ran the following command:
# sudo chmod 000 ./mydirectory
Now I can't read the directory or cd into it! Show me a
command that would allow the directory's owner and group to cd to
the directory and list the contents for the owner and group of the
directory ONLY! (5 points)
sudo chmod -R u+r ./mydirectory
4. I want to manually mount a thumb drive (/dev/sdb1) that has an
NTFS (Windows) file system. I created a directory called
'evidence' on which to mount it. Specify the command to
manually mount the thumb drive on the directory '~/evidence'. Note:
I don't want to see 'auto' in the answer. (5 points)
5. I'm finished with the thumb drive from Question
4 above. Specify the command to unmount the drive. (5
points)
6. I have a file called "backup.tgz" which is owned by user
buster. I want to change the owner of that file to user tobias and
the group to maeby. What command would do this? (5 points)
7. I want to create a new user jharkness. I want his home
directory to be /home/jack, I want his user ID to be 314, and I
want his shell to be /bin/dash. What single command would do this?
(5 points)
8. Regarding question 7 above, I want to modify the
jharkness account so his shell is /bin/bash. What command would do
this? (5 points)
9. I want to allow jharkness to be able to use 'sudo.'
Explain what you would do to allow this in Mint. (5
points)