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

Bug #964681 reported by HaddadR
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
system-config-samba (Ubuntu)
Confirmed
Medium
merowindian

Bug Description

system-config-samba.py 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/system-config-samba.py
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
ProcEnviron:
 SHELL=/bin/bash
 LANG=fr_FR.UTF-8
PythonArgs: ['/usr/sbin/system-config-samba']
SourcePackage: system-config-samba
Title: system-config-samba.py 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

Revision history for this message
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
Revision history for this message
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

Revision history for this message
Alex Libes (alibes) wrote :

As of Xubuntu 12.04, the problem is in /usr/share/system-config-samba/sambaUserData.py 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
1
-------------------------------------------------------------------------------------------
+ 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)
Revision history for this message
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>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 116, in __init__
    self.samba_user_data = sambaUserData.SambaUserData(self)
  File "/usr/share/system-config-samba/sambaUserData.py", line 46, in __init__
    self.readSmbPasswords()
  File "/usr/share/system-config-samba/sambaUserData.py", 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.

Revision history for this message
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: http://ubuntuforums.org/showthread.php?t=1962617

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.