Answer the question
In order to leave comments, you need to log in
How to restrict script write permissions (lightweight chroot)?
A simple typical task arose - in a certain directory, delete old backups using a cron script. It seems that I made a script, everything is OK, but there is still a slight jitters. Suddenly I screwed up somewhere, or suddenly a file with a strange name like "file1 file2" appears (and rm -rf file1 file2 will be executed, although they cannot be deleted).
In general, I don’t even want to think (if you think, you can make a mistake), but somehow simply and reliably isolate the script. Something like:
writelimit /home/backups /usr/local/bin/myscript.sh
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question