I created postgres
using the useradd
command without thinking twice about it. I've already got postgres installed and running. I'm unable to add a home directory to postgres
because the user is currently logged in.
Can I somehow log the postgres
user out and remove it? If I delete the user (and recreate it using adduser
), will all of its files still belong to it (assuming same UID)? Are there other potential problems? If this won't work, can I at least log the user out so that I can set its home directory?