117-302 · Question #142
Which option to smbldap-useradd will add a machine account?
The correct answer is B. -w. See the full explanation below for the reasoning.
Question
Which option to smbldap-useradd will add a machine account?
Options
- A-W
- B-w
- C-M
- D-m
- E-h
How the community answered
(30 responses)- A3% (1)
- B73% (22)
- C7% (2)
- D13% (4)
- E3% (1)
Community Discussion
6The answer is B, lowercase -w, and the case distinction is exactly what makes this question feel tricky when you are staring at it under pressure. In smbldap-useradd, the lowercase -w flag signals that you are adding a machine account rather than a standard user account, which matters because Samba needs to distinguish between human user principals and computer principals in the directory. The uppercase -W and the -M and -m options serve different purposes entirely, and -h is just the help flag, so if you anchor on what each case-variant does rather than trying to memorize a list, the logic holds together. When you see a question like this again, remind yourself that the tool is designed around that one small letter doing a specific job, and that recognition alone gets you to the right answer confidently.
The correct answer is B, lowercase -w. The smbldap-useradd command treats uppercase and lowercase flags as distinct options, so this is one of those cases where capitalization matters and you can't just guess. The -w flag specifically tells smbldap-useradd to create a machine (workstation) account in the LDAP directory, which is what Samba needs to join Windows clients to the domain. If you see a question about adding computer accounts to a Samba-LDAP setup, lowercase -w is the one to remember, not the uppercase -W.
The answer is B, lowercase -w, because that is the flag smbldap-useradd uses specifically to add a machine account, and the uppercase -W is a trap the exam sets for you. On my actual test I sat there for a solid minute because -W looked more "official" to me, then I said wait, I know this one, lowercase -w is the workstation flag, and I moved on and got it right.
The -w flag is your friend here for machine accounts, lowercase matters because smbldap-useradd treats -W differently. Do you remember what -W actually does, and why the case distinction trips people up on this one?
-M is machine, uppercase M, stands for Machine account, has to be C.
Actually Devraj, the answer is B, because in this context -M refers to the home directory option (no home directory created), not a Machine account, so the Machine account reasoning doesn't apply here.