Samba installation, starting problems encountered

Source: Internet
Author: User

It's weird to start samba.

./smbd-d

./nmbd-d

Discovery process is in, but still cannot connect to Samba server


View LOG.SMBD

Check Log
[2006/08/10 23:12:37, 0] Smbd/server.c:main (798)
SMBD version 3.0.14a started.
Copyright Andrew Tridgell and the Samba team 1992-2004
[2006/08/10 23:12:37, 0] printing/pcap.c:pcap_cache_reload (149)
Unable to open Printcap File/etc/printcap for read!


Cannot read/etc/printcap file
Check that the current environment does not have the file, because the printer is not currently installed, first create an empty file to it
echo "" >/etc/printcap

That's OK.

For encountering

Feb 15:09:21 Alarmpi smbd[2155]: [2014/02/21 15:09:21.561919,  0]. /source3/lib/util_sock.c:423 (open_socket_in)
Feb 15:09:21 alarmpi smbd[2155]: open_socket_in (): socket () call Failed:address family not supported by protocol
FEB 15:09:21-Alarmpi]: [smbd[2155 2014/02/21,  0]. /source3/smbd/server.c:684 (smbd_open_one_socket)
Feb 15:09:21 alarmpi smbd[2155]: Smbd_open_once_socket:open _socket_in:address family not supported by protocol Feb 15:09:21 Alarmpi smbd[2155
]: [2014/02/21 15:09:21.590267,< C6/>0]. /source3/lib/util_sock.c:423 (open_socket_in)
Feb 15:09:21 alarmpi smbd[2155]: open_socket_in (): socket () call Failed:address family not supported by protocol
FEB 15:09:21-Alarmpi]: [smbd[2155 2014/02/21,  0]. /source3/smbd/server.c:684 (smbd_open_one_socket)
Feb 15:09:21 alarmpi smbd[2155]: smbd_open_once_socket: Open_socket_in:address family not supported by protocol

Linux server does not support IPv6, only IPv4

Workaround 1:
# echo 1 >/proc/sys/net/ipv6/bindv6only
# echo "net.ipv6.bindv6only = 1" >>/etc/sysctl.conf
Or
#sysctl-W net.ipv6.bindv6only=1//–w Change Configuration
#lsof-i:445//View ports

When the/proc/sys/net/ipv6/bindv6only is set to 0 o'clock, SMBD will only listen on the ports on the IPv6.
When the/proc/sys/net/ipv6/bindv6only is set to 1 o'clock, SMBD listens on both IPv6 and IPv4 ports.

Workaround 2:
Edit the smb.conf file and add the global configuration bind interfaces> I did see the rfc2553 rule when Samba landed.

Bind interfaces only = yes
interfaces = 127.0.0.1 host_ip_address

Netstat-natulp | grep SMB


./smbclient//221.132.22.58/jazywoowu-u jazywoowu%123456










Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.