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

Fix vanilla-first-setup-prepare-files permission #356

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

D3vil0p3r
Copy link

@D3vil0p3r D3vil0p3r commented Oct 22, 2024

Providing vanilla-first-setup-prepare-files exec grant to allow

subprocess.run([pkexec_bin, "/usr/bin/vanilla-first-setup-prepare-files", getpass.getuser()]) # type: ignore

to be run correctly when first-setup is run as non-root.

If it is not done, it will produce a permission denied error when opening in write mode the commands_script_path = "/etc/org.vanillaos.FirstSetup.commands" file.

@mirkobrombin
Copy link
Member

LGTM but I wait for a 2nd reviewer

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

Successfully merging this pull request may close these issues.

2 participants