nerdexam
Linux_Foundation

LFCS · Question #587

Which of the following commands would you run to add your machine to an NT4 domain?

The correct answer is A. net rpc join -S PDC -UAdministrator%password. To add a Samba machine to an NT4-style domain, the net rpc join command is used, specifying the primary domain controller (PDC) and administrator credentials.

Submitted by anjalisingh· Apr 18, 2026Networking

Question

Which of the following commands would you run to add your machine to an NT4 domain?

Options

  • Anet rpc join -S PDC -UAdministrator%password
  • Bnet ads join -s PDC -UAdministrator%password
  • Cnet rpc join -s PDC -UAdministrator%password
  • Dnet ads join -W PDC -nAdministrator%password

How the community answered

(58 responses)
  • A
    93% (54)
  • B
    2% (1)
  • C
    2% (1)
  • D
    3% (2)

Why each option

To add a Samba machine to an NT4-style domain, the `net rpc join` command is used, specifying the primary domain controller (PDC) and administrator credentials.

Anet rpc join -S PDC -UAdministrator%passwordCorrect

The `net rpc join` command is specifically designed for joining a Samba server to an NT4-style domain. The `-S` flag correctly specifies the name of the Primary Domain Controller (PDC), and `-U` is used to provide the username and password for authentication during the join process.

Bnet ads join -s PDC -UAdministrator%password

`net ads join` is for Active Directory domains, not NT4 domains, and `-s` is not the correct flag for the PDC name.

Cnet rpc join -s PDC -UAdministrator%password

While `net rpc join` is correct, the `-s` flag is not the standard flag for specifying the PDC; `-S` (uppercase) is used instead.

Dnet ads join -W PDC -nAdministrator%password

`net ads join` is for Active Directory, not NT4, and the flags `-W` and `-n` are not correct for specifying the PDC and credentials in this manner.

Concept tested: Samba NT4 domain join

Source: https://www.samba.org/samba/docs/current/manpages/net.8.html

Topics

#Samba client#NT4 domain#Domain join#Network authentication

Community Discussion

No community discussion yet for this question.

Full LFCS Practice