I just want to make sure that you change the Admin%pass to your
credentials and that the share Data exists on your windows machine
right???
It might be that netsharegetinfo does not exists in your version of
rpcclient. I'm using 3.0.21.
Cheers
Henrik
29 apr 2006 kl. 01:12 skrev Michael Li:
[EMAIL PROTECTED]:/home/mli/tmp> rpcclient -U Admin%pass -c
'netsharegetinfo Data' 192.168.1.78
command not found: netsharegetinfo
[EMAIL PROTECTED]:/home/mli/tmp> rpcclient -V
Version 3.0.9-2.3-SUSE
On Windows, I can not find "netsharegetinfo".
I am using Windows XP home edition, it matters?
Henrik Zagerholm wrote:
Hi Michael,
That is weird.
If I do this:
[EMAIL PROTECTED] ~]$ rpcclient -U Admin%pass -c 'netsharegetinfo
Data' 10.168.1.133
I get this back:
netname: Data
remark:
path: C:\Data
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
As you see it works :)
What version of rpcclient are you using?
Cheers,
Henrik
"rpcclient -U #{_strUser}%#{_strPass} -c 'netsharegetinfo #
{_strShare}' #{_strIP}"
29 apr 2006 kl. 00:44 skrev Michael Li:
Hi, Henrik,
Thank you very much for you reply.
I tried
[EMAIL PROTECTED]:/home/mli/tmp> rpcclient 192.168.1.78 -U username%
password -c 'netsharegetinfo public'
cmd = netsharegetinfo public
command not found: netsharegetinfo
[EMAIL PROTECTED]:/home/mli/tmp> rpcclient 192.168.1.78 -U username%
password -c 'dir'
cmd = dir
command not found: dir
What did I do wrong ?
or is there some setup in Windows side ?
Best regards.
Michael Li
Henrik Zagerholm wrote:
I think you mean:
$ rpcclient (ip and user/pass info here) -c 'netsharegetinfo
public'
Which returns info like
C:\Data\public
25 apr 2006 kl. 16:35 skrev Michael Li:
Hi,
In computer A, is there any way to know local path at
computer B?
Let me give more details :
Computer B(linux) has a directory, called /samba/shared,
it is mapped to Computer A(Windows) as S:.
In computer A, is there any way to know "S:"'s local
path in computer B is "/samba/shared" ?
Furthermore, in computer B, is there any way to know
"/samba/shared" is mapped as "S:" in computer A ?
Best regards.
Michael Li
==========
This email message and any attachments are for the sole use of
the intended recipients and may contain proprietary and/or
confidential information which may be privileged or otherwise
protected from disclosure. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the
intended recipients, please contact the sender by reply email
and destroy the original message and any copies of the
message as well as any attachments to the original message.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
==========
This email message and any attachments are for the sole use of
the intended recipients and may contain proprietary and/or
confidential information which may be privileged or otherwise
protected from disclosure. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the
intended recipients, please contact the sender by reply email
and destroy the original message and any copies of the message
as well as any attachments to the original message.
==========
This email message and any attachments are for the sole use of the
intended recipients and may contain proprietary and/or confidential
information which may be privileged or otherwise protected from
disclosure. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipients,
please contact the sender by reply email and destroy the original
message and any copies of the message as well as any attachments to
the original message.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba