sudo: unable to initialize policy plugin

Clash 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?
sudo python django
add a comment |Â
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?
sudo python django
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
add a comment |Â
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?
sudo python django
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
sudo python django
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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