[Samba] net rpc share allowedusers fails half the time?

Paul Wise pabs3 at bonedaddy.net
Thu Apr 11 23:34:38 MDT 2013


Hi all,

[Please CC me in reply, I'm not subscribed]

We have a weird situation on one of our shares, net rpc share
allowedusers fails with NT_STATUS_IO_DEVICE_ERROR. Normally the command
is run with the password passed on the command-line. If we manually type
the password or turn up the debug level, it works. If we turn up the
debug output but direct the output to /dev/null or to a file, then it
works. If we run net under valgrind (slowing it down) then it works
about half the time. So there is some sort of race condition going on I
think. Does anyone have any thoughts about fixing this on the server
side or working around it client side (Ubuntu precise)?

This is the samba client version:

Ubuntu precise-updates 2:3.6.3-2ubuntu2.4

This is the server version string:

Domain=[XXX] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

This is the failing call and error output:

cli_rpc_pipe_open_noauth: opened pipe \srvsvc to machine cvision-pc and bound anonymously.
     srvsvc_NetShareEnumAll: struct srvsvc_NetShareEnumAll
        in: struct srvsvc_NetShareEnumAll
            server_unc               : *
                server_unc               : 'xxxxxxxxxx'
            info_ctr                 : *
                info_ctr: struct srvsvc_NetShareInfoCtr
                    level                    : 0x00000001 (1)
                    ctr                      : union srvsvc_NetShareCtr(case 1)
                    ctr1                     : *
                        ctr1: struct srvsvc_NetShareCtr1
                            count                    : 0x00000000 (0)
                            array                    : NULL
            max_buffer               : 0xffffffff (4294967295)
            resume_handle            : *
                resume_handle            : 0x00000000 (0)
     &r: struct ncacn_packet
        rpc_vers                 : 0x05 (5)
        rpc_vers_minor           : 0x00 (0)
        ptype                    : DCERPC_PKT_REQUEST (0)
        pfc_flags                : 0x03 (3)
        drep: ARRAY(4)
            [0]                      : 0x10 (16)
            [1]                      : 0x00 (0)
            [2]                      : 0x00 (0)
            [3]                      : 0x00 (0)
        frag_length              : 0x0018 (24)
        auth_length              : 0x0000 (0)
        call_id                  : 0x0000005d (93)
        u                        : union dcerpc_payload(case 0)
        request: struct dcerpc_request
            alloc_hint               : 0x00000048 (72)
            context_id               : 0x0000 (0)
            opnum                    : 0x000f (15)
            object                   : union dcerpc_object(case 0)
            empty: struct dcerpc_empty
            _pad                     : DATA_BLOB length=0
            stub_and_verifier        : DATA_BLOB length=0
rpc_api_pipe: host xxxxxxxxxx
num_setup=2, max_setup=0, param_total=0, this_param=0, max_param=0, data_total=96, this_data=96, max_data=4280, param_offset=84, param_pad=2, param_disp=0, data_offset=84, data_pad=0, data_disp=0
cli_api_pipe failed: NT_STATUS_IO_DEVICE_ERROR
rpc command function failed! (NT_STATUS_IO_DEVICE_ERROR)
return code = -1

-- 
bye,
pabs

http://bonedaddy.net/pabs3/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba/attachments/20130412/83c3f328/attachment.pgp>


More information about the samba mailing list