Due to conflicting and constantly changing permissions on mounted drives (which cannot easily be solved due to the development structure of programs), there is a script that must be run with root permissions.
This can be done with sudo /usr/serverm1/lsintd
and provides good results. However, we wish to run this script automatically on startup.
Running the script under our main user on startup results in a core dump due to insufficient permissions. Therefore, we figured we could set it in crontab as @reboot /usr/serverm1/lsintd
(as suggested here, however this runs it with settings and config from root (which is non existent).
TLDR: How can we run the script exactly as it would run with the command sudo /usr/serverm1/lsintd
on startup?
I also tried applying chmod u+x
to the binary, however this still resulted in a core dump as if run with regular perms (idea taken from let a user run a script with root permissions).
Side note: I admit this is somewhat an XY problem, however due to the slow and poorly organized development structure of some of the other services on our server, we have no way of solving the root issues and must instead workaround with this.