I installed some development environment which created a postgres user account. The user is actually an OS X user account with the name of 'postgres'. This is different from a user account within postgres.

I don't remember what it was, it was some time ago (perhaps MAMP, but I don't know whether MAMP even supports postgres).

Anyway, this was later uninstalled using the provided uninstaller.

Now when I log into my Mac, the postgres user always appears. But there is no trace of it in System Preferences ยป User Accounts, and there's no entry for it in /etc/passwd.

What is prompting OS X to list the user account in the login screen? I'm struggling to figure out where else to remove it from.

link|improve this question
1  
This is more of a question for superuser or serverfault. – senfo Oct 14 '11 at 2:06
1  
have you looked at : linux.die.net/man/1/dropuser – Kassym Dorsel Oct 14 '11 at 2:39
@senfo, sorry, my bad. – carpii Oct 18 '11 at 20:33
@Kassym, thanks, but the user account is an OSX one called postgres, not a database user account inside postgres – carpii Oct 18 '11 at 20:33
feedback

migrated from stackoverflow.com Oct 14 '11 at 8:11

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 2 down vote accepted

You can use the terminal based DSCL command (see man dscl) to remove user accounts. Something like this may do the trick:

sudo dscl . -delete /users/postgres
link|improve this answer
My problem disappeared anyway, because I moved to Lion and did a fresh install. I suspect your solution would have worked though, I'll make a note of it for future, thanks :) – carpii Jan 6 at 3:28
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.