system-config-samba crashes /etc/libuser.conf': No such file or directory

Asked by jimhayes on 2008-04-29

Entering "sudo system-config-samba causes crash due to /etc/libuser.conf
not found. Terminal session below:

studio@studio:~$ sudo system-config-samba
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 41, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 118, in __init__
    self.basic_preferences_win = basicPreferencesWin.BasicPreferencesWin(self, self.xml, self.samba_data, self.samba_backend, self.main_window)
  File "/usr/share/system-config-samba/basicPreferencesWin.py", line 93, in __init__
    self.admin = libuser.admin()
SystemError: could not open configuration file `/etc/libuser.conf': No such file or directory
studio@studio:~$
*************** END of Terminal output ***********************

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2008-04-29
Last reply:
2015-10-16

check your log around 181.???

079???

f1 f3 f5 f7

this is a patch i ran last night

peace =]

J.Walk (desktophero) said : #2

I just did the following:

sudo su
touch /etc/libuser.conf
chmod 777 /etc/libuser.conf
system-config-samba

The appl worked fine after that. Note - I have not gone back to reduce the permissions on the file. I am sure 777 and root ownership is overkill, bad form. I am on a private VM playing with Ubu Server 8.04 32 bit.

J.Walk (desktophero) said : #3

Interesting...the file appears to have no affect on the appl execution unless it is not there:

root@dellubu01:/etc# ls -la libuser.conf
-rwxrwxrwx 1 root root 0 2008-05-10 17:05 libuser.conf
root@dellubu01:/etc# more libuser.conf
root@dellubu01:/etc# chmod 600 libuser.conf
root@dellubu01:/etc# system-config-samba
root@dellubu01:/etc# ls -la libuser.conf
-rw------- 1 root root 0 2008-05-10 17:05 libuser.conf
root@dellubu01:/etc# chmod 400 libuser.conf
root@dellubu01:/etc# ls -la libuser.conf
-r-------- 1 root root 0 2008-05-10 17:05 libuser.conf
root@dellubu01:/etc# system-config-samba

Even with no write permissions (chmod 000) i can add users through the interface without a problem.

Urmel (thorsten-seidel) said : #4

I can confirm the behaviour.
The error occured on my system (8.04 64 Bit) as well.
After creating the file like J.Walk described, the error is gone.

Adam Taylor (tochinoki) said : #5

I'm also having this issue in Karmic.

Alcest (luckyluke6) said : #6

Almost 2015 and I had the exact same issue with Lubuntu 14.10

J. Walk's solution worked fine, thx.

Cliff (vzd1s33v) said : #7

thank you J.Walk. My Samba GUI is now working in Kubuntu 14.

This is utterly ridiculous. It's now been *seven years* and samba still does not install properly under Ubuntu 15.04 vivid (64 bits).

Federico Leoni (effelle-gmail) said : #9

Ubuntu 16.04 and the bug is still here... Still the same solution:

sudo su
touch /etc/libuser.conf
chmod 777 /etc/libuser.conf
system-config-samba

Please have a look on it. Thanks!

Scott Moore (scottbomb) said : #10

Has this program been abandoned? Here we are in 2017 with the same critical bug that should be so easy to fix. Is this abandonware?

Can you help with this problem?

Provide an answer of your own, or ask jimhayes for more information if necessary.

To post a message you must log in.