|
|
mount_nfs help
|
|
|
|
Dedicated MacNNer
Join Date: Apr 2004
Status:
Offline
|
|
ok so my dad's exported an nfs filesystem so I can mount it... or at least, so I should be able to mount it. Except...
when I try to
Code:
mount_nfs server:/backup/me /mnt
it complains:
Code:
mount_nfs: /mnt: Permission Denied
Why on earth is it having trouble getting permission to my LOCAL directory. I could see if it couldn't access the remote one or something, but the local one??? I'm clueless.
er... so, any thoughts?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Dec 2000
Location: Arlington, VA - USA
Status:
Offline
|
|
I've never tried it under MacOS X, but in solaris, AIX and Linux, this means the server won't let you mount, not the local directory. So ensure that the -o rw=ip.of.you.mac (or hostname if you have some type of name servers) is set correctly in the export on the server.
Rich
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Apr 2004
Status:
Offline
|
|
rwhiffen, My dad says he's already done what you said.
Also, yes, I did create /mnt. When I don't create /mnt, it complains that it doesn't exist, rather than that permission is denied.
My dad has looked at the network traffic, and he says that it looks like the mount went fine, but then my computer asks for directory attributes on the mount, and his server denies permission there.
any more ideas?
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Feb 2005
Status:
Offline
|
|
What are the permissions on /mnt. Trying issuing the command as root.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Apr 2004
Status:
Offline
|
|
Originally Posted by __^^__
What are the permissions on /mnt. Trying issuing the command as root.
owned by root, permissions are 755, and I was already using sudo, I just forgot to put that in here. doesn't make any difference.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Dec 2000
Location: Arlington, VA - USA
Status:
Offline
|
|
Yeah, if you don't do it as root, you get "operation not permitted" or some other 'no soup for you' type error.
Looks to me like you've got a name resolution issue. For example, your dad has one name for your machine, but your machine is reporting a different name to the server. Or it could be the fully qualified domain name is needed. What OS is the NFS server?
Rich
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Apr 2004
Status:
Offline
|
|
Originally Posted by rwhiffen
Yeah, if you don't do it as root, you get "operation not permitted" or some other 'no soup for you' type error.
Looks to me like you've got a name resolution issue. For example, your dad has one name for your machine, but your machine is reporting a different name to the server. Or it could be the fully qualified domain name is needed. What OS is the NFS server?
Rich
the NFS server runs NetBSD. my dad's got another NetBSD box here, and when he exports to that box instead of mine, everything's just fine, but it won't work with mine.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Dec 2000
Location: Arlington, VA - USA
Status:
Offline
|
|
Did you ever get this fixed? I've been a bit tied up and haven't been to the forums in a while.
Two things to check: The hostname your dad has for your mac, and the FQDN. Some NFS implemntations are very picky. On your mac, run "hostname" and "domainname" to find out what you have for a hostname and domain name. Make sure your dad's /etc/hosts (or what ever name service he's running) match the names your machine is calling itself. You can ignore the .local. For example, My hostname says:
Last login: Mon Sep 19 11:16:30 2005 from 162.6.239.94
Welcome to Darwin!
rwhiffen:~ rwhiffen$ domainname
rwhiffen:~ rwhiffen$ hostname
rwhiffen.local
rwhiffen:~ rwhiffen$
So My hostname is rwhiffen (strip .local) and my domain name is blank. On my solaris server I have to have that match in /etc/hosts.
Rich
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2005
Status:
Offline
|
|
Try using a reserved port. As root or using sudo:
mount -o resvport server:export /mountpoint
The mount_nfs manpage has more detail.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
Hello,
Originally Posted by arcticmac
ok so my dad's exported an nfs filesystem so I can mount it... or at least, so I should be able to mount it. Except...
when I try to
Code:
mount_nfs server:/backup/me /mnt
it complains:
Code:
mount_nfs: /mnt: Permission Denied
Why on earth is it having trouble getting permission to my LOCAL directory. I could see if it couldn't access the remote one or something, but the local one??? I'm clueless.
er... so, any thoughts?
Did you finaly solve this problem ?
I encounter exactly the same symptom (permission denied on the LOCAL directory).
The mount succeed when I connect my mac directly to the LAN where the nfs server is connected, but fails when I use wifi (and airport express as router).
I run the nfs server in debug mode and according to the log of the server, everything is ok :
Code:
mountd[26538] 07/29/106 22:01 mnt [1 106/7/29 21:47:27 ganymede.local 0.0+0,1,2,3,4,29,8,5,9,80,20]
mountd[26538] 07/29/106 22:01 /export/jiel
mountd[26538] 07/29/106 22:01 NFS mount of /export/jiel attempted from 192.168.0.100
mountd[26538] 07/29/106 22:01 auth_path(/export/jiel): mount point /export/jiel, (all_squash insecure rw)
mountd[26538] 07/29/106 22:01 fh_find: psi=7000c008... not found
mountd[26538] 07/29/106 22:01 fh_find: created new handle 805b990 (path `<unnamed>' psi 7000c008)
mountd[26538] 07/29/106 22:01 rmtab_insert path='/export/jiel' host='ganymede'
mountd[26538] 07/29/106 22:01 rmtab_insert path='/export/jiel' host='ganymed'
mountd[26538] 07/29/106 22:01 /export/jiel has been mounted by 192.168.0.100
mountd[26538] 07/29/106 22:01 mount res = 0
My mac has 10.0.1.2 as IP, and the airport express 192.168.0.100 on LAN side.
The permission on the /mnt directory are 777, owned by root.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status:
Offline
|
|
|
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
Thanks for your help.
I don't know why, but it works now (I don't change anything to my config...)
By the way, I've found this useful page if somebody else try to deal with NFS
and airport: http://dawuss.student.utwente.nl/blog/entry/38
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Apr 2004
Status:
Offline
|
|
I'll have to look at those pages, but i've still not fixed my problem. I don't think mine's a firewall issue, cause my mac doesn't run a firewall, and the nfs server is on the same side of our LAN firewall as I am, so...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|