system-config-samba 崩溃,无法打开配置文件“/etc/libuser.conf”

system-config-samba 崩溃,无法打开配置文件“/etc/libuser.conf”

操作系统:Linux Mint 18.3 Xfce 64 位。

我正在尝试重新安装samba,到目前为止我已经完成了:

sudo apt-get install samba cifs-utils system-config-samba

但是当运行配置 GUI 时:

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 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': No such file or directory

答案1

创建该文件就足够了:

sudo touch /etc/libuser.conf

并重新运行 samba 配置器。

相关内容