sed gets permission denied after enabling NFS auditing
Applies to
- ONTAP 9
- Native ONTAP NFS auditing
- sed 4.2
Issue
sed -i
gets permission denied after enabling auditing of NFS events on the SVM
[ntap@~ nfsaudit]$ echo "hello" > ntapfl ; sed -i 's/hello/OK/g' ntapfl
sed: couldn't close ./sedxbZ0aw: Permission denied
- A TCPDUMP shows the storage denies sed write call with
NFS4ERR_ACCESS
vserver security file-directory
shows the user has enough permission on the volume- Other tools like
vim
orecho
can write to the export volume