nerdexam
CompTIA

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.

Administrative Tasks

Question

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 john. Does this user exist in the UNIX password database? Failed to modify password entry for user john Select the correct explanation for why this error occurred.

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)
  • A
    71% (29)
  • B
    10% (4)
  • C
    5% (2)
  • D
    15% (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.

AThe user john must be created in the Linux environment before it can be added to the Samba database.Correct

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.

BThe Samba database is not compatible with the Linux backend.

The Samba database is designed to be compatible with Linux backends; the issue is a prerequisite for user creation, not a fundamental incompatibility.

CThe account user synchronization of Samba and Linux was not properly done.

The error message specifically points to a user's existence prior to creation, not a general synchronization failure after the account has been established.

DThe SAM_ACCOUNT script could not be started properly because the user running the smbpasswd

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

#Samba user creation#smbpasswd#Unix user accounts#error diagnosis

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice