Bug 3972 - 3.0.23(a) - different errors with access to samba on solaris 8 (Error in dskattr...)
Summary: 3.0.23(a) - different errors with access to samba on solaris 8 (Error in dska...
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.23a
Hardware: Sparc All
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-28 03:02 UTC by Ralf Gross
Modified: 2020-12-30 08:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Gross 2006-07-28 03:02:55 UTC
Starting with samba 3.0.23 I've been getting compiler warnings and I'm not able to get a directory listing with smbclient.

$ ./configure --with-acl-support --prefix=/usr/local/samba3023
--with-quotas --with-included-popt --without-ldap --with-vfs

gcc version 3.4.2
GNU Make 3.80

Running make now throws a lot these warnings:

[-snip-]
Linking nsswitch/libnss_wins.so
ld: warning: option -o appears more than once, first setting taken
[-snip-]
Compiling groupdb/mapping.c with -fPIC
Linking libsmbclient non-shared library bin/libsmbclient.a
[-snip-]
Compiling auth/auth_script.c with -fPIC
Building plugin bin/script.so
ld: warning: option -o appears more than once, first setting take
[-snip-]


After 'make install', I can still login, but smbclient gives me an error
message if I try to list the content of a directory:

Domain=[ERS] OS=[Unix] Server=[Samba 3.0.23]
smb: \> ls
do_list: [\*] NT_STATUS_OBJECT_PATH_NOT_FOUND
Error in dskattr: NT_STATUS_OBJECT_PATH_NOT_FOUND

some debug output:

[2006/07/21 14:36:09, 5] auth/auth_util.c:debug_unix_user_token(475)
  UNIX token of user 362
  Primary group is 300 and contains 11 supplementary groups
  Group[  0]: 300
  Group[  1]: 1
  Group[  2]: 30000
  Group[  3]: 30004
  Group[  4]: 700
  Group[  5]: 30019
  Group[  6]: 33336
  Group[  7]: 4114
  Group[  8]: 4121
  Group[  9]: 4141
  Group[ 10]: 4204
[2006/07/21 14:36:09, 5] smbd/uid.c:change_to_user(260)
  change_to_user uid=(0,362) gid=(0,300)
[2006/07/21 14:36:09, 4] smbd/vfs.c:vfs_ChDir(741)
  vfs_ChDir to /export/home/rg
[2006/07/21 14:36:09, 3] smbd/trans2.c:call_trans2qfilepathinfo(2908)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257
[2006/07/21 14:36:09, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "bang/ralfgro"
[2006/07/21 14:36:09, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = bang/ralfgro, dirpath = , start = bang/ralfgro
[2006/07/21 14:36:09, 1] modules/vfs_extd_audit.c:audit_opendir(164)
  vfs_extd_audit: opendir .
[2006/07/21 14:36:09, 5] smbd/filename.c:unix_convert(295)
  Intermediate not found bang
[2006/07/21 14:36:09, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(2919) cmd=50 (SMBtrans2)
NT_STATUS_OBJECT_PATH_NOT_FOUND


This happens with the fresh smblcient binary that is installed on the solaris system and with smblclient 3.0.22 on ubuntu linux too. 

I seem to have no problems to get the directory listing from windows.

I also tried to disable all vfs seetings in my smb.conf.
Comment 1 Ralf Gross 2006-07-28 03:28:38 UTC
Update:

smbclient 3.0.10-1.fc3 (fedora core3) and 3.0.14a-Debian are both working!
Comment 2 Ralf Gross 2006-07-28 09:14:45 UTC
Here is the difference between 3.0.22 and 3.0.23a smbd log (3.0.22 ubuntu client)

3.0.22

[2006/07/28 15:38:04, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,362) gid=(0,300)
[2006/07/28 15:38:04, 3] smbd/trans2.c:call_trans2findfirst(1632)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, close_after_first=0, close_if_end = 2 requires_res
ume_key = 4 level = 0x104, max_data_bytes = 16644
[2006/07/28 15:38:04, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "*"
[2006/07/28 15:38:04, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = *, dirpath = , start = *
[2006/07/28 15:38:04, 5] smbd/filename.c:unix_convert(335)
  New file *
[2006/07/28 15:38:04, 5] smbd/trans2.c:call_trans2findfirst(1688)
  dir=./, mask = *
[2006/07/28 15:38:04, 5] smbd/dir.c:dptr_create(391)
  dptr_create dir=./
[2006/07/28 15:38:04, 1] modules/vfs_extd_audit.c:audit_opendir(164)
  vfs_extd_audit: opendir ./  
[2006/07/28 15:38:04, 3] smbd/dir.c:dptr_create(511)
  creating new dirptr 256 for path ./, expect_close = 1
[2006/07/28 15:38:04, 4] smbd/trans2.c:call_trans2findfirst(1745)
  dptr_num is 256, wcard = *, attr = 22
[2006/07/28 15:38:04, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found ./. fname=.
[2006/07/28 15:38:04, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found ./.. fname=..



3.0.23a

[2006/07/28 15:55:55, 5] smbd/uid.c:change_to_user(260)
  change_to_user uid=(0,362) gid=(0,300)
[2006/07/28 15:55:55, 4] smbd/vfs.c:vfs_ChDir(741)
  vfs_ChDir to /export/home/rg
[2006/07/28 15:55:55, 3] smbd/trans2.c:call_trans2qfilepathinfo(2908)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257
[2006/07/28 15:55:55, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "bang/ralfgro"
[2006/07/28 15:55:55, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = bang/ralfgro, dirpath = , start = bang/ralfgro
[2006/07/28 15:55:55, 1] modules/vfs_extd_audit.c:audit_opendir(164)
  vfs_extd_audit: opendir .  
[2006/07/28 15:55:55, 5] smbd/filename.c:unix_convert(295)
  Intermediate not found bang
[2006/07/28 15:55:55, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(2919) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND
[2006/07/28 15:55:55, 5] lib/util.c:show_msg(478)
[2006/07/28 15:55:55, 5] lib/util.c:show_msg(488)
Comment 3 Ralf Gross 2006-07-31 04:01:41 UTC
If I explicitly add 'msdfs root = no' to my smb.conf, I have no problem to access shares with smblcient - regardless of which smbclient version I use. The server does not use a dfs tree and I didn't use any dfs option before.

It is mentioned in the 3.0.23(a) release notes, that the default value for 'msdfs root' now has changed.

http://www.samba.org/samba/history/samba-3.0.23a.html
...
msdfs root				Changed default	  Yes


Is it the expected behavior of recent smbclient versions to give the NT_STATUS_OBJECT_PATH_NOT_FOUND error message if _no_ msdfs option is set in the smb.conf file? Thus I have to add this option even if I don't use dfs at all?


Comment 4 Shane Hill 2008-03-19 18:05:15 UTC
I'm also having the same problem with Ubuntu Gutsy Gibbon running Samba 3.0.26a. Changing @group to +group seems to fix the problem as stated here.
Comment 5 Shane Hill 2008-03-19 18:19:45 UTC
(In reply to comment #4)
> I'm also having the same problem with Ubuntu Gutsy Gibbon running Samba
> 3.0.26a. Changing @group to +group seems to fix the problem as stated here.

Forget this comment. This was supposed to be added to bug #4145. Not sure how it got here.
Comment 6 Volker Lendecke 2009-04-06 00:52:13 UTC
Is this still an issue with 3.2 and/or 3.3?
Comment 7 Björn Jacke 2020-12-30 08:56:42 UTC
I'm quite sure, that this is working well with current samba versions