On Unixes (including Gnu/Linux) suid/sgid (or file capabilities) is the only, native (all other ways use this way), way to escalate privileges.
As a sysadmin, I like to write scripts as they are easy, and well adated to the task. However suid and sgid is not honoured for scripts and other interpreted languages.
Therefore I would like to find some alternatives. (I don't mind general solutions, or special cases).
sudo
falls into this category), but does pose some security problems. And why re-write the wheel. – ctrl-alt-delor Apr 16 '19 at 19:37capsh
command. I might elaborate on that if it is on-topic with your question. – LL3 Apr 17 '19 at 17:04capsh
? And we should tidy (remove) these comments. – ctrl-alt-delor Apr 17 '19 at 17:31