unable to use SMB Share on Mac
I have a SMB Share defined on the Mac which I like to access from Linux/AmigaOS using smbfs.
Mounting works but when trying to list any files on share it gives error messages:
solid:~# grep imac /etc/fstab
//imac/home /imac/home smbfs username=wepl,password=xxx,iocharset=iso8859-1,user,noauto 0 0
solid:~# mount /imac/home
solid:~# df /imac/home/
Filesystem 1K-blocks Used Available Use% Mounted on
//imac/home 312229888 33529856 278700032 11% /imac/home
solid:~# ls /imac/home/
smb getlength: recv error = 5
smb trans2request: result=-5, setting invalid
smb_retry: successful, new pid=711, generation=36
smb proc_readdirlong: error=-5, retrying
smb getlength: recv error = 5
smb trans2request: result=-5, setting invalid
smb_retry: successful, new pid=711, generation=37
smb proc_readdirlong: error=-5, retrying
smb getlength: recv error = 5
smb trans2request: result=-5, setting invalid
smb_retry: successful, new pid=711, generation=38
....
reason is probably smbd crashes on the mac (/var/log/samba/log.smbd):
2008/06/24 18:31:16, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/opendirectory.c:opendirectory user_auth_and_sessionkey(679)
dsDoDirNodeAuthOnRecordType gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:16, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/auth/auth odsam.c:opendirectory_smb_pwd_checkntlmv1(383)
opendirectory user_auth_and_sessionkey gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:16, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/passdb/pdb odsam.c:odssamgetsampwnam(1571)
opendirectory samsearchname gave -14136 [eDSRecordNotFound]: no dsRecTypeStandard:Users record for account 'admin'
[2008/06/24 18:31:16, 1, pid=663] /SourceCache/samba/samba-187.4/samba/source/smbd/service.c:make connectionsnum(1087)
192.168.1.8 (192.168.1.8) connect to service home initially as user wepl (uid=501, gid=20) (pid 663)
[2008/06/24 18:31:32, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:smb_panic(1650)
PANIC (pid 663): push_ascii - dest_len == -1
[2008/06/24 18:31:32, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:log stacktrace(1761)
BACKTRACE: 11 stack frames:
#0 0 smbd 0x001bfc3a log stacktrace + 40
#1 1 smbd 0x001bfd6c smb_panic + 123
#2 2 smbd 0x001acadb push_ascii + 64
#3 3 smbd 0x0005ab13 set_ea + 17677
#4 4 smbd 0x0005bf4c set_ea + 22854
#5 5 smbd 0x0005de1a handle_trans2 + 3062
#6 6 smbd 0x00062fef reply_trans2 + 2516
#7 7 smbd 0x0007d14b get_OutBuffer + 1433
#8 8 smbd 0x0007df27 smbd_process + 2644
#9 9 smbd 0x00270007 main + 5076
#10 10 smbd 0x00002002 start + 54
[2008/06/24 18:31:32, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/fault.c:dump_core(181)
dumping core in /private/var/log/samba/cores/smbd
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/lib/opendirectory.c:opendirectory user_auth_and_sessionkey(679)
dsDoDirNodeAuthOnRecordType gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/auth/auth odsam.c:opendirectory_smb_pwd_checkntlmv1(383)
opendirectory user_auth_and_sessionkey gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/passdb/pdb odsam.c:odssamgetsampwnam(1571)
opendirectory samsearchname gave -14136 [eDSRecordNotFound]: no dsRecTypeStandard:Users record for account 'admin'
[2008/06/24 18:31:33, 1, pid=665] /SourceCache/samba/samba-187.4/samba/source/smbd/service.c:make connectionsnum(1087)
192.168.1.8 (192.168.1.8) connect to service home initially as user wepl (uid=501, gid=20) (pid 665)
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:smb_panic(1650)
PANIC (pid 665): push_ascii - dest_len == -1
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:log stacktrace(1761)
BACKTRACE: 11 stack frames:
#0 0 smbd 0x001bfc3a log stacktrace + 40
#1 1 smbd 0x001bfd6c smb_panic + 123
#2 2 smbd 0x001acadb push_ascii + 64
#3 3 smbd 0x0005ab13 set_ea + 17677
#4 4 smbd 0x0005bf4c set_ea + 22854
#5 5 smbd 0x0005de1a handle_trans2 + 3062
#6 6 smbd 0x00062fef reply_trans2 + 2516
#7 7 smbd 0x0007d14b get_OutBuffer + 1433
#8 8 smbd 0x0007df27 smbd_process + 2644
#9 9 smbd 0x00270007 main + 5076
#10 10 smbd 0x00002002 start + 54
is there maybe a workaround possible by changing the config of smbd on the mac?
something to enable clear passwords which are used by smbfs?
seems smbd is buggy since some security patches:
http://bugs.gentoo.org/show_bug.cgi?id=199450
https://bugzilla.samba.org/show_bug.cgi?id=5087
http://www.psx-scene.com/forums/official-sms-forums/58197-sms-with-mac-os-10-5-l eopard-post423475.html
Mounting works but when trying to list any files on share it gives error messages:
solid:~# grep imac /etc/fstab
//imac/home /imac/home smbfs username=wepl,password=xxx,iocharset=iso8859-1,user,noauto 0 0
solid:~# mount /imac/home
solid:~# df /imac/home/
Filesystem 1K-blocks Used Available Use% Mounted on
//imac/home 312229888 33529856 278700032 11% /imac/home
solid:~# ls /imac/home/
smb getlength: recv error = 5
smb trans2request: result=-5, setting invalid
smb_retry: successful, new pid=711, generation=36
smb proc_readdirlong: error=-5, retrying
smb getlength: recv error = 5
smb trans2request: result=-5, setting invalid
smb_retry: successful, new pid=711, generation=37
smb proc_readdirlong: error=-5, retrying
smb getlength: recv error = 5
smb trans2request: result=-5, setting invalid
smb_retry: successful, new pid=711, generation=38
....
reason is probably smbd crashes on the mac (/var/log/samba/log.smbd):
2008/06/24 18:31:16, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/opendirectory.c:opendirectory user_auth_and_sessionkey(679)
dsDoDirNodeAuthOnRecordType gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:16, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/auth/auth odsam.c:opendirectory_smb_pwd_checkntlmv1(383)
opendirectory user_auth_and_sessionkey gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:16, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/passdb/pdb odsam.c:odssamgetsampwnam(1571)
opendirectory samsearchname gave -14136 [eDSRecordNotFound]: no dsRecTypeStandard:Users record for account 'admin'
[2008/06/24 18:31:16, 1, pid=663] /SourceCache/samba/samba-187.4/samba/source/smbd/service.c:make connectionsnum(1087)
192.168.1.8 (192.168.1.8) connect to service home initially as user wepl (uid=501, gid=20) (pid 663)
[2008/06/24 18:31:32, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:smb_panic(1650)
PANIC (pid 663): push_ascii - dest_len == -1
[2008/06/24 18:31:32, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:log stacktrace(1761)
BACKTRACE: 11 stack frames:
#0 0 smbd 0x001bfc3a log stacktrace + 40
#1 1 smbd 0x001bfd6c smb_panic + 123
#2 2 smbd 0x001acadb push_ascii + 64
#3 3 smbd 0x0005ab13 set_ea + 17677
#4 4 smbd 0x0005bf4c set_ea + 22854
#5 5 smbd 0x0005de1a handle_trans2 + 3062
#6 6 smbd 0x00062fef reply_trans2 + 2516
#7 7 smbd 0x0007d14b get_OutBuffer + 1433
#8 8 smbd 0x0007df27 smbd_process + 2644
#9 9 smbd 0x00270007 main + 5076
#10 10 smbd 0x00002002 start + 54
[2008/06/24 18:31:32, 0, pid=663] /SourceCache/samba/samba-187.4/samba/source/lib/fault.c:dump_core(181)
dumping core in /private/var/log/samba/cores/smbd
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/lib/opendirectory.c:opendirectory user_auth_and_sessionkey(679)
dsDoDirNodeAuthOnRecordType gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/auth/auth odsam.c:opendirectory_smb_pwd_checkntlmv1(383)
opendirectory user_auth_and_sessionkey gave -14091 [eDSAuthMethodNotSupported]
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/passdb/pdb odsam.c:odssamgetsampwnam(1571)
opendirectory samsearchname gave -14136 [eDSRecordNotFound]: no dsRecTypeStandard:Users record for account 'admin'
[2008/06/24 18:31:33, 1, pid=665] /SourceCache/samba/samba-187.4/samba/source/smbd/service.c:make connectionsnum(1087)
192.168.1.8 (192.168.1.8) connect to service home initially as user wepl (uid=501, gid=20) (pid 665)
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:smb_panic(1650)
PANIC (pid 665): push_ascii - dest_len == -1
[2008/06/24 18:31:33, 0, pid=665] /SourceCache/samba/samba-187.4/samba/source/lib/util.c:log stacktrace(1761)
BACKTRACE: 11 stack frames:
#0 0 smbd 0x001bfc3a log stacktrace + 40
#1 1 smbd 0x001bfd6c smb_panic + 123
#2 2 smbd 0x001acadb push_ascii + 64
#3 3 smbd 0x0005ab13 set_ea + 17677
#4 4 smbd 0x0005bf4c set_ea + 22854
#5 5 smbd 0x0005de1a handle_trans2 + 3062
#6 6 smbd 0x00062fef reply_trans2 + 2516
#7 7 smbd 0x0007d14b get_OutBuffer + 1433
#8 8 smbd 0x0007df27 smbd_process + 2644
#9 9 smbd 0x00270007 main + 5076
#10 10 smbd 0x00002002 start + 54
is there maybe a workaround possible by changing the config of smbd on the mac?
something to enable clear passwords which are used by smbfs?
seems smbd is buggy since some security patches:
http://bugs.gentoo.org/show_bug.cgi?id=199450
https://bugzilla.samba.org/show_bug.cgi?id=5087
http://www.psx-scene.com/forums/official-sms-forums/58197-sms-with-mac-os-10-5-l eopard-post423475.html
iMac, Mac OS X (10.5.3)