LX0-104 · Question #636
While attempting to create a user in the Samba database, the following message appeared: # smbpasswd -a john New SMB password: Retype new SMB password: ... Failed to initialise SAM_ACCOUNT for user jo
The correct answer is A. The user john must be created in the Linux environment before it can be added to the Samba database.. The error occurred because the user 'john' must first exist in the underlying Linux environment's password database before smbpasswd -a can add them to the Samba database.
Question
Options
- AThe user john must be created in the Linux environment before it can be added to the Samba database.
- BThe Samba database is not compatible with the Linux backend.
- CThe account user synchronization of Samba and Linux was not properly done.
- DThe SAM_ACCOUNT script could not be started properly because the user running the smbpasswd
How the community answered
(41 responses)- A71% (29)
- B10% (4)
- C5% (2)
- D15% (6)
Why each option
The error occurred because the user 'john' must first exist in the underlying Linux environment's password database before `smbpasswd -a` can add them to the Samba database.
The `smbpasswd -a` command requires that the specified user account already exist in the Unix/Linux system's password database (e.g., `/etc/passwd`). Samba relies on the underlying system's user accounts for basic identity and permissions, and without a corresponding Unix user, it cannot initialize the Samba account.
The Samba database is designed to be compatible with Linux backends; the issue is a prerequisite for user creation, not a fundamental incompatibility.
The error message specifically points to a user's existence prior to creation, not a general synchronization failure after the account has been established.
The error message clearly indicates a missing Unix user as the cause, not a problem with the `smbpasswd` command's execution permissions or a script's failure to start.
Concept tested: Samba user creation prerequisites
Source: https://www.samba.org/samba/docs/current/manpages/smbpasswd.8.html
Topics
Community Discussion
No community discussion yet for this question.