documentation/docs/gentoo-desktop-setup/post-install/users.md
2025-01-25 20:41:52 +01:00

1 KiB

Adding a user to the system is essential for actually using it as a desktop. It is pretty straight forward:

sh# useradd -m -G <wheel,>plugdev,pipewire -s /bin/bash <username>
sh# passwd <username>
...
passwd: password updated successfully

The pipewire group will not exist yet until the corresponding package is installed.

The wheel group should ideally only be assigned to one singular admin account. The users in the group are allowed to use the doas command to gain root privileges. This is necessary for installing packages and changing system files but not for a normal user.

Doas

Installing and configuring doas should be done like so.

app-admin/doas persist

This USE flag is necessary when typing the user's password every few seconds gets to annoying.

sh# emerge -av doas
permit persist :wheel as root

Now users who are in the wheel group are allowed to use the doas command to gain root privileges.