[Samba] Host Cannot Access Samba

Hicks, Amanda Amanda.Hicks at navcanada.ca
Mon Sep 30 07:57:23 MDT 2013


Thanks for your assistance I have more information as requested:

Smb.conf was created from a template by the systems administrator of the file server
File server is running Red Hat 4.4.6-4
File server has Samba version 3.5.10-124

Client has box running Windows 7 and installed Virtual Box with Linux Centos 6.3. He has mounted a share to the file server samba share and can read the files.  He has mounted the share with windows credentials.  He can read files but not edit them on the Linux VB but can read/edit /delete from the Windows 7 box directly.  He gets the error permission denied when trying to write through the Linux box.

He is using VBOX host with Bridged networking. Also the user noted that when transferring files from Windows to the samba drive that preservation of gid and pid was not achieved and may be the reason this share is not successful.


The logging below was a file generated specifically with his IP address in the title.   Our logging for samba is set as follows:

                # logs split per machine
                log file = /var/log/samba/log.%m
                # max 50KB per log file, then rotate
                max log size = 50

So what the default level is for samba is what is being used currently.  I have increased to logging level 10 and re-started a logging of files for the duration of trying to connect.  Here are excerpts from logs:

For log log.ffff_ipaddress _VB

[2013/09/30 09:37:17.498293,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2013/09/30 09:37:17.498717, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(housekeeping) (nil) rescheduled
[2013/09/30 09:38:15.379882, 10] lib/util_sock.c:731(read_smb_length_return_keepalive)
  got smb length of 38
[2013/09/30 09:38:15.379950,  6] smbd/process.c:1486(process_smb)
  got message type 0x0 of len 0x26
[2013/09/30 09:38:15.379975,  3] smbd/process.c:1489(process_smb)
  Transaction 4819 of length 42 (0 toread)
[2013/09/30 09:38:15.379996,  5] lib/util.c:639(show_msg)
[2013/09/30 09:38:15.380008,  5] lib/util.c:649(show_msg)
  size=38
  smb_com=0x2b
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=0
  smb_flg2=1
  smb_tid=65535
  smb_pid=3408
  smb_uid=0
  smb_mid=0
  smt_wct=1
  smb_vwv[ 0]=    1 (0x1)
  smb_bcc=1
[2013/09/30 09:38:15.380101, 10] ../lib/util/util.c:278(_dump_data)
  [0000] 61                                                a
[2013/09/30 09:38:15.380131,  3] smbd/process.c:1298(switch_message)
  switch message SMBecho (pid 28191) conn 0x0
[2013/09/30 09:38:15.380154,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2013/09/30 09:38:15.380174,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2013/09/30 09:38:15.380193,  5] auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups

Log file for computer log_ffff_workstationname
[2013/09/30 09:38:01.187163, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(housekeeping) (nil) rescheduled
[2013/09/30 09:39:01.246851, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d19830
[2013/09/30 09:39:01.246915, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(deadtime) (nil) called
[2013/09/30 09:39:01.246940, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(deadtime) (nil) rescheduled
[2013/09/30 09:39:01.246970, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d32820
[2013/09/30 09:39:01.246993, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(housekeeping) (nil) called
[2013/09/30 09:39:01.247013,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2013/09/30 09:39:01.247035,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2013/09/30 09:39:01.247054,  5] auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2013/09/30 09:39:01.247096,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2013/09/30 09:39:01.247123, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(housekeeping) (nil) rescheduled
[2013/09/30 09:39:51.486288, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d30e30
[2013/09/30 09:39:51.486362, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(keepalive) (nil) called
[2013/09/30 09:39:51.486417, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(keepalive) (nil) rescheduled
[2013/09/30 09:40:01.256672, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864cb3580
[2013/09/30 09:40:01.256742, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(deadtime) (nil) called
[2013/09/30 09:40:01.256785, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(deadtime) (nil) rescheduled
[2013/09/30 09:40:01.256816, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d197f0
[2013/09/30 09:40:01.256839, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(housekeeping) (nil) called
[2013/09/30 09:40:01.256860,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2013/09/30 09:40:01.256881,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2013/09/30 09:40:01.256901,  5] auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2013/09/30 09:40:01.256943,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2013/09/30 09:40:01.256970, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(housekeeping) (nil) rescheduled


from log.smdb

[2013/09/30 09:35:16.212233,  6] param/loadparm.c:7158(lp_file_list_changed)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Mon Sep 30 09:28:42 2013

[2013/09/30 09:35:16.212303, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(parent_housekeeping) (nil) rescheduled
[2013/09/30 09:36:16.272015, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d27820
[2013/09/30 09:36:16.272082, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(parent_housekeeping) (nil) called
[2013/09/30 09:36:16.272108,  5] smbd/server.c:547(parent_housekeeping_fn)
  houskeeping
[2013/09/30 09:36:16.272129, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(parent_housekeeping) (nil) rescheduled
[2013/09/30 09:37:16.331785, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d28690
[2013/09/30 09:37:16.331848, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(parent_housekeeping) (nil) called
[2013/09/30 09:37:16.331883,  5] smbd/server.c:547(parent_housekeeping_fn)
  houskeeping
[2013/09/30 09:37:16.331916, 10] smbd/process.c:694(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(parent_housekeeping) (nil) rescheduled
[2013/09/30 09:38:16.391454, 10] lib/events.c:131(run_events)
  Running timed event "smbd_idle_event_handler" 0x7fa864d31400
[2013/09/30 09:38:16.391532, 10] smbd/process.c:683(smbd_idle_event_handler)
  smbd_idle_event_handler: idle_evt(parent_housekeeping) (nil) called
[2013/09/30 09:38:16.391559,  5] smbd/server.c:547(parent_housekeeping_fn)
  houskeeping
[2013/09/30 09:38:16.391609,  6] param/loadparm.c:7158(lp_file_list_changed)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Mon Sep 30 09:28:42 2013


Amanda Hicks

Systems Analyst - Systems Engineering
NAV CANADA
280 Hunt Club Road
Ottawa, ON. K1V 1C1
hicksa at navcanada.ca<mailto:hicksa at navcanada.ca>
613-248-6568

From: Nico Kadel-Garcia [mailto:nkadel at gmail.com]
Sent: September-29-13 12:07 PM
To: Marc Muehlfeld
Cc: Hicks, Amanda; samba at lists.samba.org
Subject: Re: [Samba] Host Cannot Access Samba

And which Linux client are you trying to use? Very old versions of Samba can still work, somewhat, but be very difficult to integrate. Very new versions of Samba have a lot of features that your old CIFS server, whatever it is, may not know about and may not support.
Give basic information like what OS or Samba version your file server is, and what Linux version and what Samba version your Linux client are. And did your friend compile Samba from source, or use an OS provided verson? The "smb.conf" provided by most releases is a very good template to work with, and even better explored with the "testparm" tool to find out all the options that are being set by default.


On Sat, Sep 28, 2013 at 3:02 AM, Marc Muehlfeld <samba at marc-muehlfeld.de<mailto:samba at marc-muehlfeld.de>> wrote:
Hello Amanda,


Am 27.09.2013 21<tel:27.09.2013%2021>:56, schrieb Hicks, Amanda:
Answers as follows:

- The linux VB is on a different network than the server

Does the VB host do NAT for his guest?


- I have a log file generated for that VB ipaddress with errors:

getpeername failed. Error was Transport endpoint is not connected
   read_fd_with_timeout: client 0.0.0.0 read error = Connection timed out.
closed connection to service

This message isn't a problem: http://lists.samba.org/archive/samba/2011-March/161477.html

But is this everything that appears in the moment you try connecting? And on which loglevel? What appears in the log if you increase the loglevel and re-try to connect?




Please be a bit more generous with information. :-)

- Is this an AD or NT4 domain?
- Is the VB guest is joined to the domain?

- ....




Regards,
Marc



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list