Solved pkg: Unable to drop privileges: no 'nobody' user

Hi, After issues during the update process, I'm unable to install or update packages.
Currently, when I try to install a package, I get this error:

Unable to drop privileges: no 'nobody' user

Even when I try to update my system, it says I already have the latest update, and upgrading to version 14 is not possible for me.

I would appreciate it if you could help me resolve this issue:

uname -a:
FreeBSD FreeBSD 13.3-RELEASE-p7 FreeBSD 13.3-RELEASE-p7 GENERIC amd64
 
Following the advice given by Emrion you can indeed recreate the deleted user and do not forget to create the group "nobody" also.
First check if the user and the group nobody vanished:
$ grep nobody /etc/passwd
$ grep nobody /etc/groups


If it returns nothing then recreate them:
# pw groupadd nobody -g 65534
# pw useradd nobody -u 65534 -g 65534 -d /nonexistent -s /usr/sbin/nologin -c 'Unprivileged user'


Credit goes to SirDice, I found it in this thread:
 
Back
Top