As of right now, I create a brand new Google virtual machine. I upgraded the OS from Debian 9 (Jessie) to Debian 10 (Buster). For whatever reason, I cannot use superuser. Whenever I try, I get the error: su: Permission denied. The file permissions for /bin/su are

-rwsr-xr-x 1 root root 63K Jan 10 2019 su

The groups my user (Lunar) is in, are:

root sudo developers lunar

I also tried doing sudo adduser lunar wheel, although the group did not exist beforehand, and is not appearing in the groups above. I am SSH-ing into the computer, and I've tried the commands:

su -
su root

Each above the above commands have been executed with and without sudo. Any suggestions?

Edit: After further testing, I cannot su into ANY user, including my own account.

  • Check with strace what file it doesn't have permission to read. – arved Jul 24 '19 at 15:04

I've never heard of this happening with Debian 10, but somethimes with macOS you have to run

sudo su

to get it to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.