Bet*_*033 5 samba ubuntu windows-8 windows-8.1 ubuntu-13.10
我最近在我的一台家用工作站上从 Windows 7 升级到了 Windows 8.1。我有另一台运行 Ubuntu 13.10 的机器。
在更新到 Windows 8.1 之前,我能够访问 Ubuntu 上的共享(通过右键单击文件夹 -> 共享选项共享),目前家里的其他设备仍然可以访问共享(这些是另一个 Windows 7 设备, Android 设备,甚至是旧的 Windows XP 设备)。我拥有的所有其他设备仍然可以访问共享。这些共享都已配置为Allow others to create and delete files in this folder和Guest access。
只是这台 Windows 8.1 机器,虽然我可以看到共享文件夹,但尝试打开其中一个会导致 Windows 网络错误消息 you do not have permissions to access...
我认为,由于这些是与 共享的Guest access,因此不应该有可能的权限妨碍,对于我拥有的其他设备,这似乎是正确的。
此外,共享中涉及的所有文件夹都具有通过chmod. 对于这个问题,我还发现Create and delete files了所有组的Nautilus 右键单击权限设置。
我找到了关于更新HKLM/System/Services/LanmanServer/Parameters/RequireSecuritySignature到 0(已经设置为 0,顺便说一句)的文章。
我应该更改我的smb.conf文件,因为所有其他机器都可以很好地访问此共享,这似乎很愚蠢,尽管我发现有些人说 Wins Support 应该是 ,Yes而另一些人说应该是No. 我试过这个没有任何变化。仍然会出现有关安全性的相同错误消息。
我确信的一件事是,Windows 8 让我使用一个电子邮件地址和来自该地址的登录信息,以便能够登录到这个系统。不过,再次将共享设置为允许guest access.
下面是 smb.conf 的内容,以防万一。
#======================= Global Settings =======================
[global]
#
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
; wins server = w.x.y.z
dns proxy = no
name resolve order = wins lmhosts host bcast
###
; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = yes
###
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
######
encrypt passwords = true
; passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
#########
#
; domain logons = yes
#
; logon path = \\%N\profiles\%U
; logon drive = H:
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
#########
; printing = bsd
; printcap name = /etc/printcap
; printing = cups
; printcap name = cups
###########
; include = /home/samba/etc/smb.conf.%m
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
; winbind enum groups = yes
; winbind enum users = yes
; usershare max shares = 100
usershare allow guests = yes
#======================= Share Definitions =======================
;[homes]
; comment = Home Directories
; browseable = no
; read only = yes
; create mask = 0700
; directory mask = 0700
#
; valid users = %S
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
; guest ok = no
; read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = no
; write list = root, @lpadmin
;[cdrom]
; comment = Samba server's CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
#
#
# is mounted on /cdrom
#
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[DROP2]
path = /media/jeff/Storage/DROP
writeable = yes
; browseable = yes
guest ok = yes
Run Code Online (Sandbox Code Playgroud)
小智 -3
您无法访问您的共享,因为 Windows 8.1 共享使用SMB 3.02版本,FreeNAS 尚不支持该版本。
修复:您可以在 SMB 版本的最小和最大值字段中编辑共享首选项,尝试相应地选择最小版本中的 SMB 2 和最大版本中的 SMB 3.00。
| 归档时间: |
|
| 查看次数: |
24412 次 |
| 最近记录: |