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.
Question
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)- A73% (27)
- B8% (3)
- C16% (6)
- E3% (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.
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.
Removing the Linux account first would leave an orphaned machine account entry in the Samba database, leading to inconsistencies.
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.
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.
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
Community Discussion
No community discussion yet for this question.