[Bug 259523] audio/pulseaudio: pw: user 'pulse' disappeared during update

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Jan 2022 12:03:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259523

Adriaan de Groot <adridg@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adridg@freebsd.org
             Status|New                         |In Progress

--- Comment #10 from Adriaan de Groot <adridg@freebsd.org> ---
This PR is getting bogged down in chat about FreeBSD version upgrades, rather
than the original issue of creating a user for pulseaudio.

- Please check if the problem still exists (and if it does not, close this PR
or add a note saying so).
- If the problem **does** still exist, try the following:
  - Look if there is a "pulse" user already on the system, e.g.
    ```
    $ grep pulse /etc/passwd 
    pulse:*:563:563:PulseAudio System User:/nonexistent:/usr/sbin/nologin
    ```
  - Look if there is a user ID 563 already on the system, e.g.
    ```
    $ grep 563 /etc/passwd 
    pulse:*:563:563:PulseAudio System User:/nonexistent:/usr/sbin/nologin
    ```
  - I'm going to assume, since pw is reporting "user disappeared", that the
answer to both of the above is "no" and you get no output from grep. If you get
any output from grep that does not match the above, you have an unusual or
messed-up user-id situation, which you need to resolve first.
  - Create the user by hand (now as root),
    ```
    # pw useradd -n pulse -u 563 -g pulse \
    -d /nonexistent -s /usr/sbin/nologin -c "PulseAudio System User"
    ```
  - Assuming that succeeded, run grep again (the first two steps) to
double-check the output. If not, you have an issue with the password subsystem
which needs to be resolved first.
  - Now install pulseaudio again. **This** time, since the user already exists,
I would expect "Using existing user.." kinds of messages and the installation
to succeed.

-- 
You are receiving this mail because:
You are the assignee for the bug.