Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo is not working in x-terminal anymore #148

Closed
2 of 4 tasks
softwarecreations opened this issue Aug 25, 2020 · 2 comments
Closed
2 of 4 tasks

sudo is not working in x-terminal anymore #148

softwarecreations opened this issue Aug 25, 2020 · 2 comments
Labels
external 📤 This issue is external to the project

Comments

@softwarecreations
Copy link

softwarecreations commented Aug 25, 2020

  • I have reset Atom to defaults prior to submitting report.
  • I have not reset Atom to defaults prior to submitting report.
  • I have tried uninstalling/reinstalling the terminal.
  • I have not tried uninstalling/reinstalling the terminal.

Description

Can't use sudo in x-terminal anymore. It worked previously.
I used be be able to run sudo service foo restart in the terminal, but now all sudo commands fail, even a simple sudo -s fails.

Steps to reproduce

sudo -s

Expected behavior:
[sudo] password for bob:

Actual behavior:
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?

Reproduces how often:
Every time.

Versions

> atom --version

Atom : 1.50.0
Electron: 5.0.13
Chrome : 73.0.3683.121
Node : 12.0.0

> apm --version

apm 2.5.0
npm 6.14.5
node 10.20.1 x64
atom 1.50.0
python 2.7.16
git 2.20.1

OS name and version: Debian 10 Buster (Linux)
Terminal version: 9.1.1

Additional context

sudo works fine in a normal gnome-terminal. If I compare printenv with the x-terminal in atom vs gnome-terminal, the following environment variables are different in the atom x-terminal. (atom x-terminal values are shown)

ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=true
ATOM_HOME=/home/bob/.atom
CHROME_DESKTOP=Atom.desktop
DISPLAY=:50.0
SHLVL=3
NODE_PATH=/usr/share/atom/resources/app.asar/exports
@softwarecreations softwarecreations added the bug report 🐛 Something isn't working label Aug 25, 2020
@the-j0k3r
Copy link
Member

the-j0k3r commented Aug 25, 2020

This is an electron 5.x issue see https://github.com/bus-stop/terminus/issues/84

Nothing to be done here,atom/atom#21079 is merged and will fix the issue once Atom releases a production build with electron 6.x

@the-j0k3r the-j0k3r added external 📤 This issue is external to the project and removed bug report 🐛 Something isn't working labels Aug 25, 2020
@the-j0k3r
Copy link
Member

Also see atom/atom#20819 if interested in bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external 📤 This issue is external to the project
Development

No branches or pull requests

2 participants