Services and User Management

An administrator is preparing a service account for a backup daemon. The account needs a dedicated system group and must not allow interactive logins. Which three statements about creating them are correct? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. useradd -r does not create a home directory unless -m is also suppliedB. useradd -r -g backupsvc -s /usr/sbin/nologin backupd creates a system account that cannot log in interactivelyC. groupadd -r backupsvc creates a group whose GID is taken from the system range

AWhy this is right: System accounts created with -r get no home directory unless -m is also given.

BWhy this is right: -r makes a system account, -g sets the group, and a nologin shell blocks interactive logins.

CWhy this is right: Groupadd -r takes the GID from the system range set in /etc/login.defs.

DWhy not this: useradd never prompts for a password; the account's password is set afterward with passwd.

EWhy not this: -r uses the SYS_UID_MIN to SYS_UID_MAX range; UID_MIN to UID_MAX is for regular users.

The -r option creates system groups and accounts with IDs from the system range, and a nologin shell blocks interactive sessions. System accounts get no home directory unless -m is given. useradd never prompts for a password; one is set afterward with passwd. System IDs come from SYS_UID_MIN to SYS_UID_MAX, not UID_MIN to UID_MAX.