You are not logged in.

#1 2008-06-09 08:59:01

SilvioTO
Member
From: Turin, Italy
Registered: 2008-06-08
Posts: 25
Website

nfs mount as user

Hi, I'm trap in a small problem, but I'm unable to solve. As a subject, I don't be able to mount my nfs locations as normal user; only as root. In a terminal the message is: "mount: only root can do that"... as root there's no problem at all. I tryed with fstab, with no luck:

192.168.1.100:/home/silvio /home/silvio/home_desktop nfs defaults,user,noauto 0  0
192.168.1.100:/media/disco2 /home/silvio/disco2_desktop nfs defaults,user,noauto 0  0

Thanks for your patience...
Silvio.

Offline

#2 2008-06-09 18:41:20

sph
Member
Registered: 2008-05-01
Posts: 63
Website

Re: nfs mount as user

Question: What command are you using to mount the NFS share?

If you are using the following, you need to be root:

mount -t nfs 192.168.1.100:/home/silvio /home/silvio/home_desktop

But if it is already in /etc/fstab -- as you wrote above -- you can use the following as a normal user:

mount /home/silvio/home_desktop

Last edited by sph (2008-06-09 18:42:56)

Offline

#3 2008-06-10 07:39:00

SilvioTO
Member
From: Turin, Italy
Registered: 2008-06-08
Posts: 25
Website

Re: nfs mount as user

If I try with umount (or mount) /home/silvio/home_desktop the error is the same: "umount: only root can unmount 192.168.1.100:/home/silvio from /home/silvio/home_desktop"

For now I mount as root, it's work (this is important); but as soon as possible I delete ubuntu on the server and install Arch + nfs4 on both client e server. It might be the best solution.

Tanks

Offline

Board footer

Powered by FluxBB