GitSquared / edex-ui

A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support.
GNU General Public License v3.0
40.61k stars 2.56k forks source link

Sudo not working #1111

Closed flagrama closed 3 years ago

flagrama commented 3 years ago

Technical information

Using version:

Running on:

How comfortable you are with your system and/or IT in general:


Problem

Trying to run "sudo command" results in the following error:

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?

I can run these commands just fine in gnome-terminal. Applications such as the yay package manager which invoke sudo as part of running also provide the same error in edex-ui but not gnome-terminal.

image

This seems like a similar issue to #1030 if not exactly the same. I didn't see any other relevant issues before making this one.

GitSquared commented 3 years ago

Could you check if there is any $PATH difference between edex and gnome-term by running whereis sudo in both?

flagrama commented 3 years ago

There is not.

image

flagrama commented 3 years ago

Hmm, I rebooted my PC and it seems to be fine working now. I don't really understand why that would be necessary though and wonder if it would be an issue if I were to update in the future.

E: Even a clean build doesn't seem to cause it to happen again.

GitSquared commented 3 years ago

Interesting, were you doing any system maintenance/kernel upgrade before experiencing this issue?

flagrama commented 3 years ago

Not that I remember. I had just rebooted to Manjaro after playing some VR in Windows, found out about edex-ui and decided to try it by installing from the AUR. Once it was installed I decided to try to install any updates that could be found, but got this message while trying to run yay, and then when I tried to just run ls and even just sudo itself. The only things that even needed updating at that point were Chromium and some AUR packages.

I later turned off my computer and went to bed. When I booted the next day to try the whereis command it seemed to have started working. It's possible it had the wrong $PATH prior to the reboot though, since the whereis command was run after the reboot, but I'm fairly certain it would have been from the AUR install, not anything I had done on my system. I'm pretty sure I had only been using firefox prior to that.

GitSquared commented 3 years ago

Thanks @flagrama for the detailed rundown. I don't see anything that could explain the issue, so far... I don't think it has anything to do with edex either way, but please re-open if this happens again.