[GH-ISSUE #1670] Cannot enter admin mode #974

Closed
opened 2026-02-27 00:01:45 +03:00 by kerem · 18 comments
Owner

Originally created by @nZeus on GitHub (Apr 26, 2020).
Original GitHub issue: https://github.com/electerm/electerm/issues/1670

sudo command gives a Permission denied error

$ sudo -s
bash: /usr/bin/sudo: Permission denied

Electerm version: v1.3.18

Operating system(linux, macos, or windows7/8/10?):

Ubuntu Fossa + Gnome

Expected Behavior

It should ask for password

Current Behavior

I get error: Permission denied

Originally created by @nZeus on GitHub (Apr 26, 2020). Original GitHub issue: https://github.com/electerm/electerm/issues/1670 sudo command gives a Permission denied error ``` bash $ sudo -s bash: /usr/bin/sudo: Permission denied ``` ## Electerm version: v1.3.18 ## Operating system(linux, macos, or windows7/8/10?): Ubuntu Fossa + Gnome ## Expected Behavior It should ask for password ## Current Behavior I get error: `Permission denied`
kerem 2026-02-27 00:01:45 +03:00
Author
Owner

@zxdong262 commented on GitHub (Apr 27, 2020):

Can you reproduce this issue in other terminal?

<!-- gh-comment-id:619669215 --> @zxdong262 commented on GitHub (Apr 27, 2020): Can you reproduce this issue in other terminal?
Author
Owner

@nZeus commented on GitHub (Apr 27, 2020):

yes, it works fine when I use Ubuntu's default terminal

<!-- gh-comment-id:619800598 --> @nZeus commented on GitHub (Apr 27, 2020): yes, it works fine when I use Ubuntu's default terminal
Author
Owner

@zxdong262 commented on GitHub (Apr 27, 2020):

That is strange, it works fine in Ubuntu 18.04. I will try download 20.04 and test it.

<!-- gh-comment-id:620213419 --> @zxdong262 commented on GitHub (Apr 27, 2020): That is strange, it works fine in Ubuntu 18.04. I will try download 20.04 and test it.
Author
Owner

@tglhteam commented on GitHub (May 10, 2020):

Hello! I have the same problem. I use Ubuntu 20.04 Lts. Electerm version 1.3.21. When using the sudo command, this message is issued bash: /usr/bin/sudo: Permission denied
Please fix the problem. Your terminal is very cool!

<!-- gh-comment-id:626314869 --> @tglhteam commented on GitHub (May 10, 2020): Hello! I have the same problem. I use Ubuntu 20.04 Lts. Electerm version 1.3.21. When using the sudo command, this message is issued bash: `/usr/bin/sudo: Permission denied` Please fix the problem. Your terminal is very cool!
Author
Owner

@zxdong262 commented on GitHub (May 10, 2020):

@tglhteam @nZeus I created a new Ubuntu 20.04 virtual box machine, sudo su works, do you have any special settings you can think of?

<!-- gh-comment-id:626328414 --> @zxdong262 commented on GitHub (May 10, 2020): @tglhteam @nZeus I created a new Ubuntu 20.04 virtual box machine, `sudo su` works, do you have any special settings you can think of?
Author
Owner

@tglhteam commented on GitHub (May 10, 2020):

Today, May 10, I installed a clean Ubuntu 20.04 system. I didn’t do any special settings at all. In the terminal Gnome, a sudo su works. Installed your program and sudo su does not work. Checked several times. The error is the same: bash: /usr/bin/sudo: Permission denied

<!-- gh-comment-id:626343778 --> @tglhteam commented on GitHub (May 10, 2020): Today, May 10, I installed a clean Ubuntu 20.04 system. I didn’t do any special settings at all. In the terminal Gnome, a `sudo su` works. Installed your program and `sudo su` does not work. Checked several times. The error is the same: `bash: /usr/bin/sudo: Permission denied`
Author
Owner

@zxdong262 commented on GitHub (May 10, 2020):

@tglhteam How about sudo ls, will it trigger same error?

<!-- gh-comment-id:626346767 --> @zxdong262 commented on GitHub (May 10, 2020): @tglhteam How about `sudo ls`, will it trigger same error?
Author
Owner

@tglhteam commented on GitHub (May 11, 2020):

Yes, this command sudo ls also shows an error.
image

<!-- gh-comment-id:626568843 --> @tglhteam commented on GitHub (May 11, 2020): Yes, this command `sudo ls` also shows an error. ![image](https://user-images.githubusercontent.com/39122932/81543242-2491f700-93b9-11ea-81d2-2cd826c0ea23.png)
Author
Owner

@zxdong262 commented on GitHub (May 11, 2020):

Hi @tglhteam
When run lsof -i | grep electerm, can you see your current username, and you run electerm from command line or click the icon? How did you install electerm?

<!-- gh-comment-id:626598399 --> @zxdong262 commented on GitHub (May 11, 2020): Hi @tglhteam When run `lsof -i | grep electerm`, can you see your current username, and you run electerm from command line or click the icon? How did you install electerm?
Author
Owner

@tglhteam commented on GitHub (May 11, 2020):

Here are the messages after entering the command:
image

I launch Electerm by click the icon. Installed the program from the Ububntu application center.

<!-- gh-comment-id:626606126 --> @tglhteam commented on GitHub (May 11, 2020): Here are the messages after entering the command: ![image](https://user-images.githubusercontent.com/39122932/81549896-cf5ae300-93c2-11ea-8ec0-deb9173d4836.png) I launch Electerm by click the icon. Installed the program from the Ububntu application center.
Author
Owner

@nZeus commented on GitHub (May 11, 2020):

Same output. I installed it using snap

<!-- gh-comment-id:626612780 --> @nZeus commented on GitHub (May 11, 2020): Same output. I installed it using snap
Author
Owner

@tglhteam commented on GitHub (May 11, 2020):

I also tried to enter the directory through Electerm - nothing works. Everything works through the Gnome terminal.
2020-05-11_20-20
2020-05-11_20-21

<!-- gh-comment-id:626616899 --> @tglhteam commented on GitHub (May 11, 2020): I also tried to enter the directory through Electerm - nothing works. Everything works through the Gnome terminal. ![2020-05-11_20-20](https://user-images.githubusercontent.com/39122932/81551739-b6076600-93c5-11ea-8431-6a3df5dd9bdb.png) ![2020-05-11_20-21](https://user-images.githubusercontent.com/39122932/81551746-b869c000-93c5-11ea-8524-d53e800dae33.png)
Author
Owner

@zxdong262 commented on GitHub (May 11, 2020):

@tglhteam @nZeus I can reproduce this when install from snap, seems related to --no-sandbox param, when run from commandline electerm --no-sandbox, it will be OK, also seems download from relealse page and install with sudo dpkg -i electerm.xxxx.dep would be OK too, anyway I will release new version to fix it, thank you for the feedback.

<!-- gh-comment-id:626629251 --> @zxdong262 commented on GitHub (May 11, 2020): @tglhteam @nZeus I can reproduce this when install from snap, seems related to --no-sandbox param, when run from commandline `electerm --no-sandbox`, it will be OK, also seems download from relealse page and install with `sudo dpkg -i electerm.xxxx.dep` would be OK too, anyway I will release new version to fix it, thank you for the feedback.
Author
Owner

@zxdong262 commented on GitHub (May 11, 2020):

@nZeus @tglhteam Oh, no, --no-sandbox do not work. Still do not know why...

<!-- gh-comment-id:626634751 --> @zxdong262 commented on GitHub (May 11, 2020): @nZeus @tglhteam Oh, no, --no-sandbox do not work. Still do not know why...
Author
Owner

@tglhteam commented on GitHub (May 11, 2020):

@zxdong262 I installed the .deb package. Sudo works, thanks! But the cd command does not work I enter the cd command, drag the folder, but the path to this folder in the terminal is not displayed. I took screenshots above. See also this error.

<!-- gh-comment-id:626636004 --> @tglhteam commented on GitHub (May 11, 2020): @zxdong262 I installed the .deb package. `Sudo` works, thanks! But the `cd` command does not work I enter the `cd` command, drag the folder, but the path to this folder in the terminal is not displayed. I took screenshots above. See also this error.
Author
Owner

@zxdong262 commented on GitHub (May 11, 2020):

@tglhteam Yes, it is bug, created a new issue from your comment.

<!-- gh-comment-id:626639117 --> @zxdong262 commented on GitHub (May 11, 2020): @tglhteam Yes, it is bug, created a new issue from your comment.
Author
Owner

@zxdong262 commented on GitHub (May 24, 2020):

@tglhteam @nZeus Still did not find a way to resolve electerm installed from snap can not sudo.

<!-- gh-comment-id:633227484 --> @zxdong262 commented on GitHub (May 24, 2020): @tglhteam @nZeus Still did not find a way to resolve electerm installed from snap can not sudo.
Author
Owner

@zxdong262 commented on GitHub (May 7, 2022):

Resolved now, need --classic, sudo snap install electerm --classic

<!-- gh-comment-id:1120215801 --> @zxdong262 commented on GitHub (May 7, 2022): Resolved now, need `--classic`, `sudo snap install electerm --classic`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#974
No description provided.