LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS Mount as an ORDINARY USER (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-mount-as-an-ordinary-user-335986/)

fahad26 06-22-2005 01:59 AM

NFS Mount as an ORDINARY USER
 
NFS Mount as an ORDINARY USER

Hi ,
Actually i want to do an NFS Mount as an ordinary user from one of the clients. In the /etc/exports file at the NFS Server i have the folllowing line.

/home/u02024 *(rw,insecure,sync,insecure_locks,no_root_squash)

When i run the following command from the client as root user , the NFS Mount is successful.

mount -t nfs 192.168.0.7:/home/u02024 /home/localwork

but when i try to run this command as an ordinary user, it says

nfs bindresvport: Permission denied



PLEASE HELP ME OUT!!!!!!!!!!!!!!!!!!!!!!!!:o

kees-jan 06-22-2005 03:30 AM

Basically, as a user you can't mount things, because it is a security risk.

There are a few exceptions
- smbmount can be run as a user (though not for nfs)
- you can mount stuff that is in fstab (with options noauto, user), but then you need to be root to add stuff to fstab
- You can temporarily become root using su or sudo or somesuch
- You can make mount suid root (which is not good, security wise)

Make your pick :)

Groetjes,

Kees-Jan


All times are GMT -5. The time now is 04:27 AM.