Discussion:
[Samba] NET VIEW equivalent in Samba
Henrik Zagerholm
2005-12-14 04:45:48 UTC
Permalink
Hi!
Is there a NET VIEW equivalent in samba?
I looked at smbclient -L but then I have to know the browser master.
I only want to specifiy a workgroup..

Regards,
Henrik
Henrik Zagerholm
2005-12-15 13:40:28 UTC
Permalink
Hi
findsmb() does not let you specify a workgroup which then will be
used to list the containing machines in that workgroup and secondly
findsmb does not display all of the workgroups on the subnet.

I actually wrote a own little C module that uses libsmbclient and it
will display ALL workgroups on a subn?t and kan also list all
computers in a spcific workgroup.

Regards,
Henrik
findsmb
Post by Henrik Zagerholm
Hi!
Is there a NET VIEW equivalent in samba?
I looked at smbclient -L but then I have to know the browser master.
I only want to specifiy a workgroup..
Regards,
Henrik
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Guenter Kukkukk
2005-12-16 08:52:40 UTC
Permalink
----- Original Message -----
From: "Henrik Zagerholm" <***@mac.se>
To: <***@lists.samba.org>
Sent: Tuesday, December 13, 2005 11:45 PM
Subject: [Samba] NET VIEW equivalent in Samba
Post by Henrik Zagerholm
Hi!
Is there a NET VIEW equivalent in samba?
I looked at smbclient -L but then I have to know the browser master.
I only want to specifiy a workgroup..
Regards,
Henrik
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Hi Henrik,

'findsmb' is worth a try - but I don't use it! I haven't proved, if it is
still under development at all...
You can also try 'smbtree' (my favourite).
Have a look at the manpage.
Something like the following should initially work:
smbtree -Uvaliduser%thepassword

Here a user and its password is requested - to 'browse' all the
(allowed) network shares...
You can fine-tune the result (a bit).
Best wishes - Guenter

PS - and always think twice - is there a 'local' or 'master browser'
running - or not? Broadcasts can only reach the local subnet!
Henrik Zagerholm
2005-12-16 13:37:16 UTC
Permalink
Hi Guenter,
I made myself a own little module based on libsmbclient.
If you noly supply smb:// to smbc_opendir you will get back all
workgroups available.
If you then use smb://WORKGROUPNAME you will get back all computers
in that WG.

Works better than anything else :)

Regards,
Henrik
Post by Guenter Kukkukk
----- Original Message -----
Sent: Tuesday, December 13, 2005 11:45 PM
Subject: [Samba] NET VIEW equivalent in Samba
Post by Henrik Zagerholm
Hi!
Is there a NET VIEW equivalent in samba?
I looked at smbclient -L but then I have to know the browser master.
I only want to specifiy a workgroup..
Regards,
Henrik
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Hi Henrik,
'findsmb' is worth a try - but I don't use it! I haven't proved, if it is
still under development at all...
You can also try 'smbtree' (my favourite).
Have a look at the manpage.
smbtree -Uvaliduser%thepassword
Here a user and its password is requested - to 'browse' all the
(allowed) network shares...
You can fine-tune the result (a bit).
Best wishes - Guenter
PS - and always think twice - is there a 'local' or 'master browser'
running - or not? Broadcasts can only reach the local subnet!
christian laubscher
2005-12-16 14:32:04 UTC
Permalink
Post by Henrik Zagerholm
I made myself a own little module based on libsmbclient.
could you be tempted to share the source code? ;-)

--
Henrik Zagerholm
2005-12-16 14:44:53 UTC
Permalink
I could :) Let me just tidy it up a bit so that I don't have to be
too ashamed of the code style :)

/Henrik
Post by christian laubscher
Post by Henrik Zagerholm
I made myself a own little module based on libsmbclient.
could you be tempted to share the source code? ;-)
--
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Loading...