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.
Update: smbclient 3.0.10-1.fc3 (fedora core3) and 3.0.14a-Debian are both working!
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)
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?
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.
(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.
Is this still an issue with 3.2 and/or 3.3?
I'm quite sure, that this is working well with current samba versions