hi pleas help me to solve this question in centos 7 :1. Use one single command to create…
- User
hi pleas help me to solve this question in centos 7 :1. Use one single command to create a user account named student, including a home directory and has 1500 as UID. 2. Use one single command to create a user named mathStudent, including home directory, bash shell, and a description. 3. How can you verify that both users are correctly created? 4. Verify that their home directory was created. 5. Create the file2.txt file and make every new user will see this file in its home directory. 6. Change the default login shell for the mathStudent user to /bin/sh. Verify before and after you make this change. 7. Create the groups Math, English and Oop. 8. In one command, make student a member of English and Oop 9. Rename the English group to French 10. Use vi to add mathStudent to the Math group 11. Use the id command to verify that the Math group contains the mathStudent user 12. As regular user, create a directory ~/Test and a file owned by yourself in the new directory. 13. Copy a file owned by the root user from /etc/ directory to your Test directory, who owns this file now? 14. As root user, create a file in the users ~/Test directory. 15. Change the ownership of all files in ~/Test to yourself. 16. Display the umask value, and then set the umask to 077. Verify that this works. 17. Create a file as root user, give only read to others. Can a regular user read this file? Proof you answer. 18. Which of the following commands is used to change the group owner of a file? a. group b. chgroup c. chgrp d. changegroup e. None of the above 19. Which octal notation below represents permissions of rwxr-x--x? a. 751 b. 762 c. 007 d. 267 20. Which permission represents the octal notation 701? a. rwx---r-- b. r-----rwx c. rwx-----x d. x-----rwx
- Assistant
- User
thank you
- Assistant
You're welcome! If you have any more questions, feel free to ask.