LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't Mount NFS as Non-Root? (https://www.linuxquestions.org/questions/linux-networking-3/cant-mount-nfs-as-non-root-437554/)

mrclisdue 04-21-2006 05:32 PM

Can't Mount NFS as Non-Root?
 
hey all,

have googled and search these forums, but nothing quite matches.

If I try to mount nfs share as non-root, I get:

Code:

#  mount -v -t nfs 192.168.3.2:/ /mnt/tmp
mount: Unable to bindresvport TCP socket: errno 13 (Permission denied)
nfs bindresvport: Permission denied

I had been getting another error (can't quite remember, but ultimately it was illegal port), made some changes and now this error comes up.

Any ideas?

cheers,

acid_kewpie 04-22-2006 11:12 AM

non root users can only mount shares defined in /etc/fstab. add an entry to fstab, and use the "noauto" option to have it not mounted automatically. you would then just run "mount /mnt/tmp" to mount it as any user.

ethics 04-22-2006 11:43 AM

i think adding the user option will allow it to be accessible/mounted by your user too

mrclisdue 04-22-2006 05:18 PM

this entry has always been in my fstab:
Code:

192.168.3.2:/                /mnt/nfs                nfs        rw,noauto,user,timeo=14,hard,intr 0 0
no success,

EDIT: my exports file:
Code:

/                              192.168.3.0/24(rw,insecure,sync)

cheers

acid_kewpie 04-23-2006 03:26 AM

it'll be the command you are trying to use. by specifying the FULL mount command you are implying that fstab is ignored. if you only provide the mountpoint then fstab will be used correctly.

mrclisdue 04-23-2006 04:08 AM

Code:

[laptop@main ~]$ mount /mnt/nfs
nfs bindresvport: Permission denied



All times are GMT -5. The time now is 10:58 AM.