Need to run scripts/commands with root privileges for user selfservices
1
vote
0
answers
35
views
The core of the topic is a very a common but I am not satisfied.
I have a script looking for a pid and running the
kill
command on the pid if found.
So I chown
the script to root.root
and add 4755
as suid.
The script should now run with root privileges, right? Nope.
I stumbled over a nice explanatory article explaining why it ain't working due to security reasons See Vidar's Blog here
Is there a way to achieve the a code like
kill -9 3385
in the context of root?
Could an approach be to invoke a child script that has the required privileges?
Asked by Jan S
(57 rep)
Aug 15, 2019, 10:19 AM
Last activity: Aug 15, 2019, 10:41 AM
Last activity: Aug 15, 2019, 10:41 AM