Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] xuname says notuptodate even when system is up to date when not run as root
@ 2021-01-30  8:54 lfdebrux
  2021-01-30 12:20 ` Johnnynator
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lfdebrux @ 2021-01-30  8:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

New issue by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/28322

Description:
### System

* xuname:  Void 5.10.11_1 x86_64-musl GenuineIntel notuptodate rF (but I am up to date)
* package:  xtools-0.62_1

### Expected behavior

When I have just run `xbps-install -Su` xuname does not say `notuptodate`, even if I'm not running it as root.

### Actual behavior

```
$ sudo xbps-install -u
$ xuname
Do you want to import this public key? [Y/n]
Void 5.10.11_1 x86_64-musl GenuineIntel notuptodate rF
```

### Steps to reproduce the behavior

I believe the problem is related to the output of `xbps-install -Mun`, which when not run as root asks about importing a public key:

```
$ xbps-install -Mun
`https://alpha.de.repo.voidlinux.org/current/musl' repository has be
en RSA signed by "Void Linux"
Fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
Do you want to import this public key? [Y/n]
```

If I run `sudo xbps-install -Mun` then no message is printed, and then if I run `sudo xuname` then it correctly reports that my system is up to date.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xuname says notuptodate even when system is up to date when not run as root
  2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
@ 2021-01-30 12:20 ` Johnnynator
  2021-01-30 13:35 ` lfdebrux
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Johnnynator @ 2021-01-30 12:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/28322#issuecomment-770203899

Comment:
This sounds like a permission issue.
Can you provide the output of `sudo xbps-pkgdb xbps` and `ls -l /var/db/xbps/keys/`

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xuname says notuptodate even when system is up to date when not run as root
  2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
  2021-01-30 12:20 ` Johnnynator
@ 2021-01-30 13:35 ` lfdebrux
  2021-01-30 17:09 ` Anachron
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lfdebrux @ 2021-01-30 13:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

New comment by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/28322#issuecomment-770213651

Comment:
@Johnnynator `sudo xbps-pkgdb xbps` produces no output 🤔 

I get permission denied if I do `ls -l /var/db/xbps/keys` without sudo, with sudo I can see there are two files:

```
total 6
-rw------- 1 root root 1410 Jan 28 18:15 3d:b9:c0:50:41:a7:68:4c:2e:
2c:a9:a2:5a:04:b7:3f.plist
-rw-r--r-- 1 root root 1410 Jan 28 04:25 60:ae:0c:d6:f0:95:17:80:bc:
93:46:7a:89:af:a3:2d.plist
```

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xuname says notuptodate even when system is up to date when not run as root
  2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
  2021-01-30 12:20 ` Johnnynator
  2021-01-30 13:35 ` lfdebrux
@ 2021-01-30 17:09 ` Anachron
  2021-01-30 17:27 ` Duncaen
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Anachron @ 2021-01-30 17:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 498 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/28322#issuecomment-770245303

Comment:
Permissions should be

```
$ ls -l /var/db/xbps/keys
-rw-r--r-- 1 root root 1410  1. Mai 2017  3d:b9:c0:50:41:a7:68:4c:2e:2c:a9:a2:5a:04:b7:3f.plist
-rw-r--r-- 1 root root 1410 28. Jan 06:41 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d.plist
```

You are missing permissions on the `3d:b9:c0:50:41:a7:68:4c:2e:2c:a9:a2:5a:04:b7:3f.plist` file.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xuname says notuptodate even when system is up to date when not run as root
  2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
                   ` (2 preceding siblings ...)
  2021-01-30 17:09 ` Anachron
@ 2021-01-30 17:27 ` Duncaen
  2021-01-30 21:21 ` lfdebrux
  2021-01-30 21:21 ` [ISSUE] [CLOSED] " lfdebrux
  5 siblings, 0 replies; 7+ messages in thread
From: Duncaen @ 2021-01-30 17:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/28322#issuecomment-770247613

Comment:
The directory should also be readable by others, thats why it tries to import the key that is already readable.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xuname says notuptodate even when system is up to date when not run as root
  2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
                   ` (3 preceding siblings ...)
  2021-01-30 17:27 ` Duncaen
@ 2021-01-30 21:21 ` lfdebrux
  2021-01-30 21:21 ` [ISSUE] [CLOSED] " lfdebrux
  5 siblings, 0 replies; 7+ messages in thread
From: lfdebrux @ 2021-01-30 21:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

New comment by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/28322#issuecomment-770282690

Comment:
Okay, ran the following commands to update the permissions:

```
# chmod 644 /var/db/xbps/keys/*
# chmod 755 /var/db/xbps/keys
```

`xuname` now works as expected. Thanks for the help! 

Not sure how the permissions got messed up but never mind.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ISSUE] [CLOSED] xuname says notuptodate even when system is up to date when not run as root
  2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
                   ` (4 preceding siblings ...)
  2021-01-30 21:21 ` lfdebrux
@ 2021-01-30 21:21 ` lfdebrux
  5 siblings, 0 replies; 7+ messages in thread
From: lfdebrux @ 2021-01-30 21:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

Closed issue by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/28322

Description:
### System

* xuname:  Void 5.10.11_1 x86_64-musl GenuineIntel notuptodate rF (but I am up to date)
* package:  xtools-0.62_1

### Expected behavior

When I have just run `xbps-install -Su` xuname does not say `notuptodate`, even if I'm not running it as root.

### Actual behavior

```
$ sudo xbps-install -u
$ xuname
Do you want to import this public key? [Y/n]
Void 5.10.11_1 x86_64-musl GenuineIntel notuptodate rF
```

### Steps to reproduce the behavior

I believe the problem is related to the output of `xbps-install -Mun`, which when not run as root asks about importing a public key:

```
$ xbps-install -Mun
`https://alpha.de.repo.voidlinux.org/current/musl' repository has be
en RSA signed by "Void Linux"
Fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
Do you want to import this public key? [Y/n]
```

If I run `sudo xbps-install -Mun` then no message is printed, and then if I run `sudo xuname` then it correctly reports that my system is up to date.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-30 21:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-30  8:54 [ISSUE] xuname says notuptodate even when system is up to date when not run as root lfdebrux
2021-01-30 12:20 ` Johnnynator
2021-01-30 13:35 ` lfdebrux
2021-01-30 17:09 ` Anachron
2021-01-30 17:27 ` Duncaen
2021-01-30 21:21 ` lfdebrux
2021-01-30 21:21 ` [ISSUE] [CLOSED] " lfdebrux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).