Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find Windows shares from command line

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

How can I find Windows shares from command line,using the oSX terminal ? Meaning Microsoft net shares,not NFS.
I know how to do it from PC,but not from OSX.

Thanks

Long live king Moshiach !
 
you want to look at the "samba" set of commands. Open a terminal, type "man samba" to start; and be sure to look at "findsmb".

 
Hi,

Did lookup findsmb,does not show shares,only computer info.
smbclient - tried with "smbclient -NL <servername>" syntax without success.Failed with "Error returning browse list: NT_STATUS_ACCESS_DENIED".

I need to browse different Windows system using the computer name I get from the Perl script,no user/password are available.
However,broswing from OSX browser with smb:// syntax does browse the PC shares ...

What can be done ?
Thanks


Long live king Moshiach !
 
Dude - read the man pages for Samba; it lists a variety of commands.

If findsmb doesn't do what you want, try smbtree. It browses the whole network rather than a single host, but you could parse the output.

The access denied error message means you were rejected by the destination system; not because the command was wrong. When I used smbclient -NL on a server I know of, I got a list of shares on the server.

Without knowing your exact network configuration I'm not sure why it didn't work for you - are you sure your machine isn't registered with the active directory - which would mean Finder already has Windows credentials?

You might want to also look at for more insight.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top