winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
567 stars 62 forks source link

Permission denied with temporary file created by "sed -i" #21

Closed lukey78 closed 9 years ago

lukey78 commented 10 years ago

Hi there,

does anyone have a similar issue in a NFS shared folder?

echo testdata>test.dat
sed -i "s/testdata/blabla/g" test.dat
=> sed: couldn't close ./sedJET6DQ: Permission denied

Output from NFS log file:

NFS GETATTR C:\entwicklung\projekte\kmu\test.dat  OK
NFS ACCESS C:\entwicklung\projekte\kmu\test.dat  OK
NFS CREATE C:\entwicklung\projekte\kmu\sedJET6DQ  OK
NFS SETATTR C:\entwicklung\projekte\kmu\sedJET6DQ  OK
NFS WRITE C:\entwicklung\projekte\kmu\sedJET6DQ Permission denied ACCESS

The linux user (tried also with root) can create, read and update any files in the NFS mounted folder. But the temporary file created by sed doesn't work.

Can anyone confirm this behaviour?

Thanks! Jens

GM-Alex commented 9 years ago

Seems for me a duplicate of #22 (Use this as reference because it's the one with the most information).

zanglinjie commented 3 years ago

Has the problem been solved??

zanglinjie commented 3 years ago

Hi there,

does anyone have a similar issue in a NFS shared folder?

echo testdata>test.dat
sed -i "s/testdata/blabla/g" test.dat
=> sed: couldn't close ./sedJET6DQ: Permission denied

Output from NFS log file:

NFS GETATTR C:\entwicklung\projekte\kmu\test.dat  OK
NFS ACCESS C:\entwicklung\projekte\kmu\test.dat  OK
NFS CREATE C:\entwicklung\projekte\kmu\sedJET6DQ  OK
NFS SETATTR C:\entwicklung\projekte\kmu\sedJET6DQ  OK
NFS WRITE C:\entwicklung\projekte\kmu\sedJET6DQ Permission denied ACCESS

The linux user (tried also with root) can create, read and update any files in the NFS mounted folder. But the temporary file created by sed doesn't work.

Can anyone confirm this behaviour?

Thanks! Jens

Has the problem been solved