Avoid using sudo in makeVarRun() #2204
IgorMilavec
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
It could, but it would not really help, as it is just the first in a list of If you can't use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Some security products obstruct the usage of sudo, causing lima to fail with something similar to:
failed to run [sudo --user root --group wheel --non-interactive /bin/mkdir -m 775 -p /private/var/run/finch-lima]: stdout="", stderr="sudo: a password is required\n": exit status 1
.This command is run from makeVarRun() even if the directory already exists with appropriate permissions.
Could lima run sudo mkdir only if os.stat() call fails? This way the user could pre-create the path.
Beta Was this translation helpful? Give feedback.
All reactions