proot icon indicating copy to clipboard operation
proot copied to clipboard

sudo and pkexec do not work

Open CicadaSeventeen opened this issue 2 years ago • 1 comments

Expected Behavior

sudo to run as root in proot container pkexec to run root-requiring program with the define of polkit

Actual Behavior

sudo and pkexec do not work

Steps to Reproduce the Problem

  1. export docker image to /tem
  2. sudo chown -R root:root /tem
  3. sudo chmod 4755 /usr/bin/sudo
  4. sudo chmod 4755 /etc/sudo.conf
  5. sudo chmod 4755 /usr/bin/pkexec
  6. input proot -R /tem to enter container

Specifications

  • Proot/Care version: 5.30
  • Kernel version: 5.3
  • Host distribution: openSUSE leap 15.3
  • Guest distribution: Debian 11 ( from dockerhub image )

Command Output

sudo :

 effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

pkexec:

pkexec must be setuid root

CicadaSeventeen avatar Jan 07 '22 22:01 CicadaSeventeen

Not work with proot -0 -R /tem pkexec does work with sudo -E proot -0 -R /tem but it is meaningless because the propose or pkexec is to get permission without su and sudo

CicadaSeventeen avatar Jan 07 '22 22:01 CicadaSeventeen