Copying a file using NFS creates a file with size of 0 Bytes and reports error "operation not permitted"

Solution Verified - Updated -

Issue

  • Copying a file using NFS creates a file with size of 0 Bytes and reports error operation not permitted.
$ cp file1.txt file2.txt
cp: cannot create regular file `file2.txt': Operation not permitted

$ ls -l file1.txt file2.txt
-rwxrwxrwx 1 test test 9 Jul 13 14:48 file1.txt
-rwxrwxrwx 1 test test 0 Jul 13 14:48 file2.txt <<

$ cat file2.txt
$

$ cp file1.txt file2.txt
$ cat file2.txt
New File

$ ls -l
-rwxrwxrwx 1 test test 9 Jul 13 14:48 file1.txt
-rwxrwxrwx 1 test test 9 Jul 13 14:50 file2.txt <<

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Netapp with NTFS security style volume.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content