Skip to main content
Topic: dinit-userservd on Artix causes user to lose groups (Read 934 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

dinit-userservd on Artix causes user to lose groups

I installed Artix with the dinit init system, it intially used openrc but on a rather clean install i later decided to try dinit (which im pretty happy with so far) by reinstalling the init system and packages that are dependencies. When i wanted to get pipewire to work i had to start dinit as user which brought me to this thing called dinit-userservd, i set it up and started the service.

On the github page the readme.md specified i had to change some login options which i tried by adding
Code: [Select]
session optional pam_dinit_userservd.so
to the end of my /etc/pam.d/system-login or gdm-password file. I tried both but doing so yields the same results. The dinit-userservd works as expected and pipewire was running fine, but when i run the "groups" command all of my groups, except for my username's groups where gone. I tried rearranging the order in multiple ways but nothing worked, it always has either no dinit-userservd, or no groups.

If there is anything else i should specify i would like to hear it.

/etc/pam.d/system-login
Code: [Select]
#%PAM-1.0

auth       required   pam_shells.so
auth       requisite  pam_nologin.so
auth       include    system-auth

account    required   pam_access.so
account    required   pam_nologin.so
account    include    system-auth

password   include    system-auth

session    optional   pam_loginuid.so
session    optional   pam_keyinit.so       force revoke
session    include    system-auth
session    optional   pam_motd.so
session    optional   pam_mail.so          dir=/var/spool/mail standard quiet
session    optional   pam_umask.so
-session   optional   pam_turnstile.so
-session   optional   pam_elogind.so
session    required   pam_env.so           user_readenv=1
-session   optional   pam_rundir.so
-session   optional   pam_dinit.so
session optional pam_dinit_userservd.so

the line "-session   optional   pam_dinit.so" was initally pam_openrc.so but i was too desperate and changed it to dinit and see if that did anything but nothing really happened here.