this post was submitted on 01 Feb 2025
16 points (100.0% liked)
Linux
6149 readers
200 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of [email protected] and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
As in the solution should use systemd i.e no "just
sudo mount --bind -o ro /src /dst
bro". Then when Isudo -u $serviceUser cat $mountPath
, it should output the contents of the file instead of just nothing.Anti Commercial-AI license
Well just create another service with mounted paths and run shell script inside it or use
systemd run --property ...
?