Home > OS >  To the general user privilege the kill
To the general user privilege the kill

Time:12-26

Under Linux installed Jenkins,
Then there are the Jenkins user performs use kill command when the shell
Always prompt no permission

in the/etc/passwdJenkins: x: 493:0: Jenkins Continuous Integration Server:/var/lib/Jenkins:/bin/bash
In the/etc/sudoers
The root of ALL=(ALL) ALL
Jenkins ALL=(root) ALL

Then still error no permission
Have a great god under the guidance of?

CodePudding user response:

# # allow Jenkins user to use kill command
Jenkins ALL=/bin/kill NOPASSWD: ALL
Need to sudo password to ALL, don't need NOPASSWD: ALL

CodePudding user response:

reference 1st floor cy309173854 response:
# # allow Jenkins user to use kill command
Jenkins ALL=/bin/kill NOPASSWD: ALL
Need to sudo password to ALL, don't need NOPASSWD: ALL

Jenkins ALL=(ALL) NOPASSWD: ALL
So still not good written in ah, right?

CodePudding user response:

Process of ordinary users can only kill yourself, this is for the sake of safety, or use sudo kill, configuration is 1/f, puts it,

CodePudding user response:

Process of ordinary users can only kill yourself, this is for the sake of safety, or use sudo kill

CodePudding user response:

Work out the final absolute, ALL to kill
  • Related