In order to execute a long-running or unattended command:
- Ensure that any directories needed to read/write have the right permission for the ${USER}.daemon (otherwise file access will start to fail)
Execute the command with k5start to keep the process authenticating while it runs
For the first part, replace "DIRECTORY" with the directory that the process will need to read or write from:
fs sa DIRECTORY ${USER}.daemon read fs sa DIRECTORY ${USER}.daemon write
For the second part, replace "COMMANDHERE" with the command you wish to run:
k5start -t -U -f /etc/keytabs/user.daemon/${USER} -- COMMANDHERE