LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-23-2011, 07:18 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,152

Rep: Reputation: 32
how can i scan for samba shares


what id the way you scan for samba shares through command line, do i need samba to be installed to do it
 
Old 04-23-2011, 07:40 PM   #2
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by baronobeefdip View Post
what id the way you scan for samba shares through command line, do i need samba to be installed to do it
Code:
smbtree -N
You do need the Samba client software installed. I don't think the server is required for this to work.
 
Old 04-24-2011, 06:45 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,152

Original Poster
Rep: Reputation: 32
does this work in FreeBSD
 
Old 04-24-2011, 08:31 PM   #4
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by baronobeefdip View Post
does this work in FreeBSD
Wait, isn't this the Linux Networking forum? Yeah, it is :P

Dunno, I don't have a FreeBSD box to play with here. I assume Samba works pretty much the same on any system though. Can you try it to find out?
 
Old 04-25-2011, 07:31 AM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,152

Original Poster
Rep: Reputation: 32
sorry should've started a new thread in the BSD forum
 
Old 05-12-2011, 07:59 PM   #6
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,152

Original Poster
Rep: Reputation: 32
well how do i scan the work group since the
Code:
smbtree -N
command will only give me the shares that are on the machine that i am using not on all the other one of a specific work group or LAN, how do you scan for shares in a worgroup

plus on other machines that i am not using as a server the commands that i am using are all not found
smbclient
smbtree
smbmount

remember i am using debian squeeze, not ubuntu. before someone sends me a solution that applies only to ubuntu

---------- Post added 05-12-11 at 07:59 PM ----------

well how do i scan the work group since the
Code:
smbtree -N
command will only give me the shares that are on the machine that i am using not on all the other one of a specific work group or LAN, how do you scan for shares in a worgroup

plus on other machines that i am not using as a server the commands that i am using are all not found
smbclient
smbtree
smbmount

remember i am using debian squeeze, not ubuntu. before someone sends me a solution that applies only to ubuntu
 
Old 05-13-2011, 09:21 AM   #7
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by baronobeefdip View Post
remember i am using debian squeeze, not ubuntu. before someone sends me a solution that applies only to ubuntu
The Samba command line tools are not specific to Ubuntu. They are specific to Samba.

If the smbtree command doesn't list SMB hosts on your LAN then either or:
  • something is configured wrong
  • there are none to list

I strongly recommend reading the documentation of your distro. You might start with the man pages.

Edit

http://www.samba.org/samba/docs/man/...smbtree.1.html

Here are the parts relevant to the command I suggested.

Quote:
Originally Posted by man smbtree
...
smbtree — A text based smb network browser
...
This tool is part of the samba(7) suite.

smbtree is a smb browser program in text mode. It is similar to the "Network Neighborhood" found on Windows computers. It prints a tree with all the known domains, the servers in those domains and the shares on the servers.
...
-N|--no-pass

If specified, this parameter suppresses the normal password prompt from the client to the user. This is useful when accessing a service that does not require a password.

Unless a password is specified on the command line or this parameter is specified, the client will request a password.

If a password is specified on the command line and this option is also defined the password on the command line will be silently ingnored and no password will be used.
HTH

Last edited by Telengard; 05-13-2011 at 09:40 AM. Reason: More information
 
Old 05-19-2011, 07:25 PM   #8
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,152

Original Poster
Rep: Reputation: 32
i know that this thread has been resolved already but for some reason, my latest installation of samba on a box i recently set up tells me that the smbtree command can't be found. what's going on here? what isn't the command there
 
Old 08-27-2012, 02:57 PM   #9
gdm
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
nbtscan

I realize this is an old thread, but here is what I used.

nbtscan 192.168.1.0/24
 
Old 08-27-2012, 03:30 PM   #10
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,152

Original Poster
Rep: Reputation: 32
I just used nmap even thought there more advanced content and makes it a little harder to find a share but it worked for me.
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba shares permissions as flexible as 2003server shares? fdelval Linux - Newbie 5 11-23-2010 08:29 AM
RHEL 5.3 Samba DR Restore - Permissions Screwy on Samba shares mudman69 Red Hat 3 05-12-2009 10:56 AM
can not access samba shares from a VIRTUAL samba server using smb4k nass Fedora 0 12-13-2008 04:39 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM


All times are GMT -5. The time now is 10:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration