Is it possible to set the permissions of an NFS share to allow creation and moving of files, but not the editing or deletion of them.
Moving is also only allowed if it stays on the same share.
Achieving this with wrapper applications would be fine, as long as I can execute them with my client, that uses nautilus.
Allowed operations:
mv /mnt/share/file /mnt/share/file2
mv /mnt/share/file /mnt/share/folder/file
touch /mnt/share/file3
Disallowed operations:
mv /mnt/share/file ~
rm /mnt/share/file
echo test > /mnt/share/file
echo test >> /mnt/share/file
BOTH LISTS ARE NOT EXHAUSTIVE
The server is my NAS running stock Archlinux (pretty current, updates every few days).
Hosts are mostly my own computers, but I don't trust every program I run. And to prevent crypto malware, I want to disable the deletion of files, so such a malware can only create the encrypted files, but can't delete the original ones.
In theory, Nautilus plugins can achieve the desired effect, assuming users cannot access NFS in any other way.
– Otheus Apr 06 '16 at 16:03sudo
, then lock down permissions on NFS volume, such that only root can manipulate files there. Users will interface withsudo rename-script
orsudo mv-script
– Otheus Apr 06 '16 at 18:00mv
operate via ssh to invoke appropriate script. – Otheus Apr 06 '16 at 18:41mv
etc, that callsscp
if the operation is allowed? that would work somewhat... i'll think about it, but that seems to be the most sensible solution. if you make it an answer, i cant mark it... – Armin Apr 06 '16 at 18:45