nerdexam
CompTIA

LX0-104 · 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.. Removing a machine account from a Samba PDC requires deleting both its Samba database entry and its corresponding Linux system account.

Administrative Tasks

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

(37 responses)
  • A
    73% (27)
  • B
    8% (3)
  • C
    16% (6)
  • E
    3% (1)

Why each option

Removing a machine account from a Samba PDC requires deleting both its Samba database entry and its corresponding Linux system account.

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

The `smbpasswd -x machine_name$` command is the correct initial step to remove the machine account from Samba's internal security database, which holds its SMB password and SID.

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

Removing the Linux account first would leave an orphaned machine account entry in the Samba database, leading to inconsistencies.

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

This option describes the same action as A but incorrectly places it as the second step, whereas removing from the Samba database must precede removing the system account.

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

After the Samba database entry is removed, the associated Unix machine account (typically ending with `$`) must be deleted from the Linux system using the `userdel machine_name$` command to ensure a complete cleanup.

EThe second step is restart the Samba daemon.

Restarting the Samba daemon is generally not required for account deletion operations, as changes to the account database are usually effective immediately or upon the next client's next session.

Concept tested: Samba machine account removal procedure

Topics

#Samba PDC#machine accounts#userdel#smbpasswd

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice