Lab 2 04-22-2024

.docx

School

Towson University *

*We aren’t endorsed by this school

Course

274

Subject

Computer Science

Date

Apr 29, 2024

Type

docx

Pages

11

Uploaded by ojomark025 on coursehero.com

ITEC 274: Linux Lab Mark Ojo, ITEC274 Instructions Answer the questions below thoroughly and completely (half complete commands will not be sufficient for some questions) . You will submit your answers for this part of the homework via this word document . No other documents or formats will be accepted. Submit via BlackBoard / LAB . *Perform the following using the Ubuntu VM you created in class. **All work is to be done from the Linux terminal console window NOT the GUI. You will lose points otherwise. Note: Your screenshot must be clear enough to understand what is on the image. You will lose points if screenshots are not clear. 1. Working with User and Group from the Linux command line a. Create two new user account, one call testuser2 and the other use your < last-name> for the second account. Set the passwords to different values, but don't use passwords that you actually use in other systems. i. What command did you use to create the user accounts? [ give full command- type this out ] Ans. sudo adduser test1 (accidentally types test1 instead of testuser2
b. Show the password information stored for both user account created above i. Paste only the section that shows both accounts information here c. Create one (1) new group, call the group itec274. Check that the group was created i. What command did you use to check that the group was created? [ give full command – type this out ] Ans. getent group ii. Assign both user accounts created above to the group itec274 Show that the user accounts are added to the group itec274 <Paste screenshot here…>
What command did you use to show that the user accounts are added to the group itec274? i. Give full command – type this out Ans. groups test and groups ojo 2. Working with Permissions and Access Control a. Login to the second user account created with your last-name. i. Create two directories label [dirY, dirD] and three files label [hw3.txt, hw4.txt, hw5.txt] inside home directory. ii. Add some text to at least two (2) of the files created above b. Show the contents of the second user account home directory? (include permissions, file / directory names, size, date and time stamps) Hint: use long option [Paste a screen shot showing the contents of second user account home directory…]
c. Move hw4.txt and hw5.txt to directory dirD and Copy hw3.txt to dirY directory. i. Show that the files have been moved and copied to the intended directories. <past screenshot here…>
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help