-
-
Couldn't load subscription status.
- Fork 38
Open
Description
The last sudo makes sure cat is run with root privileges but not the redirection of the output >. Reproduce:
(run as non-root user)
$ sudo echo "test" >/usr/share/keyrings/docker-archive-keyring.gpg
bash: /usr/share/keyrings/docker-archive-keyring.gpg: Permission denied
# but this works
sudo sh -c 'echo "test" >/usr/share/keyrings/docker-archive-keyring.gpg'Metadata
Metadata
Assignees
Labels
No labels