pikaur icon indicating copy to clipboard operation
pikaur copied to clipboard

pikaur -Quq - error: Either SystemD Dynamic Users must be enabled or User ID should be set if running as root.

Open tachtler opened this issue 11 months ago • 1 comments

Hello,

our absolute favorite tool as AUR-Helper is pikaur - thank you very much for that.

We have been using pikaur under the root user up to now - and have therefore configured the following configuration parameters in /root/.config/pikaur.conf differently from the standard:

# First is standard
dynamicusers = never
# Changed parameters
cachepath = /var/cache/pikaur/.cache
datapath = /var/cache/pikaur/.local/share
userid = 65534

With this configuration, the command

# pikaur -Syyu 

is no problem at all.

However, the following command throws the following error message:

# pikaur -Quq
error: Either SystemD Dynamic Users must be enabled or User ID should be set if running as root.

How can we prevent this without, for example, running pikaur as the respective user? We would like to continue using pikaur as the root user, as our users only have a minimal amount of disk space in their respective HOME directories and each of us should be able to use pikaur and also the disk space that we have set aside for it under /var/cache/.

Many thanks in advance. Klaus.

tachtler avatar Feb 13 '25 08:02 tachtler

Having same issue here with pikaur -V

Anankke avatar May 01 '25 19:05 Anankke

How can we prevent this without, for example, running pikaur as the respective user?

https://github.com/actionless/pikaur?tab=readme-ov-file#userid-default-0

actionless avatar Jul 08 '25 20:07 actionless