Sudo password prompt #435
Replies: 2 comments 1 reply
-
The copy and cut operations in Yazi directly use system APIs, occurring within the Yazi process itself rather than invoking external Invoking external
Nevertheless, I think that maybe we could perform tasks similar to This would require support from the plugin system, #401, and it should be soon. Would you like to try this out once it's ready? |
Beta Was this translation helpful? Give feedback.
-
There's a plugin to do this now https://github.com/TD-Sky/sudo.yazi Also, Yazi now supports cross-process sync of yank states, meaning you can also copy and paste files between two Yazi processes, even if one runs with normal permissions and the other with sudo privileges, https://yazi-rs.github.io/docs/dds#session.lua |
Beta Was this translation helpful? Give feedback.
-
I have read this and I know it's closed as not possible as
but would it be possible to have a builtin operation keyword similar that asks the user the password first, then pipe it to sudo and execute the command?
similar to the
shell
operation keyword but runs it as root instead, after asking for the passwordSudo has a
-s
flag which allows it toalthough I understand that there probably are security risks involved in this approach
Beta Was this translation helpful? Give feedback.
All reactions