Score:0

Why does Mac say "Operation not permitted" when I chown a file on FreeNAS mounted via AFP?

in flag

I am trying to back up the working files on my Macintosh to a NAS server. The server runs FreeNAS software. I mount the server over AFP (Apple Filing Protocol). The server runs Netatalk software which provides AFP.

Some of the files I backed up had a special group membership, xampp, on my Mac. On the AFP volume, their group membership is the default staff. So I tried to correct their group membership manually.

% sudo chown :xampp /Volumes/FreeNAS-vol/a/b/c/doc.mp4
chown: /Volumes/FreeNAS-vol/a/b/c/doc.mp4: Operation not permitted

However, group xampp exists on the FreeNAS server. When I connect to a shell on that server via ssh, I am able to perform this chown with no problem.

Why does the Mac say "Operation not permitted" when I chown a file on FreeNAS mounted via AFP? How can I make this chown operation succeed?

My underlying goal is to be able to back up all files on my Mac to the FreeNAS server via rsync. Rsync is able to copy the file data and some metadata, but it is unable to correct the group membership of the files on the server.

N.B. My FreeNAS version is FreeNAS-11.3-U4.1, which dates from 2020. Current versions are now named TrueNAS Core. I will upgrade my server to the latest version someday. I am skeptical that upgrading will solve this problem, but we shall see.

macOS version is 10.14.6 Mojave.

Update: the file system for FreeNAS is ZFS. Thus the files for which I am trying to change group membership are stored as ZFS, and delivered over AFP via Netatalk, to a client on a macOS shell, where I am using the chown command. (To answer a comment on this question.)

djdomi avatar
za flag
the question is, ehat file system is used on the target
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.