I was checking the content of /Applications
and I saw that some directory are owned by root
and some are owned by myUser
.
Eg:
$ cd /Applications
$ ls -l
$ drwxr-xr-x 3 myUser admin 96 Sep 1 11:30 myApp
$ drwxr-xr-x 3 root wheel 96 Sep 1 11:30 myOtherApp
Are they any security implications of having an user owned directory in /Applications
?
Maybe I am wrong but if the directory is not root owned, then any script can just change its content and swap the binary for example. Same for any directory in /myUser/Applications
.
Or does macOS have an integrity protection for that?