In addition to the above, please also look at the following link as the instructions there solved my ownership issue:
https://answers.splunk.com/answers/46339/change-app-and-object-ownership.html
In some cases the file is stored under the app context and moving it won't change the ownership. This happened to me while updating a lookup file for a custom app. There is a metadata folder in the app folder which contains default and local .meta files. I edited the local.meta file, found my owner=[myuseraccount] and changed this to nobody (or whatever user you want). Found the metadata files under $SPLUNK_HOME$/etc/apps/[appname]/metadata.
... View more