Creates an empty /etc/libuser.conf file, if it doesn't exist, so that system-config-samba can start (LP: #1387274) --- a/src/system-config-samba.py +++ b/src/system-config-samba.py @@ -41,5 +41,15 @@ os.umask (0022) +# Create an empty /etc/libuser.conf file if it doesn't exist (LP: #1387274) +try: + if not os.path.exists("/etc/libuser.conf"): + open("/etc/libuser.conf", "w").close() + print("Created the file /etc/libuser.conf") +except Exception as ex: + print("Error creating /etc/libuser.conf: {}".format(ex)) +except: + print("Error creating /etc/libuser.conf") + import mainWindow mainWindow.MainWindow(debug_flag)