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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-20-2005, 03:07 PM   #1
dtzWill
LQ Newbie
 
Registered: Aug 2005
Distribution: slackware, slax
Posts: 6

Rep: Reputation: 0
nfs mount permission denied, over 2 diff networks


K so i followed the instructions in the NFS howto regarding how to configure nfs. What i'm trying to do is setup my linux pc to share it's large drive of music, movies, etc, w/my laptop (which has a small hd). The pc is connected wirelessly to a 2wire router, and a windows box is also connected to that router via wireless. My laptop is connected to that win comp via crossover cable. the win comp shares the router cnxn via ics.

my prob is when i try:
mount 172.16.1.30:/40 /music
i get an error abt 'permission denied'
172.16.1.30 is the ip of the hosting pc.
the ip of the win box is 172.16.1.34
and the laptop is 192.168.0.149

the exports file on the pc contains:

/40/ *(rw,no_root_squash) nat-dtz(rw,no_root_squash) 192.168.0.149(rw,no_root_squash)

i used the asterisk in hopes it would enable the sharing to all computers.....

i added nat-dtz bc that's the name of the win box and i read in the howto that if u get a 'permission denied' error than ssh from the client to the box, and type 'who' and add to the exports file what it lists u as there.

in hosts.allow i put ALL:ALL and hosts.deny is blank

why does it deny me permission then? help would be much appreciated. thanx

also i can mount the drive on the pc like this
mount localhost:/40 /mnt/40
and that works fine, so i think that means nfs is working happily...
i'm muchos lost, pls help

also the linux pc is running slack 10.0, the win box XP, the laptop slax installed on the hd. Someone mentioned in another forum that not having portmap running was the prob so i dled and installed a tgz for it, and ran rpc.portmap--still getting that error, maybe i didn't run it right?

also i thought maybe i should bridge the cnxns on the win box as to avoid probs being on a diff network.... but can't get that to work but that's not a q to be answer in a linux forum, is it? lol
pls pls pls help me
also alternatives to get my desired result (shared music/movies streamable from linux pc) are fine, i'm not attached to using nfs.

Last edited by dtzWill; 08-20-2005 at 03:31 PM.
 
Old 08-20-2005, 03:41 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I could be wrong here but NFS does not like crossing the class c subnets.
Other than that things to check or try.
Is there any firewall runing on any of the PC's? If so disable them all.

Your explanation of your network is kind of confusing to me, but here are a few thoughts.
Is the nfs server and the client laptop on the same class C subnet? Like 192.168.0.0/255.255.255.0.
This is where I would start have both pc and laptop on the same network connected to the same switch or router. So in the end the server is say 192.168.0.100 and the laptop is 192.168.0.101. Change to your perference.

Lets stop here and see what answers we get back.

I would use a line like this for the /etc/exports file.
/40/ 192.168.0.0/255.255.255.0(rw,async,no_root_squash)

Another thought is the username you are connecting with on both PC and laptop?

Brian1
 
Old 08-20-2005, 04:37 PM   #3
dtzWill
LQ Newbie
 
Registered: Aug 2005
Distribution: slackware, slax
Posts: 6

Original Poster
Rep: Reputation: 0
i can't connect my laptop to the router bc i don't have a wireless card for it--altho i hope to get one soon.

and i'm not sure what u meant abt usernames, on both i'm root, in hopes of getting rid of any permission errors.


if what i'm trying to do is impossible for nfs, any ideas what else to try? mounting the files locally would be very very nice..... any suggestions?

i made the change to exports, and no luck. still server says 'permission denied'

all firewalls are turned off
 
Old 08-20-2005, 08:41 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What kind of router do you have?
Does it have two ports one for the external wan internet? (cable,dsl)
Then the other is a single network connection.
Or it only wireless?

From what I can tell I don't think your current setup will work. You are working with to different classes of IP's. The 172.xxx.xxx.xxx is a class B and 192.168.xxx.xxx is a class C network.

If I understand this you connect the laptop to the windows machine with a crossover cable.
The windows machine has an ip 172.16.1.34 and this is the wireless IP?
Now there is a nic card in the Windows box and what IP is it using?
I assume it something in the 192.168.0.XXX.
If that is so whay not use 172.16.1.100. Then use 172.16.1.159 on the laptop.
Just a thought here.



Quick trip over to friends house to look over the setup I created for him.
1 pc and 1 laptop connect hardwire ethernet to a cable/dsl router with an internal ip of 192.168.4.1/255.255.255.0. All machines use static IP's

Pc configuration
ip 192.168.4.100/255.255.255.0 gateway 192.168.4.1(this is the router)
exports file contents
Code:
/storage1/ 192.168.4.0/255.255.255.0(rw,sync)
laptop Configuration
ip 192.168.4.150/255.255.255.0 gateway 192.168.4.1
mountpoint created on laptaop at /mnt/pc_storage1
mount command ' mount -t nfs -o rw 192.168.1.100:/storage1 /mnt/pc_storage1 '.

No firewalls running on either machine since they are behind a router.
Same usernames created on both machines.

If this does not help then the only other thought is setup samba networking.

Hope this helps. Good luck.
Brian1
 
Old 08-20-2005, 09:22 PM   #5
dtzWill
LQ Newbie
 
Registered: Aug 2005
Distribution: slackware, slax
Posts: 6

Original Poster
Rep: Reputation: 0
thank u very much for your help/time. I tried doing that and it still gave me that annoying 'permission denied' deal. So i'm gonna try samba, thanx for the suggestion.

edit: i tried it, and woohoo it works. only prob is amarok and juk don't load tags right.
i posted again under 1811016 bc it was a diff prob, and the title no longer applies. Thanx again, brian.

Last edited by dtzWill; 08-20-2005 at 09:24 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
NFS mount permission denied! naesyllek Linux - Networking 25 06-06-2007 04:24 AM
nfs mount: permission denied kpachopoulos Linux - General 13 02-12-2007 12:07 PM
PLEASE help, NFS (permission denied) Nappa Slackware 15 01-13-2004 07:17 PM
NFS - Permission Denied... 15788 Linux - Networking 9 04-06-2003 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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