LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-15-2007, 02:10 PM   #1
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
Others can't access my NFS share


I want to set up my system as a file/database/web server for my other computers to access. I went into "Shared Folders" and set up my nfs, but when I try to access it I get an error message.

Here is my /etc/exports file with comments removed:

/home/files 192.168.3.0(rw)

Here is the cli snippet from my other system (running Mandriva 2006):

# mount alpha:/home/files /home/files
mount: alpha:/home/files failed, reason given by server: Permission denied
#


I also tried "mount -t nfs alpha:/home/files /home/files" and got the same results.

What can I do to grant permissions for other systems to mount this shared folder?

Thanks in advance
 
Old 04-15-2007, 02:19 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
I think you need to specify a list or range of IP addresses.

Code:
/home/files 192.168.3.0/24(rw)
or

Code:
/home/files 192.168.3.0/255.255.255.0(rw)
Either of the above should work, but I can never remember exactly how to specify the mask in CIDR notation. The above examples will allow access from any host between 192.168.3.1 and 192.168.3.254. So depending on your needs, you might want to narrow it down some.

Last edited by cgjones; 04-15-2007 at 02:22 PM.
 
Old 04-15-2007, 02:20 PM   #3
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
I already found the answer. I changed the /etc/exports to say:

/home/files 192.168.3.0/255.255.255.0(rw)

I should have known I needed the netmask, but I still do newbie things.
 
Old 04-15-2007, 02:26 PM   #4
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Thanks cgjones. I guess no one will really know whether I really found the answer myself or got it from you. I guess I'll give you the credit because you would have helped me if I hadn't found the answer.
 
Old 04-15-2007, 02:29 PM   #5
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
It doesn't really matter who gets credit, as long as the problem gets solved.
 
  


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
Permissions on NFS Share IwantLINUX Linux - Newbie 2 03-09-2007 05:03 AM
NFS share not working ahmedb72 Red Hat 3 02-22-2006 02:38 AM
NFS Share from Linux to OS X GT_Onizuka Linux - Networking 2 08-05-2004 08:56 PM
Cannot Access NFS Share- Even from the server! uveraser Linux - Networking 3 07-20-2004 06:00 AM
NFS Share access problem from Windows Help!!! Sabeer Linux - Networking 1 07-08-2003 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:37 PM.

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