Overview

In Himmelblau, the logon_script parameter in himmelblau.conf specifies a script that is executed by the himmelblaud-tasks service at logon time. To ensure the script has the appropriate write access, it may be necessary to modify the himmelblaud-tasks.service file to include specific directories in the ReadWritePaths directive.

Steps to Modify the Service File for logon_script

  1. Locate the himmelblaud-tasks.service File
  2. On Rocky/SUSE Linux:

    sudo vim /usr/lib/systemd/system/himmelblaud-tasks.service

  3. On Debian/Ubuntu:

    sudo nano /etc/systemd/system/himmelblaud-tasks.service

  4. Edit the ReadWritePaths Directive

  5. Add the paths that need write access for the script specified by logon_script. For example, if the script logs output to /var/log, include /var/log in ReadWritePaths.
  6. Updated section of the service file:

    [Service] ReadWritePaths=/home /var/run/himmelblaud /var/log

  7. Save and Close the File

  8. Reload systemd and Restart the Service

  9. Reload systemd to apply the changes:

    sudo systemctl daemon-reload

  10. Restart the service:

    sudo systemctl restart himmelblaud-tasks

Following these steps will ensure that the logon_script has the necessary permissions to write to the specified paths.