User and Group Management

Check knowledge of managing users,groups,and access control.

1. Which command is used to create a new user account in Linux?
2. Which file stores default user creation settings such as default shell and home directory path?
3. Which option with the useradd command specifies the user's home directory?
4. Which command is used to modify an existing user's account details (e.g., shell, groups)?
5. In Linux, where are encrypted user passwords stored?
6. Select all valid commands for managing user groups.
7. Which of the following files are involved in user and group management?
8. Which options can be used with usermod to add a user to a supplementary group?
9. Which statements about the root user are true?
10. Which commands allow switching to another user account?
11. The 'passwd' command can only be used by the root user to change passwords.
12. The /etc/group file stores information about user groups, including group names and member lists.
13. A user can be a member of only one primary group.
14. The 'chown' command is used to change the permissions of a file or directory.
15. By default, the 'sudo' command requires the user to enter their own password to execute privileged commands.
16. What command is used to delete a user account from the system?
17. What is the numeric UID assigned to the root user in Linux?
18. Which file contains information about user groups, including group names and GIDs?
19. What command displays all the groups a user is a member of?
20. What option with the useradd command ensures the home directory is created if it does not exist?
Answered 0 of 0 — 0 correct