What options was the NFS share exported with? If it wasn't exported with no_root_squash, root on the client won't be able to change permissions/ownership of said share. An entry in /etc/exports like "/mnt/pacers1/kvm672/kvm672 client_host(rw,no_root_squash)" would be needed. -- Later, Darin On Thu, Jul 25, 2013 at 5:50 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I have a VM in cloud I'm building up. It has openSUSE 12.3 on it.
I want /srv to be a large space so I can put a sftp chroot set of jails on it.
I ordered a 100 GB NFS share from the hosting company today and they created it for me. They actually had 2 options for diskspace and I ordered the cheaper "backup" space (which may be my problem).
I'm trying to mount the NFS share to it. (I haven't worked much with NFS.)
Before mounting /srv is owned by root:root and its mode is 755 just as expected.
After mounting the NFS share on /srv, I have this:
# ls -ld srv drwxrwsrwx+ 6 cyrus 96 4096 Jul 26 2013 srv
I don't like the owner, nor the permissions.
Trying to change the permissions chmod claims to work, but doesn't # chmod 0755 srv # ls -ld srv drwxr-sr-x+ 6 cyrus 96 4096 Jul 26 2013 srv
chown simply doesn't work # chown root:root srv chown: changing ownership of âsrvâ: Operation not permitted
The problem is recursive, so as I place folder trees on the /srv they all have the same owner and permissions.
This is the line I added to /etc/fstab: 10.200.3.230:/mnt/pacers1/kvm672/kvm672 /srv nfs rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.200.3.230,mountvers=3,mountport=42425,mountproto=udp,local_lock=none,addr=10.200.3.230 0 0
I'm sure not all of that is needed, but I stole it!
Is there anyway I can overcome this issue?
Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org