nerdexam
CompTIA

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.

Administrative Tasks

Question

Select the TWO correct statements about the smbpasswd command:

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)
  • A
    2% (1)
  • B
    95% (59)
  • E
    3% (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.

AThe -d <user> parameter deletes the <user> account from Samba database.

The `-d <user>` parameter is typically used to *disable* a Samba user account, preventing logins, rather than deleting it entirely from the database.

BThe -a <user> parameter adds <user> account to the Samba database. If the account already exists,Correct

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.

CThe -x <user> parameter removes the <user> account from the Samba database.Correct

The `-x <user>` parameter is used with `smbpasswd` to explicitly remove an existing user account and its associated password entry from the Samba database.

Dthe -e <user> parameter excludes the <user> account from the Samba database.

There is no standard `-e` parameter in `smbpasswd` for excluding a user account; the correct option for removal is `-x`.

Esmbpasswd enables password changes only on Samba servers and not regular Windows servers.

`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

#smbpasswd#Samba users#user management#password database

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice