rpcclient COMPUTERNAME -c 'netshareenum' -I 192.168.1.11 -U Administrator

Which gives me:
netname: Patentfabriken$
        remark:
        path:   D:\company\Patentfabriken
        password:
Segmentation fault

But running: rpcclient COMPUTERNAME -c 'netsharegetinfo Test' -I 192.168.1.11 -U Administrator
Gives me:
netname: Test
        remark:
        path:   D:\Test
        password:
        type:   0x0
        perms:  0
        max_uses:       -1
        num_uses:       0
DACL
        ACL     Num ACEs:       1       revision:       2
        ---
        ACE
                type: ACCESS ALLOWED (0) flags: 0
                Specific bits: 0x1ff
Permissions: 0x1f01ff: SYNCHRONIZE_ACCESS WRITE_OWNER_ACCESS WRITE_DAC_ACCESS READ_CONTROL_ACCESS DELETE_ACCESS
                SID: S-1-1-0

        Owner SID:      S-1-5-32-544
        Parent SID:     S-1-5-21-1291655818-2083803856-2975106597-513
[EMAIL PROTECTED] ~]$


So I can connect and get info about the share but it is not enumerated. BTW there are about 10+ shares on the computer but only one is enumerated. It is not a big problem as you could combine NET command but I wanted to let you know so you could research it a little. =)

Regards,
Henrik


1 dec 2005 kl. 23.23 skrev Jeremy Allison:

On Thu, Dec 01, 2005 at 09:57:51AM +0100, Henrik Zagerholm wrote:
Hi all!

I believe there is a bug regarding NetShareEnum command when run
against a Win 2003 server.
When run I only get back one share and then I get Segmentation fault.

Using NetShareGetInfo 'sharename' works perfectly and also NET LIST
SHARE.

Any suggestions?

What command are you running on the client ?

Jeremy.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to