Will Holmes
2007-May-29 15:50 UTC
[Samba] Help Please! - Copying files from Windows to Samba share loses connection
Hello all, I haven't been able to solve an issue I am having when copying over data from a Windows box to a Samba share. I have found others with the same issue and I have made some configuration changes to try and solve the issue but the issue is still lingering. I want to migrate off my old Windows box but until I solve this issue I am I cannot move forward. Please let me know if you need any further info. Thanks!!! Here is the two lines I have added to my smb.conf file. Niether change did the trick. client schannel = no smb ports = 139 ************************************************************ Here is my smb.config file: ************************************************************ # smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE # Date: 2004-07-01 [global] workgroup = FMIC printing = cups printcap name = cups printcap cache time = 750 cups options = raw printer admin = @ntadmin, root, administrator username map = /etc/samba/smbusers map to guest = Bad User logon path = \\%L\profiles\.msprofile logon home = \\%L\%U\.9xprofile logon drive = P: security = ADS encrypt passwords = yes domain logons = no ldap idmap suffix = ou=Idmap ldap machine suffix = ou=Computers local master = yes wins server wins support = no netbios name = FMICLINUX add machine script preferred master = auto ldap suffix = dc=example,dc=com realm = FMIC.FMIC.COM idmap uid = 15000-20000 idmap gid = 15000-20000 server string allow trusted domains = yes password server = * nt acl support = yes map acl inherit = yes winbind use default domain = yes client schannel = no smb ports = 139 ************************************************************ System Log errors: ************************************************************ May 23 12:59:00 fmiclinux /USR/SBIN/CRON[2745]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly) ? ?May 23 13:59:00 fmiclinux /USR/SBIN/CRON[2755]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly) ? ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] lib/util_sock.c:get_peer_addr(978) ? ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] lib/util_sock.c:get_peer_addr(978) ? ?May 25 09:00:03 fmiclinux sshd[2983]: fatal: Timeout before authentication for ::ffff:10.0.0.158 ? ?May 25 09:00:03 fmiclinux smbd[2263]: Error writing 51 bytes to client. -1. (Broken pipe) ? ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was Transport endpoint is not connected ? ?May 25 09:00:03 fmiclinux smbd[3240]: [2007/05/25 09:00:03, 0] lib/util_sock.c:write_socket_data(413) ? ?May 25 09:00:03 fmiclinux smbd[3242]: getpeername failed. Error was Transport endpoint is not connected ? ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] lib/util_sock.c:get_peer_addr(978) ? ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was Transport endpoint is not connected ? ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] lib/util_sock.c:write_socket_data(413) ? ?May 25 09:00:03 fmiclinux smbd[3240]: write_socket_data: write failure. Error = Connection reset by peer ? ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] lib/util_sock.c:write_socket(438) ? ?May 25 09:00:04 fmiclinux smbd[3240]: write_socket: Error writing 4 bytes to socket 5: ERRNO = Connection res? ?~et by peer ? ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] lib/util_sock.c:send_smb(630) ? ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] lib/util_sock.c:get_peer_addr(978) ? ?May 25 09:00:04 fmiclinux smbd[3242]: getpeername failed. Error was Transport endpoint is not connected ? ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] lib/util_sock.c:write_socket_data(413) ? ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket_data: write failure. Error = Connection reset by peer ? ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] lib/util_sock.c:write_socket(438) ? ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket: Error writing 4 bytes to socket 21: ERRNO = Connection re? Thanks in advance!! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: wholmes@fmic.com
Aaron Kincer
2007-May-29 16:21 UTC
[Samba] Help Please! - Copying files from Windows to Samba share loses connection
I see you don't have the server string set. Have you tried to join this server to the domain with a net ads join command? Will Holmes wrote:> Hello all, > > I haven't been able to solve an issue I am having when copying over data > from a Windows box to a Samba share. I have found others with the same > issue and I have made some configuration changes to try and solve the issue > but the issue is still lingering. I want to migrate off my old Windows box > but until I solve this issue I am I cannot move forward. Please let me know > if you need any further info. Thanks!!! > > Here is the two lines I have added to my smb.conf file. Niether change did > the trick. > client schannel = no > smb ports = 139 > > ************************************************************ > Here is my smb.config file: > ************************************************************ > > # smb.conf is the main Samba configuration file. You find a full commented > # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE > # Date: 2004-07-01 > [global] > workgroup = FMIC > printing = cups > printcap name = cups > printcap cache time = 750 > cups options = raw > printer admin = @ntadmin, root, administrator > username map = /etc/samba/smbusers > map to guest = Bad User > logon path = \\%L\profiles\.msprofile > logon home = \\%L\%U\.9xprofile > logon drive = P: > security = ADS > encrypt passwords = yes > domain logons = no > ldap idmap suffix = ou=Idmap > ldap machine suffix = ou=Computers > local master = yes > wins server > wins support = no > netbios name = FMICLINUX > add machine script > preferred master = auto > ldap suffix = dc=example,dc=com > realm = FMIC.FMIC.COM > idmap uid = 15000-20000 > idmap gid = 15000-20000 > server string > allow trusted domains = yes > password server = * > nt acl support = yes > map acl inherit = yes > winbind use default domain = yes > client schannel = no > smb ports = 139 > > ************************************************************ > System Log errors: > ************************************************************ > > May 23 12:59:00 fmiclinux /USR/SBIN/CRON[2745]: (root) CMD ( rm -f > /var/spool/cron/lastrun/cron.hourly) ? > ?May 23 13:59:00 fmiclinux /USR/SBIN/CRON[2755]: (root) CMD ( rm -f > /var/spool/cron/lastrun/cron.hourly) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux sshd[2983]: fatal: Timeout before > authentication for ::ffff:10.0.0.158 ? > ?May 25 09:00:03 fmiclinux smbd[2263]: Error writing 51 bytes to client. > -1. (Broken pipe) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3240]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:03 fmiclinux smbd[3241]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:03 fmiclinux smbd[3241]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:03 fmiclinux smbd[3240]: write_socket_data: write failure. > Error = Connection reset by peer ? > ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket(438) ? > ?May 25 09:00:04 fmiclinux smbd[3240]: write_socket: Error writing 4 > bytes to socket 5: ERRNO = Connection res? > ?~et by peer > ? > ?May 25 09:00:04 fmiclinux smbd[3240]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:send_smb(630) ? > ?May 25 09:00:03 fmiclinux smbd[3242]: [2007/05/25 09:00:03, 0] > lib/util_sock.c:get_peer_addr(978) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: getpeername failed. Error was > Transport endpoint is not connected ? > ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket_data(413) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket_data: write failure. > Error = Connection reset by peer ? > ?May 25 09:00:04 fmiclinux smbd[3242]: [2007/05/25 09:00:04, 0] > lib/util_sock.c:write_socket(438) ? > ?May 25 09:00:04 fmiclinux smbd[3242]: write_socket: Error writing 4 > bytes to socket 21: ERRNO = Connection re? > > Thanks in advance!! > > Will Holmes > Programmer Analyst > Fremont Insurance Company > Ph: 231-924-0302 Ext. 145 > E-Mail: wholmes@fmic.com > >