
나는 Debian
컴퓨터를 실행하고 있습니다 Samba
. 을 실행하는 다른 컴퓨터에서 서버에 액세스합니다 Windows 7
. 게스트로서 공유를 읽기 전용, 강제 사용자 등으로 나열할 수 있습니다. 그러나 어떤 자격 증명으로도 삼바 서버에 액세스할 수 없습니다. 나는 단지 얻는다\\ip\storage에 접근할 수 없습니다..
내 구성은 다음과 같습니다.
* 사용자는 실제 사용자로 존재합니다
. * 삼바는 다음과 같이 실행됩니다 security = user
. * 사용자를 추가했습니다. smbpasswd -a user
* 로그에 잘못된 내용이 표시되지 않습니다
. * testparm에 다음이 표시됩니다.
[global]
server string = %h server
interfaces = 127.0.0.0/8, eth1
bind interfaces only = Yes
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[cdrom]
comment = Samba server's CD-ROM
path = /cdrom
guest ok = Yes
locking = No
[allusers]
comment = Access to all users
path = /home/samba-all-users
valid users = @sambashare
force group = sambashare
read only = No
create mask = 0770
directory mask = 0771
[guest]
comment = Read/Write Guest Account Access
path = /home/samba-guest
force group = sambashare
read only = No
create mask = 0775
directory mask = 0775
guest only = Yes
guest ok = Yes
[storage]
comment = Music
path = /home/daniel/storage
메모:
* Samba 버전은 3.6.6입니다.
* 클라이언트는 Windows 7 Home Premium을 실행하고 있습니다.
* 이 컴퓨터에는 iptables가 포함된 방화벽이 있지만 이 테스트 순간에는 ICS만 수행하고 있습니다. 모든 규칙은 기본적으로 ACCEPT로 설정됩니다.
답변1
Windows 7 네트워크 클라이언트필요하다기본적으로 패킷 서명(중간자 공격 방지) 및 Samba비활성화기본적으로 패킷 서명. 귀하의 클라이언트와 서버가 이 항목에 대해 서로 협상하지 못했을 수도 있습니다. 따라서 두 가지 방법 중 하나로 문제를 해결할 수 있습니다.
서버 측 솔루션: Samba에서 패킷 서명 활성화
smb.conf에 다음을 추가합니다:
server signing = auto
서비스를 다시 시작한 후 다시 시도하세요.
mandatory
대신 시도해 볼 수도 있습니다 auto
. 문서 읽기여기.
클라이언트 측 해결 방법: Microsoft 네트워크 클라이언트에서 패킷 서명 비활성화
먼저 로컬 그룹 정책 편집기를 엽니다.
- 시작 버튼을 누르세요
gpedit.msc
검색 시작 상자에 입력 하고 Enter 키를 누릅니다.
로컬 그룹 정책 편집기에서 다음으로 이동합니다.
Local Computer Policy->
Computer Configuration->
Windows Settings->
Security Settings->
Local Policies->
Security Options
정책 찾기:
Microsoft network client: Digitally sign communications (always)
활성화된 경우 비활성화로 변경합니다. 적용을 누르고 컴퓨터를 다시 시작한 후 다시 시도하십시오.
답변2
가능한 해결책을 찾기 위해 수퍼유저에서 비슷한 질문을 확인할 수 있습니다(https://superuser.com/questions/699240/windows-7-laptop-cant-reliously-connect-to-my-linux-smb-shared-directory/699273#699273)
답변3
내 작업 구성은 다음과 같습니다(OpenSUSE 11,3 smbd 버전 3.5.4-5.11.1-2573-SUSE-SL11.3).
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
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
domain logons = Yes
domain master = Yes
security = users
wins support = No
hosts allow = 192.168.0.*
[personal_projects]
inherit acls = No
path = /data_storage/personal_projects
read only = No
admin users = backupcat
available = Yes
browseable = Yes
comment = Komodo projects
guest ok = No
hosts allow = 192.168.0.*
valid users = @users
write list = @users
귀하의 구성으로 시도해보십시오.
답변4
가능성이 희박할 수도 있지만 idmap config *가 winbind를 호출합니다. nsswitch.conf는 어떻게 보입니까? 특히 passwd에 관한 내용은 다음과 같습니다.
아직 읽지 않았다면 여기를 참조하여 자세한 내용을 읽어보세요. http://www.samba.org/samba/docs/man/manpages-3/winbindd.8.html
문안 인사