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

ask for sudo/root user password while trying to write to root-owned files like /etc/* #108

Closed
unxed opened this issue Sep 27, 2016 · 10 comments

Comments

@unxed
Copy link
Contributor

unxed commented Sep 27, 2016

currently an attempt to edit/save any file owned by root results to "Error 5"

expected behavour for Far Manager is to ask for a password of user with administrative privilegies as other FMs do.

@unxed
Copy link
Contributor Author

unxed commented Sep 28, 2016

@unxed
Copy link
Contributor Author

unxed commented Oct 5, 2016

tested 0b4e91a

working: file copying, file saving in editor
still fails: file moving, file deletion, wipe file, folder creation, folder copy, folder rename, folder move

file renaming asks for password, but actually performs copy, leaving old named file with "error 5"

also, "cancel" button pressed in password entry dialog hangs far2l

@elfmz
Copy link
Owner

elfmz commented Oct 5, 2016

thats why this issue still opened

@unxed
Copy link
Contributor Author

unxed commented Oct 5, 2016

can sudo sessions be cached not to ask passwords for multiple access to the same resources?

@elfmz
Copy link
Owner

elfmz commented Oct 5, 2016

They're cached according to system policy. Not by resources however, just by timeout

@elfmz
Copy link
Owner

elfmz commented Oct 5, 2016

hm. it seems there is bug and sudo doesnt cache password if far launched not from console. I usually launch it from terminal so didnt' see that before.

@unxed
Copy link
Contributor Author

unxed commented Oct 6, 2016

As for me (if it matters), I launch far using task panel shortcut I made for it.

@unxed
Copy link
Contributor Author

unxed commented Oct 6, 2016

now also working: folder creation, folder deletion, file deletion, file rename, folder rename
still fails: file move (to sudo-needed dir), folder move (to sudo-needed dir), wipe file
all three fail with error 2

@elfmz
Copy link
Owner

elfmz commented Oct 6, 2016

closing as in generic sudo works now, while still requires some improvements and better multiarc support, but thats not critical

@elfmz elfmz closed this as completed Oct 6, 2016
@unxed
Copy link
Contributor Author

unxed commented Oct 9, 2016

retested file and folder moving and file wipe, confirming working

and that's a really great feature mc never had :)

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

2 participants