On Thu, Dec 23, 2010 at 3:03 PM, nbald <nicolas.baldeck@xxxxxxxxxxx> wrote:
--
# echo 'pgsql:pgsql:100:100:pgsql:/home/pgsql:/bin/sh' >> /etc/passwd
# su - pgsql
warning: cannot change to home directory
That last line seems to be the problem. Does /home/pgsql exist? If it doesn't, and the su command can't complete, you may still be running as root.
Daniel J. Summers
Owner, DJS Consulting
GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++