Skip to main content
NetApp Response to Russia-Ukraine Cyber Threat
In response to the recent rise in cyber threat due to the Russian-Ukraine crisis, NetApp is actively monitoring the global security intelligence and updating our cybersecurity measures. We follow U.S. Federal Government guidance and remain on high alert. Customers are encouraged to monitor the Cybersecurity and Infrastructure Security (CISA) website for new information as it develops and remain on high alert.

NetApp KCS Award

NetApp Knowledge Base

Copying file using NFS, creates file with 0 Bytes size and error: operation not permitted

Views:
4,286
Visibility:
Public
Votes:
7
Category:
ontap-9
Specialty:
nfs
Last Updated:

Applies to

  • ONTAP 9
  • NFS 
  • NTFS  security style volume

Issue

  • Copying file using NFS, results in creation of empty file with 0 Bytes size, and displays operation not permitted
  • When running operation the second time, it succeeds

Example:

$ cp file1.txt file2.txt
cp: cannot create regular file `file2.txt': Operation not permitted

$ ls -l total 736
-rwxrwxrwx 1 perfbhi users 0 Jul 10 16:10 TestFile.txt
-rwxrwxrwx 1 perfbhi users 9 Jul 13 14:48 file1.txt
-rwxrwxrwx 1 perfbhi users 0 Jul 13 14:48 file2.txt <<
$ cat file2.txt
$
$ cp file1.txt file2.txt
$ cat file2.txt
New File
$
$ ls -l
-rwxrwxrwx 1 perfbhi users 0 Jul 10 16:10 TestFile.txt
-rwxrwxrwx 1 perfbhi users 9 Jul 13 14:48 file1.txt
-rwxrwxrwx 1 perfbhi users 9 Jul 13 14:50 file2.txt <<

Scan to view the article on your device
CUSTOMER EXCLUSIVE CONTENT

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support