-
Notifications
You must be signed in to change notification settings - Fork 10
Write Permissions for the `logon_script` Parameter in Himmelblau
David Mulder edited this page Nov 7, 2024
·
2 revisions
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.
-
Locate the
himmelblaud-tasks.service
File- On Rocky/SUSE Linux:
sudo vim /usr/lib/systemd/system/himmelblaud-tasks.service
- On Debian/Ubuntu:
sudo nano /etc/systemd/system/himmelblaud-tasks.service
- On Rocky/SUSE Linux:
-
Edit the
ReadWritePaths
Directive- 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
inReadWritePaths
. - Updated section of the service file:
[Service] ReadWritePaths=/home /var/run/himmelblaud /var/log
- Add the paths that need write access for the script specified by
-
Save and Close the File
-
Reload
systemd
and Restart the Service- Reload
systemd
to apply the changes:sudo systemctl daemon-reload
- Restart the service:
sudo systemctl restart himmelblaud-tasks
- Reload
Following these steps will ensure that the logon_script
has the necessary permissions to write to the specified paths.