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 privileges elevation doesn't work #819

Open
seregaizsbera opened this issue Oct 21, 2020 · 7 comments
Open

sudo privileges elevation doesn't work #819

seregaizsbera opened this issue Oct 21, 2020 · 7 comments

Comments

@seregaizsbera
Copy link

Far 2.2 build unknown-alpha Linux x86_64
Enable sudo privileges elevation on
CentOS 8 Linux 4.18.0-193.19.1.el8_2.x86_64
Putty4far2l

$ groups
adm wheel systemd-journal docker sudoers

Steps to reproduce

  1. cd /etc
  2. F4 under file hosts
  3. Enter some text
  4. F2

Expected behavour

Privilege escalation dialog appears

Actual behaviour

Editor Error 5 Cannot save the file hosts. Retry Cancel

@elfmz
Copy link
Owner

elfmz commented Oct 21, 2020

This can be for example if your installation missing far2l_sudoapp/far2l_askpass
These are symlinks to far2l itself located in .../lib/far2l (there is also Plugins directory), and needed to function elevation properly

@seregaizsbera
Copy link
Author

Made these symlinks manually and it worked. Thanks a lot.

@elfmz
Copy link
Owner

elfmz commented Oct 21, 2020

but how you installed far2l and got them missing?

@seregaizsbera
Copy link
Author

Easy.

sudo -i
cd /etc/yum.repos.d
wget https://copr.fedorainfracloud.org/coprs/polter/far2l/repo/epel-8/polter-far2l-epel-8.repo
dnf -y install far2l

@elfmz
Copy link
Owner

elfmz commented Oct 21, 2020

aha, then its a bug of package and need to complain that.. polter?

@seregaizsbera
Copy link
Author

definitely so

@c1tyguide
Copy link

c1tyguide commented Aug 6, 2022

Greetings, the same problem with OpenSUSE 13.1 and far2l-2.4.0.0+git.9944c5ce-lp152.13.1.x86_64.rpm
Making far2l_sudoapp/far2l_askpass symlinks is not calls sudo dialog.
But on Leap 15.1 and higher this works like a charm
...
Solved
By adding newer version of libstdc++ and patch far2l binary with patchelf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants