LX0-104 · Question #624
Select the TWO correct statements about the smbpasswd command:
The correct answer is B. The -a <user> parameter adds <user> account to the Samba database. If the account already exists, C. The -x <user> parameter removes the <user> account from the Samba database.. The smbpasswd command allows administrators to add new user accounts to the Samba database using the -a option and to remove existing accounts with the -x option.
Question
Options
- AThe -d <user> parameter deletes the <user> account from Samba database.
- BThe -a <user> parameter adds <user> account to the Samba database. If the account already exists,
- CThe -x <user> parameter removes the <user> account from the Samba database.
- Dthe -e <user> parameter excludes the <user> account from the Samba database.
- Esmbpasswd enables password changes only on Samba servers and not regular Windows servers.
How the community answered
(62 responses)- A2% (1)
- B95% (59)
- E3% (2)
Why each option
The `smbpasswd` command allows administrators to add new user accounts to the Samba database using the `-a` option and to remove existing accounts with the `-x` option.
The `-d <user>` parameter is typically used to *disable* a Samba user account, preventing logins, rather than deleting it entirely from the database.
The `-a <user>` parameter is used with `smbpasswd` to add a new user account to Samba's local password database, typically prompting for a password.
The `-x <user>` parameter is used with `smbpasswd` to explicitly remove an existing user account and its associated password entry from the Samba database.
There is no standard `-e` parameter in `smbpasswd` for excluding a user account; the correct option for removal is `-x`.
`smbpasswd` is designed to manage passwords and accounts within Samba's own security database, not to directly change passwords on remote Windows domain controllers or other regular Windows servers.
Concept tested: smbpasswd user management
Source: https://www.samba.org/samba/docs/current/manpages/smbpasswd.8.html
Topics
Community Discussion
No community discussion yet for this question.