
我在 Linux 機器上設定了一個 samba 共享,只有在 Windows 關閉時才能存取該共享Microsoft 網路用戶端:對通訊進行數位簽署(始終)
他們希望我配置 Linux 端,以允許他們在啟用此設定的情況下進行連線。要讓 Windows 用戶存取此共用而不關閉/關閉任何安全性選項,我至少需要做什麼?
可能相關的資訊:
- Linux 機器運行 SLES 11 SP2 和 Samba 3.6.3
- Windows 盒子正在執行帶有 Active Directory 的 Windows Server 2008
這是我的 smb.conf:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2012-02-03
[global]
workgroup = $WINDOWS_DOMAIN_NAME
passdb backend = tdbsam
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = domain
idmap gid = 10000-20000
idmap uid = 10000-20000
wins support = No
wins server =
encrypt passwords = yes
[$shareName]
comment = linux share
inherit acls = Yes
path = /home/$user/$shareName
read only = No
available = yes
browseable = yes
public = yes
writable = yes
當他們目前嘗試存取共用時,/var/log/messages 中的錯誤如下:
linux smbd[3336]: [2014/01/24 11:23:25.214046, 0] rpc_client/cli_pipe_schannel.c:54(get_schannel_session_key_common)
linux smbd[3336]: get_schannel_session_key: could not fetch trust account password for domain '$WINDOWS_DOMAIN_NAME'
linux smbd[3336]: [2014/01/24 11:23:25.216148, 0] rpc_client/cli_pipe_schannel.c:184(cli_rpc_pipe_open_schannel)
linux smbd[3336]: cli_rpc_pipe_open_schannel: failed to get schannel session key from server $DOMAIN_CONTROLLER for domain $WINDOWS_DOMAIN_NAME.
linux smbd[3336]: [2014/01/24 11:23:25.219196, 0] auth/auth_domain.c:193(connect_to_domain_password_server)
linux smbd[3336]: connect_to_domain_password_server: unable to open the domain client session to machine $DOMAIN_CONTROLLER. Error was : NT_STATUS_CANT_ACCESS_DOMAIN_INFO.
答案1
您在 /etc/samba/smb.conf 檔案中缺少兩個關鍵語句:
server signing = auto
client signing = auto
這應該可以做到。