system-config-samba.py fails to start due to missing /etc/libuser.conf Utopic

Bug #1387274 reported by Sergio Schneider
134
This bug affects 29 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Confirmed
High
Unassigned
libuser (Ubuntu)
Fix Released
High
Mattia Rizzolo
system-config-samba (Ubuntu)
Confirmed
High
Unassigned

Bug Description

system-config-samba.py fails to start due to missing /etc/libuser.conf
"sudo touch /etc/libuser.conf" as suggested above fix it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libuser (Ubuntu):
status: New → Confirmed
Changed in system-config-samba (Ubuntu):
status: New → Confirmed
Revision history for this message
Etienne URBAH (eurbah) wrote :

Reference = bug #214959

Changed in hundredpapercuts:
status: New → Confirmed
Changed in system-config-samba (Ubuntu):
importance: Undecided → High
Changed in libuser (Ubuntu):
importance: Undecided → High
Changed in hundredpapercuts:
importance: Undecided → High
Revision history for this message
Flávio Oliveira (oliveiradeflavio) wrote :

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 121, 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 97, in __init__
    self.admin = libuser.admin()
SystemError: could not open configuration file `/etc/libuser.conf': Arquivo ou diretório não encontrado

Revision history for this message
Flávio Oliveira (oliveiradeflavio) wrote :

Guys, just created the configuration file (libuser.conf) in / etc / folder
and then returned to work the system-config-samba

Revision history for this message
raydar (raydar) wrote :

To confirm what Flavio found, executing the following fixed the problem for me:

sudo touch /etc/libuser.conf

Revision history for this message
Etienne URBAH (eurbah) wrote :

This bug is still present in system-config-samba version 1.2.63-0ubuntu6 from 'Ubuntu 15.10 Wily Beta1'.

tags: added: vivid wily
Revision history for this message
Rodrigo Trujillo (rodrigo-trujillo) wrote :

This problem is affecting the project Ginger:
 https://github.com/kimchi-project/ginger

It uses "python-libuser", which is failing because libuser , or libuser1, misses libuser.conf

Reference:
https://github.com/kimchi-project/ginger/issues/22

bugproxy (bugproxy)
tags: added: architecture-all bugnameltc-130684 severity-medium targetmilestone-inin1510
Revision history for this message
Zero (zerofossilfuel) wrote :

Performed a clean install of Wily. Ref 214959, this bug is back. 'sudo touch /etc/libuser.conf' corrects the problem. This bug report is over a year old?

Revision history for this message
Max-Ulrich Farber (maxulrichfarber) wrote :

Yes, it is. And it would be so easy to fix!

Revision history for this message
pst007x (turone) wrote :

Still an issue in 15.10

 :(

Revision history for this message
Luis Andrés Gonzalez (luisandresgonzalez) wrote :

It's been a problem since 2008!
https://answers.launchpad.net/ubuntu/+question/31292
@zerofossifuel 's solution worked on 15.10.

Revision history for this message
Max-Ulrich Farber (maxulrichfarber) wrote :

Still an issue in 16.04 LTS! :(

This is utterly ridiculous. It's now been *eight years* and system-config-samba still does not install properly under Ubuntu 16.04 LTS!

@zerofossifuel 's workaround worked on 16.04 too.

Mattia Rizzolo (mapreri)
Changed in libuser (Ubuntu):
assignee: nobody → Mattia Rizzolo (mapreri)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libuser - 1:0.62~dfsg-0.1ubuntu1

---------------
libuser (1:0.62~dfsg-0.1ubuntu1) yakkety; urgency=medium

  * Build-depend on hardening-wrapper to support the 'hardening' build flag.

 -- Steve Langasek <email address hidden> Sat, 09 Jul 2016 22:42:44 -0700

Changed in libuser (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Matteo Seclì (matteosecli) wrote :

Confirmed in Ubuntu 16.04.1. libuser1 1:0.62~dfsg-0.1ubuntu1 does not fix the problem for me.

Revision history for this message
Leipero (lei-pero) wrote :

Also Ubuntu 16.04.1, problem is still there.

The old solution of "sudo touch /etc/libuser.conf" as others mentioned solves the problem.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-10-03 14:00 EDT-------
The solution given by Steve Langasek was applied to 16.10

------- Comment From <email address hidden> 2016-10-03 14:01 EDT-------
I have just tested this on 16.10 with libuser 1:0.62~dfsg-0.1ubuntu1, and it worked.

tags: added: targetmilestone-inin---
removed: targetmilestone-inin1510
bugproxy (bugproxy)
tags: added: targetmilestone-inin1610
removed: targetmilestone-inin---
Bruno Nova (brunonova)
tags: added: xenial
Revision history for this message
Bruno Nova (brunonova) wrote :

Here's a patch to fix this bug in system-config-samba.
It's in quilt format, so you should be able to just "quilt import" it into the package.

The patch is just a workaround that will modify /usr/sbin/system-config-samba to create the missing file automatically if it doesn't exist.

I hope this bug (which is marked as **High** importance!) is fixed soon.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "07_libuser.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Max-Ulrich Farber (maxulrichfarber) wrote :

I hope a patched version will soon be present in the repositories for all supported Ubuntu versions. I wonder how such an easy thing could take such a long time!

Revision history for this message
Bruno Nova (brunonova) wrote :

It's probably because system-config-samba is in the "universe" repository, and thus community maintained. It's still sad, though.
If the patch doesn't reach the official repositories, I'll put it in a PPA.

Revision history for this message
Bruno Nova (brunonova) wrote :
Revision history for this message
Jack Howarth (jwhowarth) wrote :

Why not take the path of least resistance here? Just make the system-config-samba have an dependency on the installation of the libuser package and the problem goes away, no? It certainly worked for me tonight with a fresh installation of 16.10.

Note from...

http://packages.ubuntu.com/yakkety/system-config-samba

and

http://packages.ubuntu.com/yakkety/python-libuser

I see a dependency on libusr1 in python-libuser, but no dependencies on libusr which seems absurd.

Revision history for this message
Scott Moore (scottbomb) wrote :

Is this bug EVER going to be fixed?

Changed in system-config-samba (Ubuntu):
assignee: nobody → Sirgienko Nikita (mmmm98)
Changed in system-config-samba (Ubuntu):
assignee: Sirgienko Nikita (mmmm98) → nobody
Revision history for this message
Pavlos Kairis (kairis) wrote :

bug exists in 18.04 (bionic) as well. touch /etc/libuser.conf fixes it.

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.