Cambiar el propietario del directorio Mac Terminal

sudo chown username:group YourDirectory/your-file.txt
AttractivePenguin