LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount with uid and umask via NFS (https://www.linuxquestions.org/questions/linux-networking-3/mount-with-uid-and-umask-via-nfs-214288/)

grendel-IT 08-06-2004 11:25 AM

mount with uid and umask via NFS
 
Hi,
I want so share a partition via NFS so a PC with DVD-burner will burn it.
I've mounted the partition on the PC with:
#mount /dev/hdax /mnt/hdax
I've configured NFS to share only to the pc that directory.
On the PC I succesfully mount the directory, but some files and dirs are unreadable cause of permission denied! They have the 3 last permissions items empty (---). That should be the problem. I've tried mounting (on the NFS server the partition) with uid=code and even setting ownmask but I've got errors...
Thanks im advance,
Enrico

Cedrik 08-06-2004 11:57 AM

Say the nfs mount point is : /mnt/nfs on the client, /shares/nfs on the server, server IP is : 192.168.0.1 and client IP is : 192.168.0.2. You want to set uid to 500 and gid to 100

in the fstab of the client :
Code:

192.168.0.1:/shares/nfs  /mnt/nfs  nfs  rw,sync,noauto,user,rsize=8192,timeo=14,wsize=8192,intr 0  0
in the /etc/exports of the server :
/shares/nfs 192.168.0.2(sync,rw,anonuid=500,anongid=100)


All times are GMT -5. The time now is 11:30 AM.