sudo: unable to initialize policy plugin

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












I run a sudo command via the python subprocess.check_output function. This used to work several month now. All or a sudden, it fails with:



 sudo: PERM_ROOT: setresuid(0, -1, -1): Operation not permitted 

sudo: unable to initialize policy plugin


The python script is part of a django web application, so the command runs as user www-data. The same command can be run in the command shell as user www-data. The needed commands are included in the sudoers configuration (that worked before, as mentioned)



Any idea?










share|improve this question























  • I could solve the problem by including <IfModule mpm_itk_module> LimitUIDRange 0 6000 LimitGIDRange 0 6000 </IfModule> to /etc/apache2/conf-avilable/security.conf
    – Chris
    Sep 10 at 18:27















up vote
-1
down vote

favorite












I run a sudo command via the python subprocess.check_output function. This used to work several month now. All or a sudden, it fails with:



 sudo: PERM_ROOT: setresuid(0, -1, -1): Operation not permitted 

sudo: unable to initialize policy plugin


The python script is part of a django web application, so the command runs as user www-data. The same command can be run in the command shell as user www-data. The needed commands are included in the sudoers configuration (that worked before, as mentioned)



Any idea?










share|improve this question























  • I could solve the problem by including <IfModule mpm_itk_module> LimitUIDRange 0 6000 LimitGIDRange 0 6000 </IfModule> to /etc/apache2/conf-avilable/security.conf
    – Chris
    Sep 10 at 18:27













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I run a sudo command via the python subprocess.check_output function. This used to work several month now. All or a sudden, it fails with:



 sudo: PERM_ROOT: setresuid(0, -1, -1): Operation not permitted 

sudo: unable to initialize policy plugin


The python script is part of a django web application, so the command runs as user www-data. The same command can be run in the command shell as user www-data. The needed commands are included in the sudoers configuration (that worked before, as mentioned)



Any idea?










share|improve this question















I run a sudo command via the python subprocess.check_output function. This used to work several month now. All or a sudden, it fails with:



 sudo: PERM_ROOT: setresuid(0, -1, -1): Operation not permitted 

sudo: unable to initialize policy plugin


The python script is part of a django web application, so the command runs as user www-data. The same command can be run in the command shell as user www-data. The needed commands are included in the sudoers configuration (that worked before, as mentioned)



Any idea?







sudo python django






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 10 at 16:09









Ipor Sircer

9,3481920




9,3481920










asked Sep 10 at 16:07









Chris

11




11











  • I could solve the problem by including <IfModule mpm_itk_module> LimitUIDRange 0 6000 LimitGIDRange 0 6000 </IfModule> to /etc/apache2/conf-avilable/security.conf
    – Chris
    Sep 10 at 18:27

















  • I could solve the problem by including <IfModule mpm_itk_module> LimitUIDRange 0 6000 LimitGIDRange 0 6000 </IfModule> to /etc/apache2/conf-avilable/security.conf
    – Chris
    Sep 10 at 18:27
















I could solve the problem by including <IfModule mpm_itk_module> LimitUIDRange 0 6000 LimitGIDRange 0 6000 </IfModule> to /etc/apache2/conf-avilable/security.conf
– Chris
Sep 10 at 18:27





I could solve the problem by including <IfModule mpm_itk_module> LimitUIDRange 0 6000 LimitGIDRange 0 6000 </IfModule> to /etc/apache2/conf-avilable/security.conf
– Chris
Sep 10 at 18:27
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468055%2fsudo-unable-to-initialize-policy-plugin%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468055%2fsudo-unable-to-initialize-policy-plugin%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)