Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: nfs mount, mount: only root can do that, mounting ubuntu nfs files from DSL< Next Oldest | Next Newest >
john_spiral Offline





Group: Members
Posts: 24
Joined: June 2006
Posted: Oct. 01 2006,19:39 QUOTE

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?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 01 2006,20:58 QUOTE

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
Back to top
Profile PM 
john_spiral Offline





Group: Members
Posts: 24
Joined: June 2006
Posted: Oct. 02 2006,18:55 QUOTE

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
Back to top
Profile PM 
john_spiral Offline





Group: Members
Posts: 24
Joined: June 2006
Posted: Oct. 02 2006,19:15 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 03 2006,13:15 QUOTE

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.
Back to top
Profile PM 
12 replies since Oct. 01 2006,19:39 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: nfs mount, mount: only root can do that

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code