nerdexam
LPI

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)
  • A
    3% (1)
  • B
    73% (22)
  • C
    7% (2)
  • D
    13% (4)
  • E
    3% (1)

Community Discussion

6
Grace U.Grace U.Jun 16, 2026

The 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.

19
Carlos M.Carlos M.Jun 26, 2026

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.

2
Nina C.Nina C.Jun 26, 2026

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.

2
Imani T.Imani T.Jun 26, 2026

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?

2
Devraj B.Devraj B.Jun 26, 2026

-M is machine, uppercase M, stands for Machine account, has to be C.

-1
Nina C.Nina C.Jun 27, 2026

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.

0
Full 117-302 Practice