Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-02-2001, 12:42 PM   #1
LQ Newbie
Registered: Nov 2001
Posts: 2

Rep: Reputation: 0
Exporting (via NFS) smbmount'ed shares

Hi All-

Here's the sit'n:

Box #1 is a WinNT Server on Network A.

Box #2 is a Linux box and is serving as a router (IP Gateway) between Network A and Network B.

Box #3 is a Linux box on Network B.


I have an SMB share available on box #1.

I have successfully mounted that share on box #2 using smbmount.

Now I would like to use box #2 to export that SMB share using NFS and make it available to other machines (like box #3) on Network B.

I have already successfully exported a local ext2fs from box #2 to Network B, so I think I understand NFS well enough to do that.

However, when I try the same drill (same as what worked for the local ext2fs from box #2) with the smbmount'ed share from box #1, I get the following message:

mount: box2:/mnt/sambashare failed, reason given by server: Permission denied

When I check the system log on box 2, I see the following:

Date1 Time1 box2 rpc.mountd: authenticated mount request from box3 for /mnt/sambashare (/mnt/sambashare)
Date1 Time1 box2 rpc.mountd: getfh failed: Operation not permitted

My /etc/fstab on box3 looks like this:
box2:/opt/public /mnt/ext2fs nfs exec,dev,suid,rw 1 1
box2:/mnt/sambashare /mnt/sambashare nfs exec,dev,suid,rw 1 1

And my /etc/exports on box2 looks like this:

/opt/public *
/mnt/sambashare *

Box2 exports /opt/public with no problems to Network B. However, no joy with /mnt/sambashare

Any thoughts? I've read manpages, TCP/IP 2nd revision (by Craig Hunt), Linux NAG, etc. and can't seem to find anything addressing this situation.

Thanks very much for any help.

Old 11-02-2001, 01:38 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'm not really sure about your actual problems, BUT i doubt it will acutally work. NFS will not export FAT32 partition, for very good reasons, and i wouldn't be in the slightest bit suprised if the same goes for NTFS, assuming it is NTFS you want to share.

Linux has a lot of things like this, which can seem annoying, but to be honest, what you're trying to do is one hell of a cludge, and cludges generally involve sticking two fingers up to security, and shouldn't ever be used in a proper environment.

Generally as far as samba is concerned, it always seems like a best attempt at deal with a fundamentally nasty cludge, and does a pretty good job at it, as it can never be perfect.

I'd guess that your best bet would be to make your samba gateway act as a WINS server, to take the share properly across the network, not using NFS, which is only intended for use with unix-like filesystems

Last edited by acid_kewpie; 11-02-2001 at 01:43 PM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting mounted CD-ROM or DVD through NFS pistachio Linux - Networking 11 07-12-2005 08:01 AM
error exporting nfs directories wastingtime Linux - Networking 1 06-04-2005 04:22 AM
exporting one NFS folder to another NFS and exporting it.... stellarmarine1 Linux - Networking 3 09-20-2004 06:54 AM
exporting NFS shares in redhat 9 / mounting them in OS X 10.2.6 brainlego Linux - Networking 7 07-25-2003 06:46 AM
exporting root filesystem via NFS jakiel Linux - Newbie 1 07-18-2003 03:32 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:46 PM.

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