Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 7 subjective questions User and Group Administration

CSE105 — Creative Engineering Workshop 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define a user account in Linux. Explain the difference between a system account and a normal user account.

  2. Question 2 of 20

    Explain the purpose and syntax of the useradd command. Describe at least four commonly used options with examples.

  3. Question 3 of 20

    Describe the usermod command in detail. How can it be used to modify user attributes such as group membership, home directory, and shell?

  4. Question 4 of 20

    Explain the userdel command. What is the significance of the -r option, and what precautions should be taken while deleting a user?

  5. Question 5 of 20

    Describe the structure of the /etc/passwd file. Explain each of its seven fields with an example entry.

  6. Question 6 of 20

    Explain the structure of the /etc/group file. How does it define group memberships in Linux?

  7. Question 7 of 20

    Distinguish between a primary group and a secondary (supplementary) group. Explain how each is assigned to a user.

  8. Question 8 of 20

    Explain the groupadd, groupmod, and groupdel commands with syntax and examples for each.

  9. Question 9 of 20

    Describe the passwd command and explain how password management works in Linux. Include options for locking, expiring, and forcing password changes.

  10. Question 10 of 20

    Explain the /etc/shadow file and its importance. Describe its major fields and how it enhances security compared to /etc/passwd.

  11. Question 11 of 20

    Compare the useradd and adduser commands. Why might an administrator prefer one over the other?

  12. Question 12 of 20

    A user's supplementary groups were accidentally overwritten. Explain what likely caused this and demonstrate the correct way to add a user to multiple groups without losing existing memberships.

  13. Question 13 of 20

    Explain the significance of UID 0 in Linux. What are the security implications of a non-root account having UID 0?

  14. Question 14 of 20

    Describe the role of the /etc/skel directory in user account creation. How does it relate to the useradd command?

  15. Question 15 of 20

    Explain the chage command and its role in password aging. Describe at least four options with examples.

  16. Question 16 of 20

    Illustrate the complete lifecycle of a user account in Linux — from creation to deletion — including relevant commands and the files affected at each stage.

  17. Question 17 of 20

    Distinguish between the /etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow files by tabulating their purpose, content, and permissions.

  18. Question 18 of 20

    Explain the concept of account locking in Linux. Compare the different methods (usermod -L, passwd -l, setting shell to /sbin/nologin) and their effects.

  19. Question 19 of 20

    Describe how default values for new users are configured in Linux. Explain the role of the /etc/login.defs and /etc/default/useradd files.

  20. Question 20 of 20

    A company requires a shared project directory accessible by a team. Explain step-by-step how you would create a group, add users, and configure the directory with appropriate group ownership and permissions (including the SGID bit).

That's unit 7

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.