I've got a file owned by root, which must get write access for normal users (particularly user pi):
pi@autoradio:/import/valen/autoradio $ ls -al autoradio.db -rw-r--r-- 1 root root 2887050 Nov 12 2017 autoradio.db pi@autoradio:/import/valen/autoradio $ getfacl autoradio.db # file: autoradio.db # owner: root # group: root user::rw- group::r-- other::r-- But: When I switch to root mode with sudo (or even su), I can neither transfer the file to user pi nor make it world-writable because of missing priviliges:
pi@autoradio:/import/valen/autoradio $ sudo chmod a+w autoradio.db chmod: changing permissions of 'autoradio.db': Operation not permitted pi@autoradio:/import/valen/autoradio $ sudo chown pi autoradio.db chown: changing ownership of 'autoradio.db': Operation not permitted The file in question lies in an NFS share I mount as follows:
pi@autoradio:~ $ sudo mount -t nfs 169.254.164.1:/export /import/valen What's wrong here? How can root be excluded from operations on a file he owns himself? The O/S is the current version of Raspbian. Thank you.