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.
As of Xubuntu 12.04, the problem is in /usr/share/ system- config- samba/sambaUser Data.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: ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- c:OpenConfFile( ) - Unable to open configuration file "/etc/samba/ smb.conf" : ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
-------
+ 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.
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.