Mythbuntu 公共 Samba 共享

Mythbuntu 公共 Samba 共享

我已经安装了 Mythbuntu 14.04 并运行了 MythTV。我尝试从我的 Windows 8.1 工作站访问视频和其他 Samba 共享,尝试"Access Denied"时出现错误。当我输入“开始”->“运行”->“时,\\192.168.1.5 会弹出一个框,提示无法访问”。我还尝试从 CMD 提示符发出 net view \\192.168.1.5,但再次出现访问被拒绝的错误。如果我使用 net use,也会出现同样的访问被拒绝错误* \\192.168.1.5\videos

我的 Windows 8.1 计算机是域的成员,并且该域名与 Mythbuntu 上定义的工作组不匹配。通常我没有见过这种情况?

以下是 Ubuntu 机器上的 smb.conf 文件:

[global]
workgroup = MSHOME
server string = %h server (Samba, Mythbuntu)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
dns proxy = no
security = share
# security = user

[recordings]
comment = TV Recordings
path = /var/lib/mythtv/recordings
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

[videos]
comment = Videos
path = /var/lib/mythtv/videos
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = mythtv
force group = mythtv

[music]
comment = Music
path = /var/lib/mythtv/music
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = mythtv
force group = mythtv

[pictures]
comment = Pictures
path = /var/lib/mythtv/pictures
public = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = mythtv
force group = mythtv

答案1

我发现我需要为 mythtv 帐户添加 samba 密码。

您可以在命令行中执行此操作:

sudo smbpasswd -a mythtv

然后按照指示输入密码

sudo restart smbd
sudo restart nmbd

相关内容