Find Directory’s Owner:
You can use getfacl to see it. example
$ getfacl /etc/
Result:
# file: etc
#owner: root
#group: root
user:: rwx
group:: r-x
other:: r-x
You can also use setfacl to set ACL permission.
Change Directory owner:
Use chown to change a directory’s owner. Be sure that you has the privilege to change the owner.
Example: chown www-data:www-data /etc/
Change directory /etc/ user to www-data, and group to www-data. Most linux web server use www-data to run the Apache service.