• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pdbedit Command Examples in Linux

by Deepika

pdbedit” is a Linux command-line utility for editing the user database of a Samba server. Samba is a free software suite that provides file and print services to SMB/CIFS clients, allowing them to access files and printers on a Linux or Unix server as if they were on a Windows server.

The Samba user database is used to store information about the users who are authorized to access the Samba server, including their usernames, passwords, and other information such as their group membership and file share permissions. “pdbedit” provides a way to manipulate this database, allowing administrators to add, remove, and modify users, as well as change their passwords.

While “pdbedit” provides a comprehensive set of options for managing the Samba user database, it can be a complex and technical tool to use. For simple tasks such as adding or removing users or changing passwords, “smbpasswd” is often a simpler and more straightforward option. “smbpasswd” is a simple command-line tool that provides basic password management for Samba users, making it a convenient option for administrators who only need to perform basic user management tasks.

pdbedit Command Examples

1. List all Samba users (use verbose flag to show their settings):

# sudo pdbedit --list --verbose

2. Add an existing Unix user to Samba (will prompt for password):

# sudo pdbedit --user username --create

3. Remove a Samba user:

# sudo pdbedit --user username --delete

4. Reset a Samba user’s failed password counter:

# sudo pdbedit --user username --bad-password-count-reset

Summary

In summary, “pdbedit” is a comprehensive tool for managing the Samba user database, while “smbpasswd” is a simple and straightforward option for basic user management tasks. Both tools are important components of a Samba server and provide administrators with the ability to manage the users who have access to the server.

Filed Under: Linux

Some more articles you might also be interested in …

  1. watch Command Examples in Linux
  2. rmmod Command Examples in Linux
  3. jmap Command Examples
  4. mingle Command Examples
  5. git flow: A collection of Git extensions to provide high-level repository operations
  6. flyctl: Command-line tool for flyctl.io
  7. ctest: CMake test driver program
  8. checkinstall Command Examples in Linux
  9. circup: The CircuitPython library updater
  10. cal Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright