You are not logged in.
Hi, I've made fresh install and I wasn't able to run 'pacman-key --verify something.sig' as normal user. There are no problems running it as root or as normal user on my old install. Everything I've found online didn't help. Looking at the source code I've found that if I add 'lock-never' in '/etc/pacman.d/gnupg/gpg.conf' it starts working.
I can't find any related information about it online.
Was this done on purpose or it's a bug?
Or what I should have done to configure it?
Here is the error I've received:
==> ERROR: You do not have sufficient permissions to run this command.
==> Use 'pacman-key --init' to correct the keyring permissions.Running 'pacman-key --init' as root didn't make any difference. I've also tried everything they say here https://bbs.archlinux.org/viewtopic.php?id=250481.
Offline
I think they've removed 'lock-never' but not completely and forgot to remove this check too:
if (( (EXPORT || FINGER || LIST || VERIFY) && EUID != 0 )); then
if ! grep -q "^[[:space:]]*lock-never[[:space:]]*$" ${PACMAN_KEYRING_DIR}/gpg.conf &>/dev/null; then
error "$(gettext "You do not have sufficient permissions to run this command.")"
msg "$(gettext "Use '%s' to correct the keyring permissions.")" "pacman-key --init"
exit 1
fi
fihttps://gitlab.archlinux.org/pacman/pac … a278a12ac8
Last edited by Anakievs (2024-05-07 19:31:24)
Offline
Fixed by https://gitlab.archlinux.org/pacman/pac … 02d59269a8
Edit:
Backport request https://gitlab.archlinux.org/archlinux/ … /issues/29
Last edited by loqs (2024-05-04 19:47:24)
Offline