LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-23-2008, 12:58 PM   #1
seanovision
LQ Newbie
 
Registered: Nov 2007
Posts: 11

Rep: Reputation: 0
NFS shares browsing / enumerating


Can a client browse or otherwise enumerate the share directories that an NFS server is making available?

I get the feeling that this is what samba is for, to replace NFS but I want to make sure.

The only other ways I can think of to do this is either get root on the server and run showmount -e, or sniff traffic between the server and other clients who have an active NFS session running.

Thanks!
 
Old 01-24-2008, 10:01 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Are you sure that showmount works only on the server?

Last edited by jay73; 01-24-2008 at 10:12 PM.
 
Old 01-26-2008, 09:39 AM   #3
seanovision
LQ Newbie
 
Registered: Nov 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Here's what happens when I run showmount on the client:

############################
root@milleniumfalcon:/# showmount --directories
portmap getport: RPC: Success
root@milleniumfalcon:/# showmount --all
portmap getport: RPC: Success
root@milleniumfalcon:/# man showmount
root@milleniumfalcon:/# showmount -v
showmount for 1.1.0
root@milleniumfalcon:/# showmount -e
portmap getport: RPC: Success
root@milleniumfalcon:/# showmount -d
portmap getport: RPC: Success
root@milleniumfalcon:/# showmount -a
portmap getport: RPC: Success
###########################

I get these results whether the client has an NFS directory mounted or not.
 
Old 01-26-2008, 09:56 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You aren't including the hostname of the server when using showmount. If instead you want to list mount points on the client, you could grep the output of the "mount" command.

/usr/sbin/showmount --exports <server>
or
/usr/sbin/showmount --directories <server>

---

mount | grep nfs
 
Old 01-26-2008, 01:45 PM   #5
seanovision
LQ Newbie
 
Registered: Nov 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Ah ha! Thank you, that worked, and makes much more sense.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very slow browsing samba shares neddis Linux - Software 4 06-15-2007 09:29 PM
browsing linux shares tr3s Linux - Networking 1 09-14-2005 01:43 AM
Browsing MS shares Mogwia Linux - Networking 1 06-03-2004 11:56 AM
Browsing network shares Phaethar Mandriva 4 12-18-2003 12:35 AM
Enumerating shares with Samba computergeek84 Linux - Software 1 11-02-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration