To find out who owns a folder in Linux, you can use the following commands123: ls -l filename: This command will show you a list of all the files in the directory, as well as their permissions. The owner of the directory will be the name listed after the “rwx” permissions. find directoryname -exec stat -c '%U %n' {} ;: This command will display the owners of a directory, its subdirectories, and the files in them using the stat command.
might be owned by the system idk
https://www.howtouselinux.com/post/how-to-find-the-owner-of-a-file-in-linux
(post is archived)