Fill This Form To Receive Instant Help
Homework answers / question archive / Command line - Terminal Submit commands in one word file Log as root 1
Command line - Terminal
Submit commands in one word file
Log as root
1. Add four new users: manager1, manager2, sale1and sale2 and set their password
2. Create two groups: managers and sales
3. Add the two users manager1 and manager2 to the group managers
4. Add the two users sale1 and sale2 to the group sales
5. Create a new directory /DOCS
6. Allow any user to read ,write and execute to the /DOCS directory but only the user owner
or root can delete or rename the files or subdirectories in the /DOCS directory
Log as manager1
7. Create a new directory /DOCS/MgrDocs
8. Create and edit a new file /DOCS/MgrDocs/project1
9. Change the group owner of the directory MgrDocs and the files within it to managers
10. Change the permission of the directory MgrDocs and the files within it to allow managers
to read write and execute, and deny other users.
Log as manager2
11. Are you able to delete the MgrDocs folder
12. Verify if you can access the MgrDocs folder
13. Are you able to make a change to project1
14. Are you able to create a new file project2 in MgrDocs
15. Change the group owner of your file project2 to managers
16. Change the permission of your file project2 to allow read ,write ,execute to managers, and
deny other users.
17. Create and edit a new file /DOCS/doc2.txt
18. Change the group owner of your file doc2 to managers
19. Change the permission of your file doc2.txt to allow read, write, execute for managers,
and read only for the other users.
20. Create a new directory /DOCS/Infos
21. Change the group owner of the directory /DOCS/Infos to managers
22. Allow managers to read, write and execute to the /DOCS/Infos directory but only the user
owner or root can delete or rename the files within it. Other users have no access.
23. Create and edit a new file /DOCS/Infos/info2.txt
24. Change the group owner of the file info2.txt to managers
25. Change the permission of your file info2.txt to allow read, write, execute for managers,
and no access for other users.