nfs mount, mount: only root can do thatForum: Networking Topic: nfs mount, mount: only root can do that started by: john_spiral Posted by john_spiral on Oct. 01 2006,19:39
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? Posted by ^thehatsrule^ on Oct. 01 2006,20:58
can you just use home/../etc ?I've always used a / in front of it... i.e. what happens when you use
Posted by john_spiral on Oct. 02 2006,18:55
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 Posted by john_spiral on Oct. 02 2006,19:15
chmod 777 on the /xubuntu directorystill 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 Posted by ^thehatsrule^ on Oct. 03 2006,13:15
uh... you sure you got the same error message? Because
Posted by john_spiral on Oct. 03 2006,18:22
same problem with or without the slash in home.any idea if my /etc/hosts.allow is setup correctly? Posted by ^thehatsrule^ on Oct. 03 2006,18:57
oh right.. that error would be a server-side problem, on your Ubuntu machine.your hosts.allow looks fine... thought I wonder if the space matters in "ALL: 192.168.0.2" What happens if you don't use hosts.deny? What's in your /etc/exports ? Posted by john_spiral on Oct. 03 2006,19:12
hi,If I comment out my hosts.deny file and run: sudo exportfs -ra on the ubuntu box to register any changes. I still get the 'Permission denied' message. ummmm If I run the below on the DSL box: sudo showmount -e 192.168.0.1 I get: Export list for 192.168.0.1: /home/john/Desktop/xubuntu 192.168.0.2 this shows the NFS service is running under ubuntu. any ideas? Posted by john_spiral on Oct. 04 2006,07:42
the /etc/exports looks fine. I'm not in front of the machines but it matches the sharing info in Ubuntu's gui.on DSL I get the below info about ubuntu's share: sudo showmount -e 192.168.0.1 I get: Export list for 192.168.0.1: /home/john/Desktop/xubuntu 192.168.0.2 I think it's DSL version of the NFS client is not compatible with ubuntu's NFS server. Anyone out there had success with Ubuntu (NFS server) / DSL (NFS client) ? Posted by ^thehatsrule^ on Oct. 04 2006,14:35
Have you tested that Ubuntu nfs server before with another client?
Posted by john_spiral on Oct. 05 2006,07:37
good idea, I'll post back with a solution.
Posted by john_spiral on Dec. 27 2006,09:52
I just realized yesterday why I didn't get NFS to work between my Ubuntu box and my DSL laptop.The file I wanted to share was owned by root, running chmod 777 xxx.iso as myself didn't respond with a warning that the permissions on the .iso file hadn't been changed. I'm sure if I did a sudo su chmod 777 xxx.iso I would have had more joy. Posted by beakmyn on Dec. 27 2006,17:08
I found also that I had to restart the NFS service on my Ubuntu machine before it would allow me to connect to it.
|