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

Can't use the -A (AskPass) option #7

Open
antoine2711 opened this issue Jan 7, 2025 · 0 comments
Open

Can't use the -A (AskPass) option #7

antoine2711 opened this issue Jan 7, 2025 · 0 comments

Comments

@antoine2711
Copy link
Contributor

I'm trying to use the -A (AskPass) option, but I get a strange error.
I have scripts that works on Ubuntu, MacOS, CentOS 8, but fails on ChromeOS.

$ SHELL=/bin/sh SUDO_ASKPASS=/usr/local/bin/sudo-askpass /usr/local/bin/sudo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" -sA ls -la /
[ERROR] 2025/01/07 02:51:28 error initializing client: You are not currently signed in. Please run `op signin --help` for instructions
sudo: no password was provided
sudo: a password is required
$ /usr/local/bin/sudo-askpass
MyPassword

For the tool to work, it needs an environment variable to be preserved.

Regards, Antoine

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

1 participant