proot
proot copied to clipboard
sudo and pkexec do not work
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
- export docker image to
/tem
-
sudo chown -R root:root /tem
-
sudo chmod 4755 /usr/bin/sudo
-
sudo chmod 4755 /etc/sudo.conf
-
sudo chmod 4755 /usr/bin/pkexec
- 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
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