Mac OS X file copy error in samba share on a samba-share

Discussion in 'Apple' started by D3vN0ll, Feb 20, 2009.

  1. D3vN0ll

    D3vN0ll Guest

    I have an issue with mac os x 10.5.6 who is trying to put a file on a
    samba share.
    Samba (3.0.28) is running on a CentOS 5.2 (2.6.18-92.1.13.el5).

    I put a file "users.txt" as user "carlo.maesen" and have the following
    Mac-error:
    "You cannot copy some of these items to the destination because their
    names are too long or contain invalid characters for the destination.
    Do you want to skip copying these items and continue copying the other
    items?"

    It is not a permission-issue, because I can do the same action on a
    windows-client.
    (Same share, same user, same file) I also can create dirs with the
    mac-client.


    Here the global samba setting:
    [global]
    workgroup = ACA-IT
    server string = Samba Server Version %v
    passdb backend = ldapsam:ldap://127.0.0.1/
    log level = 3
    add user script = /usr/local/sbin/smbldap-useradd -m "%u"
    delete user script = /usr/local/sbin/smbldap-userdel "%u"
    add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
    delete group script = /usr/local/sbin/smbldap-groupdel "%g"
    add user to group script = /usr/local/sbin/smbldap-groupmod -m
    "%u" "%g"
    delete user from group script =
    /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
    set primary group script = /usr/local/sbin/smbldap-usermod -g
    "%g" "%u"
    add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
    ldap admin dn = cn=Manager,dc=aca-it,dc=be
    ldap delete dn = Yes
    ldap group suffix = ou=Groups
    ldap machine suffix = ou=Computers
    ldap passwd sync = Yes
    ldap suffix = dc=aca-it,dc=be
    ldap ssl = no
    ldap user suffix = ou=Users
    cups options = raw

    The share-settings:
    [public]
    path = /data/smbshares/public
    force group = "Domain Users"
    read only = No
    create mask = 0770
    directory mask = 0770
    veto files = /.*/

    Linux permissions:
    drwxrwx--- 3 root Domain Users 4096 Feb 19 15:19 /data/smbshares/public

    User info:
    uid=520(carlo.maesen) gid=513(Domain Users) groups=513(Domain
    Users),510(infra-aca),511(infra-qina)

    Here some logging:
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 31 of length 106
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBtrans2 (pid 8698) conn 0x2b9f4ba98fb0
    [2009/02/19 15:39:18, 3] smbd/trans2.c:call_trans2findfirst(1704)
    call_trans2findfirst: dirtype = 16, maxentries = 4,
    close_after_first=1, close_if_end = 2 requires_resume_key = 4 level =
    0x20b, max_data_bytes = 16644
    [2009/02/19 15:39:18, 3] smbd/dir.c:dptr_create(515)
    creating new dirptr 256 for path ./, expect_close = 1
    [2009/02/19 15:39:18, 3] smbd/error.c:error_packet_set(106)
    error packet at smbd/trans2.c(1906) cmd=50 (SMBtrans2)
    NT_STATUS_NO_SUCH_FILE
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 32 of length 82
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBtrans2 (pid 8698) conn 0x2b9f4ba98fb0
    [2009/02/19 15:39:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3256)
    call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257
    [2009/02/19 15:39:18, 3] smbd/trans2.c:call_trans2qfilepathinfo(3307)
    call_trans2qfilepathinfo . (fnum = -1) level=257 call=5 total_data=0
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 33 of length 106
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBtrans2 (pid 8698) conn 0x2b9f4ba98fb0
    [2009/02/19 15:39:18, 3] smbd/trans2.c:call_trans2findfirst(1704)
    call_trans2findfirst: dirtype = 16, maxentries = 4,
    close_after_first=1, close_if_end = 2 requires_resume_key = 4 level =
    0x20b, max_data_bytes = 16644
    [2009/02/19 15:39:18, 3] smbd/dir.c:dptr_create(515)
    creating new dirptr 256 for path ./, expect_close = 1
    [2009/02/19 15:39:18, 3] smbd/error.c:error_packet_set(106)
    error packet at smbd/trans2.c(1906) cmd=50 (SMBtrans2)
    NT_STATUS_NO_SUCH_FILE
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 34 of length 110
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBntcreateX (pid 8698) conn 0x2b9f4ba98fb0
    [2009/02/19 15:39:18, 3] smbd/dosmode.c:unix_mode(142)
    unix_mode(users.txt) returning 0760
    [2009/02/19 15:39:18, 2] smbd/open.c:eek:pen_file(391)
    carlo.maesen opened file users.txt read=No write=Yes (numopen=1)
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 35 of length 45
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBclose (pid 8698) conn 0x2b9f4ba98fb0
    [2009/02/19 15:39:18, 3] smbd/reply.c:reply_close(3338)
    close fd=28 fnum=10237 (numopen=1)
    [2009/02/19 15:39:18, 2] smbd/close.c:close_normal_file(406)
    carlo.maesen closed file users.txt (numopen=0) NT_STATUS_OK
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 210 of length 88
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBnttrans (pid 8659) conn 0x2b9f4ba4caa0
    [2009/02/19 15:39:18, 3] passdb/lookup_sid.c:fetch_sid_from_gid_cache(1069)
    fetch sid from gid cache 513 ->
    S-1-5-21-2899400640-1668863931-2032357242-513
    [2009/02/19 15:39:18, 3] smbd/sec_ctx.c:set_sec_ctx(241)
    setting sec ctx (520, 513) - sec_ctx_stack_ndx = 0
    [2009/02/19 15:39:18, 3] smbd/nttrans.c:call_nt_transact_notify_change(1917)
    call_nt_transact_notify_change
    [2009/02/19 15:39:18, 3] smbd/nttrans.c:call_nt_transact_notify_change(1932)
    call_nt_transact_notify_change: notify change called on ., filter =
    FILE_NAME|DIR_NAME, recursive = 1
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
    Transaction 36 of length 216
    [2009/02/19 15:39:18, 3] smbd/process.c:switch_message(927)
    switch message SMBtrans2 (pid 8698) conn 0x2b9f4ba98fb0
    [2009/02/19 15:39:18, 3] smbd/trans2.c:call_trans2setfilepathinfo(5783)
    call_trans2setfilepathinfo(6) users.txt (fnum -1) info_level=523
    totdata=116
    [2009/02/19 15:39:18, 3] smbd/process.c:process_smb(1069)
     
    D3vN0ll, Feb 20, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.