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

Quadlets in /etc/containers/systemd/users/* cannot be removed: permission denied #243

Open
axel7083 opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@axel7083
Copy link
Contributor

axel7083 commented Jan 30, 2025

Description

When trying to delete a quadlet placed in /etc/containers/systemd/users/* got the following error

[quadlet] [PodmanService] ssh command 
[
    "machine",
    "ssh",
    "podman-machine-default",
    "rm /etc/containers/systemd/users/hello.image"
]
[quadlet] Error: Command execution failed with exit code 1

Running it manually gave me the following output

$: podman machine ssh podman-machine-default rm -f /etc/containers/systemd/users/hello.image
rm: cannot remove '/etc/containers/systemd/users/hello.image': Permission denied

Weird? I need to sudo to remove it. :/

Lack of feedback

When we fail to remove a quadlet, we do not display anything in the UI...

@axel7083 axel7083 added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant