Hello, After mounting nfs share as root, other user can't write to the share although they do have permissions on the files. What can I add to the /etc/fstab entry so all users can 'rwx' to this mount? server:/data/programmers /mnt/programmers nfs suid,dev,exec,acl 0 0 Thank you in advance. James
On Saturday 17 Sep 2005 00:05, James D. Parra wrote:
Hello,
After mounting nfs share as root, other user can't write to the share although they do have permissions on the files. What can I add to the /etc/fstab entry so all users can 'rwx' to this mount?
server:/data/programmers /mnt/programmers nfs suid,dev,exec,acl 0 0
What is the entry for the share in the server's /etc/exports file? Do the affected users have logins on the server? Dylan
Thank you in advance.
James
-- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
On Friday 16 September 2005 19:05, James D. Parra wrote:
Hello,
After mounting nfs share as root, other user can't write to the share although they do have permissions on the files. What can I add to the /etc/fstab entry so all users can 'rwx' to this mount?
server:/data/programmers /mnt/programmers nfs suid,dev,exec,acl 0 0
Here is a working example. Everyone else can critique HOW it works... = = = S E R V E R = = = On the server, this is the entry in /etc/fstab: /dev/hdg8 /mnt/hd3_ogg_01 reiserfs acl,user_xattr 1 2 This is what the mount point looks like on the server BEFORE the volume is mounted: drwxrwxrwx 2 root users 48 Dec 11 2004 hd3_ogg_01/ I think I originally set up the disk volume incorrectly, because only root could mount the volume or write to it. This is what the mount point looked like on the server AFTER root manually mounted the volume: drwxr-xr-x 15 root root 784 Apr 20 00:09 hd3_ogg_01/ After doing this: chmod ugo+rwx hd3_ogg_01 chgrp users hd3_ogg_01 then the mount point with the volume mounted looks like: drwxrwxrwx 15 root users 784 Apr 20 00:09 hd3_ogg_01/ The "mount" command on the server confirms the volume is mounted per /etc/fstab: /dev/hdg8 on /mnt/hd3_ogg_01 type reiserfs (rw,acl,user_xattr) This is the server's /etc/exports entry for the volume (all one line): /mnt/hd3_ogg_01 192.168.12.42(rw,root_squash,sync,mp) 192.168.12.54 (rw,root_squash,sync,mp) 192.168.12.77(ro,root_squash,sync,mp) IPs *.42 and *.54 (my linux box and my laptop) can read/write (rw). IP *.77 is my wife's PC. As she's prone to arbitrary file deletions the volume is exported read-only. (ro) Note that if you've been tweaking the exports setup on the server you need to run the command "exportfs -r" to make the changes take affect. on the server the "exportfs -v" command reports these exports: /mnt/hd3_ogg_01 wolverine.myhouse.net(rw,wdelay,root_squash,mountpoint) /mnt/hd3_ogg_01 hulk.myhouse.net(rw,wdelay,root_squash,mountpoint) /mnt/hd3_ogg_01 storm.myhouse.33325.net(ro,wdelay,root_squash,mountpoint) = = = C L I E N T = = = On the client system (my linux box) the fstab has this entry for the NFS volu exported by the server (loc). loc:/mnt/hd3_ogg_01 /mnt/loc/ogg nfs rw,user,noauto 0 0 Before a user on the client system mounts the NFS volume the mount point (in /mnt/loc) looks like this: drwxrwxrwx 2 root users 48 2005-03-12 10:16 ogg/ After a user on the client system mounts the NFS volume it looks like: drwxrwxrwx 15 root users 784 2005-04-20 00:09 ogg/ The "mount" command on the client system reports the following (the IP shown is the server's, the user is me): loc:/mnt/hd3_ogg_01 on /mnt/loc/ogg type nfs (rw,noexec,nosuid,nodev,addr=192.168.12.99,user=kenjen) That is what works here.
participants (3)
-
Dylan
-
James D. Parra
-
Synthetic Cartoonz