Linux Security: User Accounts, Sudo Privileges & Log Management — Set IV

1. Which command is used to add a new user in Linux?

  • A addgroup
  • B useradd
  • C passwd
  • D groupadd

2. What does the /etc/passwd file contain?

  • A Encrypted passwords
  • B User account information
  • C Group definitions
  • D Login history

3. The root user has unrestricted access to all files and commands on a Linux system.

  • A True
  • B False

4. Which command is used to change a user's primary group?

  • A usermod -g
  • B groupmod
  • C chgrp
  • D gpasswd

5. What is the purpose of the /etc/shadow file?

  • A Stores user login history
  • B Stores encrypted user passwords
  • C Stores group membership
  • D Stores user shell preferences

Please enter your name