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.
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
(28 responses)- A86% (24)
- B4% (1)
- C7% (2)
- E4% (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.
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.
Removing the account from the Linux accounts database should be done after its removal from the Samba database, not as the first step.
Removing the account from the Samba database is the *first* step, not the second.
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.
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
Community Discussion
No community discussion yet for this question.