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 MCQs User and Group Administration

CSE105 — Creative Engineering Workshop 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 User Accounts and Groups Easy

    In Linux, what is the primary purpose of a user account?

  2. Question 2 of 60 User Accounts and Groups Easy

    What is the numeric identifier assigned to each user account called?

  3. Question 3 of 60 User Accounts and Groups Easy

    What is a group in Linux primarily used for?

  4. Question 4 of 60 useradd Easy

    Which command is used to create a new user account in Linux?

  5. Question 5 of 60 useradd Easy

    Which option with useradd specifies a custom home directory for the new user?

  6. Question 6 of 60 useradd Easy

    Which useradd option assigns a specific UID to the new user?

  7. Question 7 of 60 userdel Easy

    Which command removes an existing user account from the system?

  8. Question 8 of 60 userdel Easy

    Which userdel option also removes the user's home directory and mail spool?

  9. Question 9 of 60 usermod Easy

    Which command is used to modify an existing user account?

  10. Question 10 of 60 usermod Easy

    Which usermod option is used to change a user's login name?

  11. Question 11 of 60 usermod Easy

    Which usermod option adds a user to a supplementary group without removing existing ones?

  12. Question 12 of 60 groupadd Easy

    Which command is used to create a new group?

  13. Question 13 of 60 groupadd Easy

    Which groupadd option specifies a particular GID for the new group?

  14. Question 14 of 60 groupdel Easy

    Which command deletes an existing group from the system?

  15. Question 15 of 60 groupmod Easy

    Which command is used to modify an existing group's properties?

  16. Question 16 of 60 groupmod Easy

    Which groupmod option changes the name of an existing group?

  17. Question 17 of 60 Password Management Easy

    Which command is used to change a user's password?

  18. Question 18 of 60 Password Management Easy

    In modern Linux systems, where are the encrypted user passwords stored?

  19. Question 19 of 60 Important Files: /etc/passwd and /etc/group Easy

    Which file contains basic information about user accounts such as username, UID, and home directory?

  20. Question 20 of 60 Important Files: /etc/passwd and /etc/group Easy

    Which file stores group definitions and lists the members belonging to each group?

  21. Question 21 of 60 useradd Medium

    A system administrator runs useradd -m -s /bin/bash alice. What is the combined effect of the -m and -s options?

  22. Question 22 of 60 userdel Medium

    You want to delete the user bob and also remove his home directory and mail spool. Which command achieves this?

  23. Question 23 of 60 usermod Medium

    To add the existing user carol to the supplementary group developers without removing her from other groups, which command is correct?

  24. Question 24 of 60 Important Files: /etc/passwd and /etc/group Medium

    In /etc/passwd, an entry reads dave:x:1005:1005:Dave K:/home/dave:/bin/bash. What does the x in the second field indicate?

  25. Question 25 of 60 groupadd Medium

    An administrator needs to create a group named finance with a specific GID of 2000. Which command is correct?

  26. Question 26 of 60 Password Management Medium

    The command passwd -l user1 is executed. What is the effect on user1?

  27. Question 27 of 60 groupmod Medium

    To rename the group oldteam to newteam, which command should be used?

  28. Question 28 of 60 groupdel Medium

    An attempt to run groupdel projects fails. Which of the following is the most likely reason?

  29. Question 29 of 60 usermod Medium

    The command usermod -L eve is run. What does this accomplish?

  30. Question 30 of 60 Important Files: /etc/passwd and /etc/group Medium

    A line in /etc/group reads developers:x:2001:alice,bob. What do alice and bob represent in this entry?

  31. Question 31 of 60 useradd Medium

    Which command creates a system account svc with no login shell, commonly used for running services?

  32. Question 32 of 60 Password Management Medium

    You want to force user2 to change their password at next login. Which command sets this?

  33. Question 33 of 60 usermod Medium

    The command usermod -d /home/newdir -m frank is executed. What happens?

  34. Question 34 of 60 Important Files: /etc/passwd and /etc/group Medium

    How many colon-separated fields does a standard entry in /etc/passwd contain?

  35. Question 35 of 60 groupmod Medium

    To change the GID of the group qa to 3000, which command is correct?

  36. Question 36 of 60 User Accounts and Groups Medium

    In Linux, what is the primary difference between a user's primary group and a supplementary group?

  37. Question 37 of 60 useradd Medium

    Where does useradd read default values (like default shell and home base) from when options are not specified?

  38. Question 38 of 60 Password Management Medium

    The chage -l user3 command is used primarily to display what information?

  39. Question 39 of 60 User Accounts and Groups Medium

    When a new user is created without specifying a group, what typically happens on a system using the user private group (UPG) scheme?

  40. Question 40 of 60 Important Files: /etc/passwd and /etc/group Medium

    A user account has the shell field in /etc/passwd set to /usr/sbin/nologin. What is the practical effect?

  41. Question 41 of 60 Important Files: /etc/passwd and /etc/group Hard

    A line in /etc/passwd reads:


    john:x:1005:1005::/home/john:/sbin/nologin


    What is the practical consequence of the final field combined with the second field?

  42. Question 42 of 60 usermod Hard

    A user dev currently belongs to groups dev, docker, and sudo. An admin runs:


    usermod -G project dev


    What happens to the user's group membership?

  43. Question 43 of 60 useradd Hard

    An admin wants to create a system account backup with no login shell, no home directory creation, and a UID below 1000. Which command is correct?

  44. Question 44 of 60 userdel Hard

    A user alice is currently logged in with a running process. An admin runs userdel -r alice. What is the most likely outcome?

  45. Question 45 of 60 Password Management Hard

    In /etc/shadow, a user's entry has the fields ... :18000:0:90:7:14: :. What does the value 14 (the sixth field after last-change) represent?

  46. Question 46 of 60 groupmod Hard

    A group staff has GID 1010. An admin runs groupmod -g 1200 staff. Which statement about existing files is correct?

  47. Question 47 of 60 User Accounts and Groups Hard

    Two users, bob (UID 1002) and carol (UID 1002), both appear in /etc/passwd with the same UID. What is the security/functional implication?

  48. Question 48 of 60 groupadd Hard

    An admin needs to create a group ops with a specific GID 600, but GID 600 is already in use. Which command creates the group while allowing the duplicate GID?

  49. Question 49 of 60 Password Management Hard

    An admin runs passwd -l alice followed by passwd -S alice, which shows status L. What exactly did the lock do?

  50. Question 50 of 60 usermod Hard

    An admin wants to change user sam's home directory to /data/sam AND move the existing files. Which single command achieves both?

  51. Question 51 of 60 Important Files: /etc/passwd and /etc/group Hard

    In /etc/group, the entry wheel:x:10:root,admin lists members. If user admin also has wheel as their primary group in /etc/passwd, will admin appear in the groups admin output for wheel?

  52. Question 52 of 60 useradd Hard

    Given /etc/default/useradd defines SHELL=/bin/bash and /etc/login.defs sets CREATE_HOME yes, an admin runs useradd -s /bin/zsh dan. Which shell and home behavior result?

  53. Question 53 of 60 groupdel Hard

    An admin attempts groupdel developers, but the command fails. developers is the primary group of user eve. Why does it fail?

  54. Question 54 of 60 Password Management Hard

    An admin runs chage -M 60 -W 10 -I 5 frank. If frank's password was last changed on day 0, on which day (approximately) does the account become inactive/locked?

  55. Question 55 of 60 usermod Hard

    An admin runs usermod -L -e 1 grace. What is the combined effect?

  56. Question 56 of 60 Important Files: /etc/passwd and /etc/group Hard

    A corrupted /etc/passwd line reads:


    henry:x:1007:1007:Henry:/home/henry


    What is the effect of the missing seventh field?

  57. Question 57 of 60 User Accounts and Groups Hard

    A user needs group data's permissions for a new file they just created, but their session started before they were added to data via usermod -aG data user. Why does newgrp data help but re-login does not immediately?

  58. Question 58 of 60 groupmod Hard

    An admin runs groupmod -n engineers devs. After this, what is true about files previously owned by group devs?

  59. Question 59 of 60 userdel Hard

    After running userdel ivan (without -r), an admin creates a new user julia who receives ivan's old UID. What risk exists regarding ivan's leftover files?

  60. Question 60 of 60 useradd Hard

    An admin runs useradd -u 0 -o -g 0 shadowroot. What is the outcome and its significance?

That's unit 7

Answer a few questions and your score shows up here.