MacOS and locked files

Hey peeps around the world,

recently I copied some files from one mac to another via network. At first, the access rights on the remote computer were messed up somehow. The nobody user had its finger in the pie. Finally, I’ve made it to copy the files. Now that the files were on my disk, they were still locked and the permissions were still messed up somehow. So, as a Linux guy, I just tried to chown the files, but this leads to an operation not permitted, although I was running chown in sudo mode. After some research I found out that the files were locked, which couldn’t be changed via the finder app. Fortunately, this can also be changed via CLI:

$ sudo chflags -R nouchg /path/to/files

Happy unlocking!


Posted

in

by

Tags: