安装system-config-samba没问题。我使用synaptic进行安装-只需单击“安装标记”,然后单击“应用”和宾果游戏。问题是,一旦安装,它将无法正常工作。首先,它不会显示在启动器,经典菜单或系统设置中。(至少,我找不到它。)其次,从命令行运行时,它会产生以下错误消息:
duncant@linuxbox:~$ system-config-samba0
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 116, in __init__
self.samba_user_data = sambaUserData.SambaUserData(self)
File "/usr/share/system-config-samba/sambaUserData.py", line 46, in __init__
self.readSmbPasswords()
File "/usr/share/system-config-samba/sambaUserData.py", line 63, in readSmbPasswords
raise RuntimeError, (_("You do not have permission to execute %s." % pdbeditcmd))
RuntimeError: You do not have permission to execute /usr/bin/pdbedit
使用sudo特权运行时,也不起作用:
duncant@linuxbox:~$ sudo system-config-samba
[sudo] password for duncant:
(system-config-samba:15161): IBUS-WARNING **: The owner of /home/duncant/.config/ibus/bus is not root!
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
但是,只需在ubuntu文件管理器中右键单击要共享的文件夹,然后依次选择“属性”和“本地网络共享”,就可以使samba文件共享正常工作。
这对于开放式来宾访问非常有用,但是对于经过身份验证的访问,您还需要运行smbpasswd命令。
因此,最重要的是,在ubuntu 16.04上,system-config-samba似乎无法“开箱即用”