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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pdbedit: command not found

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.

If you encounter the below error while running the command pdbedit:

pdbedit: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install samba
Ubuntu apt-get install samba
Alpine apk add samba
Arch Linux pacman -S samba
Kali Linux apt-get install samba
CentOS yum install samba-common-tools
Fedora dnf install samba-common-tools-2
Raspbian apt-get install samba

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. md5sum Command Examples in Linux
  2. printk and console log level
  3. pvck Command Examples in Linux
  4. mesg Command Examples in Linux
  5. echo: command not found
  6. lvcreate: command not found
  7. elinks Command Examples in Linux
  8. vgextend Command Examples in Linux
  9. extrace: command not found
  10. How to Limit some User Memory Resources on CentOS/RHEL using cgroup

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright