But indeed, if there is a separate user account for the application, then chmod can be used for some control to its access to files and directories.