[WLUG] partially working Samba service

Jim Irrer irrer at umich.edu
Mon Nov 24 15:02:24 EST 2014


Thanks for the verbose log setting idea Dan.

After sifting through the logs, the suspicious parts would appear to be
(highlighted):

[2014/11/24 14:41:01.234436,  3] smbd/process.c:1414(switch_message)
  switch message SMBnttrans (pid 21356) conn 0x7f0100decf10
[2014/11/24 14:41:01.234463,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2014/11/24 14:41:01.234493, 10] smbd/nttrans.c:3162(reply_nttrans)
  num_setup=0, param_total=72, this_param=72, max_param=101, data_total=24,
this_data=24, max_data=0, param_offset=76, data_offset=148
[2014/11/24 14:41:01.234524,  5]
smbd/nttrans.c:1050(call_nt_transact_create)
  call_nt_transact_create
[2014/11/24 14:41:01.234551, 10]
smbd/nttrans.c:1126(call_nt_transact_create)
  call_nt_transact_create - ea_len = 24 but EA's not supported.
[2014/11/24 14:41:01.234579,  3] smbd/error.c:81(error_packet_set)
  error packet at smbd/nttrans.c(1127) cmd=160 (SMBnttrans)
NT_STATUS_EAS_NOT_SUPPORTED
[2014/11/24 14:41:01.234607,  5] lib/util.c:332(show_msg)
[2014/11/24 14:41:01.234621,  5] lib/util.c:342(show_msg)









  unix_convert called on file "date.txt"
[2014/11/24 14:41:01.236704, 10] smbd/statcache.c:283(stat_cache_lookup)
  stat_cache_lookup: lookup succeeded for name [DATE.TXT] -> [date.txt]
[2014/11/24 14:41:01.236813,  5] smbd/filename.c:416(unix_convert)
  unix_convert begin: name = date.txt, dirpath = , start = date.txt
[2014/11/24 14:41:01.236877, 10] smbd/mangle_hash2.c:418(is_mangled)
  is_mangled date.txt ?
[2014/11/24 14:41:01.236907, 10] smbd/mangle_hash2.c:357(
is_mangled_component)
  is_mangled_component date.txt (len 8) ?
[2014/11/24 14:41:01.236949, 10] smbd/mangle_hash2.c:418(is_mangled)
  is_mangled date.txt ?
[2014/11/24 14:41:01.236976, 10]
smbd/mangle_hash2.c:357(is_mangled_component)
  is_mangled_component date.txt (len 8) ?
[2014/11/24 14:41:01.237059,  5] smbd/statcache.c:143(stat_cache_add)
  stat_cache_add: Added entry (7f0100def050:size 8) DATE.TXT -> date.txt
[2014/11/24 14:41:01.237093,  5] smbd/statcache.c:143(stat_cache_add)
  stat_cache_add: Added entry (7f0100deeff0:size 8) DATE.TXT -> date.txt
[2014/11/24 14:41:01.237119,  5] smbd/filename.c:965(unix_convert)
  conversion finished date.txt -> date.txt
[2014/11/24 14:41:01.237146,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [date.txt] [/home]
[2014/11/24 14:41:01.237205,  3] smbd/vfs.c:963(check_reduced_name)
  check_reduced_name: couldn't get realpath for date.txt
[2014/11/24 14:41:01.237233,  5] smbd/filename.c:1039(check_name)
  check_name: name date.txt failed with NT_STATUS_ACCESS_DENIED
[2014/11/24 14:41:01.237259,  3] smbd/filename.c:1365(filename_convert)
  filename_convert: check_name failed for name date.txt with
NT_STATUS_ACCESS_DENIED
[2014/11/24 14:41:01.237285,  3] smbd/error.c:81(error_packet_set)
  error packet at smbd/nttrans.c(552) cmd=162 (SMBntcreateX)
NT_STATUS_ACCESS_DENIED
[2014/11/24 14:41:01.237311,  5] lib/util.c:332(show_msg)
[2014/11/24 14:41:01.237325,  5] lib/util.c:342(show_msg)asdfaf






[2014/11/24 14:41:01.250516, 10] ../lib/util/util.c:415(dump_data)
  [0000] 00 5C 00 64 00 61 00 74   00 65 00 2E 00 74 00 78   .\.d.a.t
.e...t.x
  [0010] 00 74 00 00 00                                    .t...
[2014/11/24 14:41:01.250565,  3] smbd/process.c:1414(switch_message)
  switch message SMBntcreateX (pid 21356) conn 0x7f0100decf10
[2014/11/24 14:41:01.250591,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2014/11/24 14:41:01.250618, 10] smbd/nttrans.c:500(reply_ntcreate_and_X)
  reply_ntcreate_and_X: flags = 0x16, access_mask = 0x20089 file_attributes
= 0x0, share_access = 0x7, create_disposition = 0x1 create_options = 0x0
root_dir_fid = 0x0, fname = date.txt
[2014/11/24 14:41:01.250646,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "date.txt"
[2014/11/24 14:41:01.250672, 10] smbd/statcache.c:283(stat_cache_lookup)
  stat_cache_lookup: lookup succeeded for name [DATE.TXT] -> [date.txt]
[2014/11/24 14:41:01.250723,  5] smbd/filename.c:416(unix_convert)
  unix_convert begin: name = date.txt, dirpath = , start = date.txt
[2014/11/24 14:41:01.250789, 10] smbd/mangle_hash2.c:418(is_mangled)
  is_mangled date.txt ?
[2014/11/24 14:41:01.250818, 10]
smbd/mangle_hash2.c:357(is_mangled_component)
  is_mangled_component date.txt (len 8) ?
[2014/11/24 14:41:01.250859, 10] smbd/mangle_hash2.c:418(is_mangled)
  is_mangled date.txt ?
[2014/11/24 14:41:01.250887, 10]
smbd/mangle_hash2.c:357(is_mangled_component)
  is_mangled_component date.txt (len 8) ?
[2014/11/24 14:41:01.250946,  5] smbd/statcache.c:143(stat_cache_add)
  stat_cache_add: Added entry (7f0100def050:size 8) DATE.TXT -> date.txt
[2014/11/24 14:41:01.250980,  5] smbd/statcache.c:143(stat_cache_add)
  stat_cache_add: Added entry (7f0100deeff0:size 8) DATE.TXT -> date.txt
[2014/11/24 14:41:01.251006,  5] smbd/filename.c:965(unix_convert)
  conversion finished date.txt -> date.txt
[2014/11/24 14:41:01.251032,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [date.txt] [/home]
[2014/11/24 14:41:01.251074,  3] smbd/vfs.c:963(check_reduced_name)
  check_reduced_name: couldn't get realpath for date.txt
[2014/11/24 14:41:01.251102,  5] smbd/filename.c:1039(check_name)
  check_name: name date.txt failed with NT_STATUS_ACCESS_DENIED
[2014/11/24 14:41:01.251128,  3] smbd/filename.c:1365(filename_convert)
  filename_convert: check_name failed for name date.txt with
NT_STATUS_ACCESS_DENIED
[2014/11/24 14:41:01.251153,  3] smbd/error.c:81(error_packet_set)
  error packet at smbd/nttrans.c(552) cmd=162 (SMBntcreateX)
NT_STATUS_ACCESS_DENIED
[2014/11/24 14:41:01.251179,  5] lib/util.c:332(show_msg)
[2014/11/24 14:41:01.251194,  5] lib/util.c:342(show_msg)














Thanks,

- Jim

Jim Irrer     irrer at umich.edu       (734) 647-4409
University of Michigan Hospital Radiation Oncology
519 W. William St.             Ann Arbor, MI 48103-4943

On Mon, Nov 24, 2014 at 2:08 PM, Dan Pritts <danno at dogcheese.net> wrote:

> I thought an individual smbd got spawned for each connection, and then
> setuid to the user who was connecting.  Perhaps I’m wrong, or out of date.
>
> My next suggestion would be to dig in and figure out how to increase
> logging verbosity.  make sure that /var/log/samba is mode 1777 so if i’m
> right about the suid bit, each individual smbd will still be able to write
> there.
>
>
> On Nov 24, 2014, at 2:01 PM, Jim Irrer <irrer at umich.edu> wrote:
>
> Dan -
>
> I've checked file permissions on the server side and chmod'ed them to 777.
>
> The smbd is running as root.  There will be several different users
> accessing this,
> so I don't see how it could be run as a regular user.
>
> Not much info, but here's the contents of /var/log/samba/log.smbd .  There
> wasn't anything
> else in the /var/log directory.
>
>
> [2014/11/24 09:51:38,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:28:11,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:30:53,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:44:56,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:44:56.448058,  0] param/loadparm.c:8004(lp_do_parameter)
>   Global parameter wins support found in service section!
> [2014/11/24 10:45:55,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:45:55.245308,  0] param/loadparm.c:8004(lp_do_parameter)
>   Global parameter wins support found in service section!
> [2014/11/24 10:49:27,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:57:29,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 11:36:13,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 11:55:12,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 11:57:53,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:05:01,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:08:31,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:12:36,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:28:23,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:31:41,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:34:25,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:01:30,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:02:16,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:43:54,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:44:08,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
>
>
> Thanks,
>
> - Jim
>
> Jim Irrer     irrer at umich.edu       (734) 647-4409
> University of Michigan Hospital Radiation Oncology
> 519 W. William St.             Ann Arbor, MI 48103-4943
>
> On Mon, Nov 24, 2014 at 1:48 PM, Dan Pritts <danno at dogcheese.net> wrote:
>
>> I presume you have double checked the permissions on the server side.
>>
>> Is the smbd running as “irrer”?  (which is I think how it should be but
>> I”m not sure)
>>
>> What does the log file say?
>>
>> On Nov 24, 2014, at 1:40 PM, Jim Irrer <irrer at umich.edu> wrote:
>>
>> Howdy -
>>
>> I'm trying to get a Samba version 3.6.23 server working, and it's about
>> 2% functional.  From Windows 7, I mount the
>> directory with the following command:
>>
>> net use m: '\\141.214.124.93\home' [password] /USER:irrer
>>
>>
>> On Windows I can do a directory list of the /home directory, but nothing
>> else.  I can not cat/type a file on
>> Windows, or do a directory listing on any subdirs under /home.
>>
>> Just to eliminate one more source of problems, I have shut off iptables.
>> I don't care about printers, just want
>> to access some Linux directories from Windows.  The password was set up
>> on Linux with the smbpasswd
>> command, and if I use the wrong one then the mount/'net use' command
>> fails, which confirms proper password
>> setup (right?).
>>
>> I also have another Samba server 3.0.33 that I set up long ago that works
>> great from the same Windows desktop.
>>
>>
>>
>> The /etc/samba/smb.config file with comments removed is:
>>
>> [global]
>>         workgroup = umhs
>>         server string = Samba Server Version %v
>>         client signing = Yes
>>         log file = /var/log/samba/log.%m
>>         max log size = 50
>>         security = user
>>         passdb backend = tdbsam
>>         load printers = yes
>>         cups options = raw
>> [homes]
>>     browsable = no
>>     map archive = yes
>> [home]
>>         browseable = yes
>>         read only = no
>>         path = /home
>>
>> Thanks,
>>
>> - Jim
>>
>> Jim Irrer     irrer at umich.edu       (734) 647-4409
>> University of Michigan Hospital Radiation Oncology
>> 519 W. William St.             Ann Arbor, MI 48103-4943
>>  _______________________________________________
>> washlug mailing list
>> washlug at washlug.org
>> http://linux.marcdatabase.com/mailman/listinfo/washlug
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.marcdatabase.com/pipermail/washlug/attachments/20141124/70451a96/attachment-0001.html 


More information about the washlug mailing list