You are not logged in.

#1 2024-05-04 08:31:24

Anakievs
Member
Registered: 2023-06-12
Posts: 20

Missing 'lock-never' from '/etc/pacman.d/gnupg/gpg.conf'.

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

#2 2024-05-04 12:25:57

Anakievs
Member
Registered: 2023-06-12
Posts: 20

Re: Missing 'lock-never' from '/etc/pacman.d/gnupg/gpg.conf'.

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
	fi

https://gitlab.archlinux.org/pacman/pac … a278a12ac8

Last edited by Anakievs (2024-05-07 19:31:24)

Offline

#3 2024-05-04 12:56:19

loqs
Member
Registered: 2014-03-06
Posts: 18,654

Re: Missing 'lock-never' from '/etc/pacman.d/gnupg/gpg.conf'.

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

Board footer

Powered by FluxBB