Networking :: nfs mount, mount: only root can do that



Hi,

I'm attempting to mount a nfs share (ubuntu box) from a DSL box.

the command I issue is as follows:

john@box:~$ mount -t nfs 192.168.0.1:home/john/Desktop/xubuntu /home/john

I get the following error:

john@box:~$ mount: only root can do that

Looks like the john account can't issue mount commands. If put a sudo before the mount command I get the following error:

john@box:~$ sudo mount -t nfs 192.168.0.1:home/john/Desktop/xubuntu /home/john

mount -t nfs 192.168.0.1:home/john/Desktop/xubuntu failed, reason given by server: Permission denied

looks like ubuntu is insisting on the mount coming from the john account on the DSL box.

How can I get my john account to issue a mount command?

can you just use home/../etc ?
I've always used a / in front of it...

i.e. what happens when you use
Code Sample
mkdir /home/john/tmp
sudo mount -t nfs 192.168.0.1:/home/john/Desktop/xubuntu /home/john/tmp

if I use:

mkdir /home/john/tmp
sudo mount -t nfs 192.168.0.1:/home/john/Desktop/xubuntu /home/john/tmp

I still get the same error messge:

mount -t nfs 192.168.0.1:home/john/Desktop/xubuntu failed, reason given by server: Permission denied

I will try setting the permissions to 777 on the ubuntu files

chmod 777 on the /xubuntu directory

still gives the same error:

mount -t nfs 192.168.0.1:home/john/Desktop/xubuntu failed, reason given by server: Permission denied

my ubuntu machine has it's hosts.deny set to:

ALL: ALL

and  hosts.allow to:

ALL: 192.168.0.2

I've even set the /bin/mount on my DSL box to a chmod of 777, still no luck

uh... you sure you got the same error message? Because
Code Sample
mount -t nfs 192.168.0.1:home/john/Desktop/xubuntu failed, reason given by server: Permission denied
doesn't have /home - with the slash in front is what I'm trying to get at... it's just a suggestion.

Next Page...
original here.