nerdexam
Linux_Foundation

LFCS · Question #660

Which option to smbldap-useradd will add a machine account?

The correct answer is C. -w. The smbldap-useradd command utilizes the -w option to create a machine account within an LDAP directory for Samba domain services.

Submitted by fernanda_arg· Apr 18, 2026User and Group Management

Question

Which option to smbldap-useradd will add a machine account?

Options

  • A-m
  • B-W
  • C-w
  • D-M
  • E-h

How the community answered

(19 responses)
  • C
    95% (18)
  • E
    5% (1)

Why each option

The `smbldap-useradd` command utilizes the `-w` option to create a machine account within an LDAP directory for Samba domain services.

A-m

The `-m` option is typically for creating a home directory for a user, not for adding a machine account to LDAP.

B-W

The `-W` option is not a standard flag for adding a machine account with `smbldap-useradd`; it typically refers to a workgroup or Windows domain.

C-wCorrect

When using `smbldap-useradd`, the `-w` option specifically tells the utility to add a machine account (workstation account) to the LDAP directory, which is necessary for joining Windows machines to a Samba domain.

D-M

The `-M` option is not a standard flag for adding a machine account with `smbldap-useradd`.

E-h

The `-h` option is typically used to display help information for the command, not to create an account.

Concept tested: Creating Samba machine accounts in LDAP

Topics

#smbldap-useradd#Machine Accounts#Samba#LDAP

Community Discussion

No community discussion yet for this question.

Full LFCS Practice