Check ownership of logs folder

Closes #16607.