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.
Question
Options
- A-m
- B-W
- C-w
- D-M
- E-h
How the community answered
(19 responses)- C95% (18)
- E5% (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.
The `-m` option is typically for creating a home directory for a user, not for adding a machine account to LDAP.
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.
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.
The `-M` option is not a standard flag for adding a machine account with `smbldap-useradd`.
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
Community Discussion
No community discussion yet for this question.