In: Computer Science
If you have not done so already, boot your client VM.
On the client VM, there is a user account named 'jsmith' who recently got married and changed their name. They would like their user account to reflect their new last name
1. Add a user account 'jjones'. (don't worry about setting the password)
2. In the home directory of the 'jsmith' account, there are 2 files. Copy these files to the home directory of the 'jjones' account.
3. Change the ownership of the files you just copied to 'jjones' (hint - you'll need to be root to do this). Do not change the group ownership.
4. While in the 'jjones' account's home directory, run the ls -l command and take a screen shot that shows that you've changed ownership of the files.
5. Upload the screen shot to Moodle.
Step 1: Enter the command sudo adduser jjones to add a new user named jjones.
Set any password you want to set for the user jjones and leave all remaining fields (like Full Name, Room Number, etc.) by pressing ENTER.
Step 2: Enter the command sudo cp -p /home/jsmith/* /home/jjones to copy all files from the home directory of jsmith to the home directory of jjones and preserving ownership of the file.
Step 3: Enter the command sudo chown jjones /home/jjones/* to change the ownership of the files to jjones while preserving the group ownership.
Step 4: Enter the command cd /home/jjones to go to the home directory of jjones and run the command ls -l to list all files in the home directory of jjones.
NOTE: The above commands have been used and tested in Ubuntu and dummy users and files have been used for the demonstration purpose.
FOR ANY HELP JUST DROP A COMMENT