LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 02-17-2006, 08:07 AM   #1
Frunktz
Member
 
Registered: Nov 2005
Distribution: Debian, Slackware
Posts: 31

Rep: Reputation: 15
Export NFS


Hi
How I can export a directory to only a range of IP?
I try something like that but not work, I have the same error(Permission denied)
Code:
/mnt/share           192.168.1.0/24(ro,root_squash)
or
/mnt/share           192.168.1.*(ro,root_squash)
 
Old 02-17-2006, 09:15 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
I have a similar working setup here. It uses the first form you tried (net/mask value).

Are you sure the reason is the net/mask specification ?
Have you tried to use a wildcard ? I mean:
Code:
/mnt/share *(ro,root_squash)
If works for everyone, go back the net/mask value, re-export with "exportfs -r", try again and it still not work, give us the output of exportfs above.

see'ya,
 
Old 02-17-2006, 12:50 PM   #3
Frunktz
Member
 
Registered: Nov 2005
Distribution: Debian, Slackware
Posts: 31

Original Poster
Rep: Reputation: 15
I don't have exportfs..maybe it's normal in Debian?
To update the changes I type
/etc/init.d/nfs-user-server restart.

I think 99% the problem is the wildcard/mask, because if I change the ip (192.168.1.0/24) to 192.168.1.30 (a client of my subnetwork that can access to that pc) work.
 
Old 02-20-2006, 04:45 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
Quote:
I don't have exportfs..maybe it's normal in Debian?
I don't know about Debian, but it should be. exportfs is the program that setup the nfs shares on the fly. Whitout exportfs it's impossible to see what is exported and how.

May be you can post this problem at Debian's forum, in this same site.

sorry,
 
Old 02-20-2006, 04:50 AM   #5
Frunktz
Member
 
Registered: Nov 2005
Distribution: Debian, Slackware
Posts: 31

Original Poster
Rep: Reputation: 15
Well, I debian I don't have that tools either in the repository...
 
Old 02-20-2006, 09:34 PM   #6
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
How about /mnt/share 192.168.1.0/255.255.255.0(ro,root_squash) ?
 
  


Reply


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
NFS and the export file Veteq Linux - Networking 2 01-20-2006 08:19 AM
Export directories via NFS nifflerX Linux - Networking 3 07-07-2005 01:21 AM
Export NFS behind firewall nifflerX Linux - Networking 2 07-06-2005 02:41 PM
NFS doesn't export everything ejoftheweb Linux - Networking 5 09-03-2004 03:29 AM
local access of NFS export joeljensen Linux - Networking 1 04-29-2003 12:08 PM


All times are GMT -5. The time now is 03:20 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