What do you meam by outside of service, but within systemd?
this post was submitted on 01 Feb 2025
16 points (100.0% liked)
Linux
6090 readers
443 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
As in the solution should use systemd i.e no "just sudo mount --bind -o ro /src /dst
bro". Then when I sudo -u $serviceUser cat $mountPath
, it should output the contents of the file instead of just nothing.
Well just create another service with mounted paths and run shell script inside it or use systemd run --property ...
?