Open CicadaSeventeen opened 2 years ago
sudo to run as root in proot container pkexec to run root-requiring program with the define of polkit
sudo
proot
pkexec
polkit
sudo and pkexec do not work
/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
proot -R /tem
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
proot -0 -R /tem
sudo -E proot -0 -R /tem
su
Expected Behavior
sudo
to run as root inproot
containerpkexec
to run root-requiring program with the define ofpolkit
Actual Behavior
sudo
andpkexec
do not workSteps to Reproduce the Problem
/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
proot -R /tem
to enter containerSpecifications
Command Output
sudo
:pkexec
: