Forrest logo
back to the pdbedit tool

pdbedit:tldr:a0c95

pdbedit: List all Samba users (use verbose flag to show their settings).
$ sudo pdbedit --list --verbose
try on your machine

The command "sudo pdbedit --list --verbose" is used to list and display detailed information about the users in the Samba password database.

Here is an explanation of each component of the command:

  • "sudo": This command is used in Unix-like operating systems to run a command with administrative or root privileges. It allows the user to execute the following command as a superuser or with elevated privileges.

  • "pdbedit": This is a command-line utility for managing user accounts stored in the Samba password database. It is typically used in Samba file-sharing environments to manage user authentication and access control.

  • "--list": This option instructs the pdbedit command to list the users in the Samba password database.

  • "--verbose": This option tells pdbedit to display detailed information about each user account. The information could include the user's username, UID (user identifier), GID (group identifier), home directory, shell, and other details associated with the user account.

Combining all these components, the "sudo pdbedit --list --verbose" command allows an administrator to view a detailed list of user accounts stored in the Samba password database, providing information about each user's configuration.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pdbedit tool