On Thu, Dec 23, 2010 at 3:03 PM, nbald <[email protected]> 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*
E-mail <[email protected]> • Website <http://djs-consulting.com>
 • Support <http://support.djs-consulting.com> • Tech
Blog<http://techblog.djs-consulting.com>

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++++

Reply via email to