nerdexam
Linux_Foundation

LFCS · Question #314

Which is the correct procedure to remove a machine account from a Samba PDC? Choose the TWO correct procedures:

The correct answer is A. First of all, the account must be removed from Samba database, using the smbpasswd command. D. The second step is remove the account from the Linux accounts database, using the userdel command. To correctly remove a machine account from a Samba Primary Domain Controller (PDC), the account must first be deleted from the Samba database and then subsequently from the Linux accounts database.

Submitted by naveen.iyer· Apr 18, 2026User and Group Management

Question

Which is the correct procedure to remove a machine account from a Samba PDC? Choose the TWO correct procedures:

Options

  • AFirst of all, the account must be removed from Samba database, using the smbpasswd command.
  • BFirst of all, the account must be removed from Linux accounts database, using the userdel command.
  • CThe second step is remove the account from Samba database, using the smbpasswd command.
  • DThe second step is remove the account from the Linux accounts database, using the userdel command.
  • EThe second step is restart the Samba daemon.

How the community answered

(28 responses)
  • A
    86% (24)
  • B
    4% (1)
  • C
    7% (2)
  • E
    4% (1)

Why each option

To correctly remove a machine account from a Samba Primary Domain Controller (PDC), the account must first be deleted from the Samba database and then subsequently from the Linux accounts database.

AFirst of all, the account must be removed from Samba database, using the smbpasswd command.Correct

The initial step in removing a machine account from a Samba PDC is to delete its entry from the Samba internal database using the `smbpasswd -x <machine_name>` command, which removes its Samba-specific credentials.

BFirst of all, the account must be removed from Linux accounts database, using the userdel command.

Removing the account from the Linux accounts database should be done after its removal from the Samba database, not as the first step.

CThe second step is remove the account from Samba database, using the smbpasswd command.

Removing the account from the Samba database is the *first* step, not the second.

DThe second step is remove the account from the Linux accounts database, using the userdel command.Correct

After the machine account is removed from the Samba database, the corresponding system account in the Linux accounts database must also be deleted using the `userdel <machine_name>` command to complete the removal process from the operating system.

EThe second step is restart the Samba daemon.

Restarting the Samba daemon ensures changes take effect but is not a direct procedure for *removing* the account itself, and typically follows the account deletion steps.

Concept tested: Samba machine account removal procedure

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

Topics

#Samba#Machine Accounts#Account Management#smbpasswd command

Community Discussion

No community discussion yet for this question.

Full LFCS Practice