I'm am attempting to reinstall PostgreSQL as I am unable to log into it at all. I realise I had installed it a long time ago using both the installer from the postgres website and brew install postgres
. I have uninstalled both of these now:
- uninstalled using
brew uninstall --force postgresql
to remove all versions installed via brew. - uninstalled using
sudo /Library/PostgreSQL/9.5/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
- manually removed
/Library/PostgreSQL
(rm -rf /Library/PostgreSQL
) - manually the PostgreSQL user (via the Mac
Users & Groups
).
However I have a _postgres
user left in /etc/passwd
:
$ grep post /etc/passwd
_postgres:*:216:216:PostgreSQL Server:/var/empty:/usr/bin/false
There are no userdel
or usermod
commands available on Mac (10.11 El Capitan) and the alternative seems excessively complex (but perhaps necessarily so?)