[Samba] Problem Accessing Samba Server from Windows

Administrator Administrator at paradisent.com
Sun Mar 5 19:26:58 GMT 2006


Hi,

 

I'm having a problem accessing my samba server from Windows. The problem
occurs every time I try to browse to it on either XP or 2003 Server. The
error message I get is: "\\Zeus is not accessible. You might not have
permission to use this network resource. Contact the administrator of
this server to find out if you have access permissions. The account is
not authorized to log in from this station."

 

There are no errors in the event logs on the Windows 2003 SP1 Enterprise
server, which is the PDC. The samba server is running Mandriva 2006
PowerPack. It's running Samba 3.020 with krb 1.4.2.

 

For setting up the Samba server I followed the steps on the Samba
website to join the domain. The join went flawlessly and I can list the
users properly using wbinfo and getent.

 

The PDC is named "Paradise", the XP client is "Tama", and the samba
server is "Zeus".

 

Here's my config files:

 

# Samba config file

 

[global]

      log file = /var/log/samba/%m.log

      ldap ssl = no

      idmap gid = 10000-20000

      wins server = 192.168.0.5

      null passwords = yes

      domain master = no

      username map = /etc/samba/smbusers

      encrypt passwords = yes

      winbind trusted domains only = no

      realm = CHU.PARADISENT.COM

      public = yes

      template shell = /bin/tcsh

      dns proxy = no

      netbios name = zeus

      netbios aliases = ZEUS Zeus

      server string = Samba Server

      printing = cups

      password server = 192.168.0.5

      idmap uid = 10000-20000

      local master = no

      workgroup = CHU

      os level = 20

      printcap name = CUPS

      security = ads

      preferred master = no

      winbind separator = |

      max log size = 50

 

[shared]

      comment = Shared Folder

      path = /shared

      ;valid users = CHU|administrator, CHU|annie, CHU|jacob,
@CHU|Household

      read only = No

 

[jacob]

      comment = Jacob's Home Dir

      path = /home/jacob

      ;valid users = CHU|jacob

      read only = No

 

[root]

      comment = Root's Home Dir

      path = /root

      ;valid users = CHU|administrator, CHU|annie, CHU|jacob,
@BUILTIN|Administrators, "@CHU|Domain Admins", "@CHU|Enterprise Admins"

      read only = No

 

[annie]

      comment = Annie's Home Dir

      path = /home/annie

      ;valid users = CHU|annie

      read only = No

 

[website]

      comment = Main Website

      path = /var/www/html

      ;valid users = CHU|administrator, CHU|annie, CHU|jacob,
@CHU|Household

      read only = No

 

 

#

# /etc/nsswitch.conf

 

passwd:           files winbind

shadow:           files winbind

group:            files winbind

 

#hosts:     db files nisplus nis dns

hosts:      files dns winbind

 

bootparams: nisplus [NOTFOUND=return] files

 

ethers:     files

netmasks:   files

networks:   files dns

protocols:  files winbind

rpc:        files

services:   files winbind

 

netgroup:   files winbind

 

publickey:  nisplus

 

automount:  files winbind

aliases:    files nisplus

 

 

krb5.conf

 

[logging]

 default = FILE:/var/log/krb5libs.log

 kdc = FILE:/var/log/krb5kdc.log

 admin_server = FILE:/var/log/kadmind.log

 

[libdefaults]

 ticket_lifetime = 24000

 default_realm = CHU.PARADISENT.COM

 

[realms]

 CHU.PARADISENT.COM = {

  kdc = paradise.paradisent.com

  admin_server = paradise.paradisent.com

  default_domain = chu.paradisent.com

 }

 

[domain_realm]

 .kerberos.server = CHU.PARADISENT.COM

 .chu.paradisent.com = CHU.PARADISENT.COM

 chu.paradisent.com = CHU.PARADISENT.COM

 

[appdefaults]

 pam = {

   debug = false

   ticket_lifetime = 36000

   renew_lifetime = 36000

   forwardable = true

   krb4_convert = false

 }

 

 

Here is what I found in my samba server logs:

 

/var/log/messages

 

Mar  5 10:24:57 zeus smbd[5099]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:get_peer_addr(1222) 

Mar  5 10:24:57 zeus smbd[5099]:   getpeername failed. Error was
Transport endpoint is not connected 

Mar  5 10:24:57 zeus smbd[19273]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:get_peer_addr(1222) 

Mar  5 10:24:57 zeus smbd[19273]:   getpeername failed. Error was
Transport endpoint is not connected 

Mar  5 10:24:57 zeus smbd[19273]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:write_data(554) 

Mar  5 10:24:57 zeus smbd[19273]:   write_data: write failure in writing
to client 0.0.0.0. Error Connection reset by peer 

Mar  5 10:24:57 zeus smbd[19273]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:send_smb(762) 

Mar  5 10:24:57 zeus smbd[19273]:   Error writing 4 bytes to client. -1.
(Connection reset by peer) 

Mar  5 10:24:57 zeus smbd[5099]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:get_peer_addr(1222) 

Mar  5 10:24:57 zeus smbd[5099]:   getpeername failed. Error was
Transport endpoint is not connected 

Mar  5 10:24:57 zeus smbd[19276]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:get_peer_addr(1222) 

Mar  5 10:24:57 zeus smbd[19276]:   getpeername failed. Error was
Transport endpoint is not connected 

Mar  5 10:24:57 zeus smbd[19276]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:write_data(554) 

Mar  5 10:24:57 zeus smbd[19276]:   write_data: write failure in writing
to client 0.0.0.0. Error Connection reset by peer 

Mar  5 10:24:57 zeus smbd[19276]: [2006/03/05 10:24:57, 0]
lib/util_sock.c:send_smb(762) 

Mar  5 10:24:57 zeus smbd[19276]:   Error writing 4 bytes to client. -1.
(Connection reset by peer) 

Mar  5 10:59:52 zeus smbd[5099]: [2006/03/05 10:59:52, 0]
lib/util_sock.c:get_peer_addr(1222) 

Mar  5 10:59:52 zeus smbd[5099]:   getpeername failed. Error was
Transport endpoint is not connected 

Mar  5 10:59:52 zeus smbd[19280]: [2006/03/05 10:59:52, 0]
lib/util_sock.c:get_peer_addr(1222) 

Mar  5 10:59:52 zeus smbd[19280]:   getpeername failed. Error was
Transport endpoint is not connected 

Mar  5 10:59:52 zeus smbd[19280]: [2006/03/05 10:59:52, 0]
lib/util_sock.c:write_data(554) 

Mar  5 10:59:52 zeus smbd[19280]:   write_data: write failure in writing
to client 0.0.0.0. Error Connection reset by peer 

Mar  5 10:59:52 zeus smbd[19280]: [2006/03/05 10:59:52, 0]
lib/util_sock.c:send_smb(762) 

Mar  5 10:59:52 zeus smbd[19280]:   Error writing 4 bytes to client. -1.
(Connection reset by peer) 

 

 

log.nmbd

 

[2006/03/05 04:02:04, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(284)

  dump_workgroups()

   dump workgroup on subnet    192.168.0.20: netmask=  255.255.255.0:

      CHU(1) current master browser = PARADISE

            ZEUS 40009b03 (Samba Server)

            PARADISE 4084122b ()

[2006/03/05 04:02:04, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(284)

  dump_workgroups()

   dump workgroup on subnet  UNICAST_SUBNET: netmask=        0.0.0.0:

      CHU(1) current master browser = UNKNOWN

            ZEUS 40009b03 (Samba Server)

 

Log.wb-CHU

 

[2006/03/05 00:32:30, 0] lib/util_sock.c:write_data(556)

  write_data: write failure. Error = Connection reset by peer

[2006/03/05 00:32:30, 0] libsmb/clientgen.c:write_socket(138)

  write_socket: Error writing 190 bytes to socket 3: ERRNO = Connection
reset by peer

[2006/03/05 00:32:30, 0] libsmb/clientgen.c:cli_send_smb(168)

  Error writing 190 bytes to client. -1 (Connection reset by peer)

[2006/03/05 00:32:30, 0] rpc_client/cli_pipe.c:rpc_api_pipe(438)

  cli_pipe: return critical error. Error was Write error: Connection
reset by peer

[2006/03/05 00:37:30, 0] rpc_client/cli_pipe.c:cli_rpc_close(1767)

  cli_rpc_open failed on pipe \NETLOGON to machine PARADISE.  Error was
Write error: Connection reset by peer

[2006/03/05 00:37:30, 0] rpc_client/cli_pipe.c:cli_rpc_close(1767)

  cli_rpc_open failed on pipe \NETLOGON to machine PARADISE.  Error was
Write error: Connection reset by peer

[2006/03/05 01:08:00, 0] lib/util_sock.c:write_data(556)

  write_data: write failure. Error = Connection reset by peer

[2006/03/05 01:08:00, 0] libsmb/clientgen.c:write_socket(138)

  write_socket: Error writing 190 bytes to socket 3: ERRNO = Connection
reset by peer

[2006/03/05 01:08:00, 0] libsmb/clientgen.c:cli_send_smb(168)

  Error writing 190 bytes to client. -1 (Connection reset by peer)

[2006/03/05 01:08:00, 0] rpc_client/cli_pipe.c:rpc_api_pipe(438)

  cli_pipe: return critical error. Error was Write error: Connection
reset by peer

[2006/03/05 01:10:34, 0] rpc_client/cli_pipe.c:cli_rpc_open_noauth(1700)

  rpc_pipe_bind failed

 

 

paradise.log

 

[2006/03/04 23:54:45, 0] lib/util_sock.c:write_data(554)

  write_data: write failure in writing to client 192.168.0.5. Error
Connection reset by peer

[2006/03/04 23:54:45, 0] lib/util_sock.c:send_smb(762)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

[2006/03/05 10:59:52, 0] lib/util_sock.c:write_data(554)

  write_data: write failure in writing to client 0.0.0.0. Error
Connection reset by peer

[2006/03/05 10:59:52, 0] lib/util_sock.c:send_smb(762)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

 

 

Smbd.log

 

[2006/03/05 04:02:04, 1] smbd/server.c:open_sockets_smbd(354)

  Reloading services after SIGHUP

[2006/03/05 10:24:57, 0] lib/util_sock.c:get_peer_addr(1222)

  getpeername failed. Error was Transport endpoint is not connected

[2006/03/05 10:24:57, 0] lib/util_sock.c:get_peer_addr(1222)

  getpeername failed. Error was Transport endpoint is not connected

[2006/03/05 10:24:57, 0] lib/util_sock.c:get_peer_addr(1222)

  getpeername failed. Error was Transport endpoint is not connected

[2006/03/05 10:24:57, 0] lib/util_sock.c:get_peer_addr(1222)

  getpeername failed. Error was Transport endpoint is not connected

[2006/03/05 10:59:52, 0] lib/util_sock.c:get_peer_addr(1222)

  getpeername failed. Error was Transport endpoint is not connected

[2006/03/05 10:59:52, 0] lib/util_sock.c:get_peer_addr(1222)

  getpeername failed. Error was Transport endpoint is not connected

 

 

tama.log

 

[2006/03/04 22:22:39, 0] lib/util_sock.c:write_data(554)

  write_data: write failure in writing to client 0.0.0.0. Error
Connection reset by peer

[2006/03/04 22:22:39, 0] lib/util_sock.c:send_smb(762)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

[2006/03/05 01:19:57, 0] lib/util_sock.c:write_data(554)

  write_data: write failure in writing to client 192.168.0.15. Error
Connection reset by peer

[2006/03/05 01:19:57, 0] lib/util_sock.c:send_smb(762)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

[2006/03/05 10:24:57, 0] lib/util_sock.c:write_data(554)

  write_data: write failure in writing to client 0.0.0.0. Error
Connection reset by peer

[2006/03/05 10:24:57, 0] lib/util_sock.c:send_smb(762)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

[2006/03/05 10:24:57, 0] lib/util_sock.c:write_data(554)

  write_data: write failure in writing to client 0.0.0.0. Error
Connection reset by peer

[2006/03/05 10:24:57, 0] lib/util_sock.c:send_smb(762)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

 

 

Any help would be greatly appreciated!

 

Thanks,

 

Jacob.

 



More information about the samba mailing list