crashed with RuntimeError in readSmbPasswords(): You do not have permission to execute /usr/bin/pdbedit.

Bug #964681 reported by HaddadR on 2012-03-25
This bug affects 13 people
Affects Status Importance Assigned to Milestone
system-config-samba (Ubuntu)

Bug Description crashed with RuntimeError in readSmbPasswords(): You do not have permission to execute /usr/bin/pdbedit.

Ubuntu 12.04 beta1
uname -a : Linux HP-Ub 3.2.0-20-generic #32-Ubuntu SMP Thu Mar 22 02:22:46 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

when lunching with ALT+F2 it crashes
but it runs OK if "gksudo system-config-samba"

so the problem is that the program doesn't ask/check privileges ;)

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: system-config-samba 1.2.63-0ubuntu5
ProcVersionSignature: Ubuntu 3.2.0-20.32-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
CrashCounter: 1
Date: Sun Mar 25 18:42:04 2012
ExecutablePath: /usr/share/system-config-samba/
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120324)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/system-config-samba
PythonArgs: ['/usr/sbin/system-config-samba']
SourcePackage: system-config-samba
Title: crashed with RuntimeError in readSmbPasswords(): You do not have permission to execute /usr/bin/pdbedit.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers

HaddadR (hr-haddad) wrote :
tags: removed: need-duplicate-check
Changed in system-config-samba (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Changed in system-config-samba (Ubuntu):
status: New → Confirmed
Andreas Kern (kerna) wrote :

 The message "You do not have permission to execute /usr/bin/pdbedit." is wrong
I can execute that /usr/bin/pdbedit, actually everybody can.
-rwxr-xr-x 1 root root 2.0M Mar 17 15:44 /usr/bin/pdbedit

Alex Libes (alibes) wrote :

As of Xubuntu 12.04, the problem is in /usr/share/system-config-samba/ 53-78
The script should have returned the actual status, stderr, stdout from /usr/bin/pdbedit, which would be helpful in debugging, instead of generalizing unknown cases to a specific error message.

Running the command manually for me returns:
+ sudo /usr/bin/pdbedit -L -w ; echo $?
Can't load /etc/samba/smb.conf - run testparm to debug it
+ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
        No such file or directory
Error loading services.

...which brings up the next question: why reinstalling "samba" did not recreate the "/etc/samba/" , but at least it is clear what's the next problem to deal with.

Changed in system-config-samba (Ubuntu):
assignee: nobody → merowindian (merowindian)
assignee: merowindian (merowindian) → nobody
assignee: nobody → merowindian (merowindian)
Serhan Yıldız (serhanyildiz) wrote :

xubuntu 15.10
metin@metin-xubuntu:~$ sudo system-config-samba
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 45, in <module>
  File "/usr/share/system-config-samba/", line 116, in __init__
    self.samba_user_data = sambaUserData.SambaUserData(self)
  File "/usr/share/system-config-samba/", line 46, in __init__
  File "/usr/share/system-config-samba/", line 63, in readSmbPasswords
    raise RuntimeError, (_("You do not have permission to execute %s." % pdbeditcmd))
RuntimeError: You do not have permission to execute /usr/bin/pdbedit.

jaktar (superdragonpoop) wrote :

recently started happening in Mythbuntu 14.04

Found smb.conf had an invalid security setting "security = share". I know I had changed it, but I didn't comment why. Setting "security = user" and adding "map to guest = Bad User" allowed system-config-samba to launch normally.

More info here:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers