Copy permission error
Hello all; I’m running into an interesting problem, and since I haven’t seen anything similar on the mailing or issues list I thought I would see if there’s something I’m missing. Here’s my setup: 1. CentOS 7 server running GlusterFS 4.1.4 and NFS-Ganesha 2.6.3 2. Windows 10 Pro system with nfs-client installed. Mounting the external NFS drive on the system (v3), and have made uid and guid changes in the registry to match the uid for the share. With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue? Thanks, Steve -- Stephen Jones Group Lead / Principal Software Engineer The MITRE Corporation Phone: (781)271-2517 Email: srjones@mitre.org<mailto:srjones@mitre.org>
Can you post the wireshark traces? They would be helpful. Daniel On 10/11/2018 09:46 AM, Jones, Stephen R. wrote:
Hello all;
I’m running into an interesting problem, and since I haven’t seen anything similar on the mailing or issues list I thought I would see if there’s something I’m missing. Here’s my setup:
1. CentOS 7 server running GlusterFS 4.1.4 and NFS-Ganesha 2.6.3 2. Windows 10 Pro system with nfs-client installed. Mounting the external NFS drive on the system (v3), and have made uid and guid changes in the registry to match the uid for the share.
With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue?
Thanks,
Steve
--
Stephen Jones
Group Lead / Principal Software Engineer
The MITRE Corporation
Phone: (781)271-2517 Email: srjones@mitre.org <mailto:srjones@mitre.org>
_______________________________________________ Support mailing list -- support@lists.nfs-ganesha.org To unsubscribe send an email to support-leave@lists.nfs-ganesha.org
On Thu, Oct 11, 2018 at 7:38 PM Jones, Stephen R. <srjones@mitre.org> wrote:
Hello all;
With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue?
Hmm, is it possible that the windows NFS client is creating the file, setting attributes to read-only on the destination file an then doing the writes which fail? Maybe, try NFSv4 and see if it works better! Regards, Malahal.
On 10/12/2018 10:21 AM, Malahal Naineni wrote:
On Thu, Oct 11, 2018 at 7:38 PM Jones, Stephen R. <srjones@mitre.org <mailto:srjones@mitre.org>> wrote:
Hello all;____
__ __
With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue?
Hmm, is it possible that the windows NFS client is creating the file, setting attributes to read-only on the destination file an then doing the writes which fail? Maybe, try NFSv4 and see if it works better!
I don't think there's a v4 client for Windows. Daniel
On 10/12/2018 10:21 AM, Malahal Naineni wrote:
On Thu, Oct 11, 2018 at 7:38 PM Jones, Stephen R. <srjones@mitre.org <mailto:srjones@mitre.org>> wrote:
Hello all;____
__ __
With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue?
Hmm, is it possible that the windows NFS client is creating the file, setting attributes to read-only on the destination file an then doing the writes which fail? Maybe, try NFSv4 and see if it works better!
I don't think there's a v4 client for Windows.
Yea, no NFSv4 client for Windows. Could you share the wireshark trace? I'd like to understand the flow. It may be that Windows doesn't make the right RPC calls to accomplish copying a read-only file. Is the user making the copy the owner? Frank
It’s definitely on the V3 CREATE call that throws the error. I’ve seen that there are V4 clients for Windows, but haven’t tried any of them yet – is there one you believe would work? Thanks, Steve -- Stephen Jones Group Lead / Principal Software Engineer The MITRE Corporation Phone: (781)271-2517 Email: srjones@mitre.org<mailto:srjones@mitre.org> From: Malahal Naineni <malahal@gmail.com> Date: Friday, October 12, 2018 at 10:22 AM To: "Jones, Stephen R." <srjones@mitre.org> Cc: "support@lists.nfs-ganesha.org" <support@lists.nfs-ganesha.org> Subject: Re: [NFS-Ganesha-Support] Copy permission error On Thu, Oct 11, 2018 at 7:38 PM Jones, Stephen R. <srjones@mitre.org<mailto:srjones@mitre.org>> wrote: Hello all; With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue? Hmm, is it possible that the windows NFS client is creating the file, setting attributes to read-only on the destination file an then doing the writes which fail? Maybe, try NFSv4 and see if it works better! Regards, Malahal.
On Thu, 2018-10-11 at 13:46 +0000, Jones, Stephen R. wrote:
Hello all;
I’m running into an interesting problem, and since I haven’t seen anything similar on the mailing or issues list I thought I would see if there’s something I’m missing. Here’s my setup:
CentOS 7 server running GlusterFS 4.1.4 and NFS-Ganesha 2.6.3 Windows 10 Pro system with nfs-client installed. Mounting the external NFS drive on the system (v3), and have made uid and guid changes in the registry to match the uid for the share.
With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue?
Thanks, Steve
Sounds like the same problem we recently had with ceph: https://github.com/nfs-ganesha/nfs-ganesha/issues/349 If you see the NFSERR3_ACCESS happening on the COMMIT call, then gluster may need a similar solution. -- Jeff Layton <jlayton@redhat.com>
Jeff, Thanks for the response. I did see that thread previously, with the only difference being that the file isn't getting written out. Let me give that fix a try and see what happens. Steve -- Stephen Jones Group Lead / Principal Software Engineer The MITRE Corporation Phone: (781)271-2517 Email: srjones@mitre.org On 10/15/18, 8:17 AM, "Jeff Layton" <jlayton@redhat.com> wrote: On Thu, 2018-10-11 at 13:46 +0000, Jones, Stephen R. wrote: > Hello all; > > I’m running into an interesting problem, and since I haven’t seen anything similar on the mailing or issues list I thought I would see if there’s something I’m missing. Here’s my setup: > > CentOS 7 server running GlusterFS 4.1.4 and NFS-Ganesha 2.6.3 > Windows 10 Pro system with nfs-client installed. Mounting the external NFS drive on the system (v3), and have made uid and guid changes in the registry to match the uid for the share. > > With this setup, I’m able to copy most files from the windows system to the share without a problem. However, if the file on windows has the ‘Read-Only’ attribute set, the copy fails with a permission denied error, and looking at the Wireshark trace I’m seeing an NFS3ERR_ACCES error. Is there something I can set in the NFS-Ganesha config file to resolve this issue? > > Thanks, > Steve > Sounds like the same problem we recently had with ceph: https://github.com/nfs-ganesha/nfs-ganesha/issues/349 If you see the NFSERR3_ACCESS happening on the COMMIT call, then gluster may need a similar solution. -- Jeff Layton <jlayton@redhat.com>
participants (5)
-
Daniel Gryniewicz -
Frank Filz -
Jeff Layton -
Jones, Stephen R. -
Malahal Naineni