Re: "root" execution not permitted. and busybox

From: "Daniel J(dot) Summers" <daniel(dot)summers(dot)2415(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: "root" execution not permitted. and busybox
Date: 2010-12-24 02:41:15
Message-ID: AANLkTi=8hGFw=K8kuinVeayL52rkn+ddeVYsY=i=C1pF@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Dec 23, 2010 at 3:03 PM, nbald <nicolas(dot)baldeck(at)vizille(dot)net> 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 <daniel(dot)summers(dot)2415(at)gmail(dot)com> • 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++++

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Maxim Boguk 2010-12-25 05:09:32 PD_ALL_VISIBLE flag was incorrectly set happend during repeatable vacuum
Previous Message Nicolas BALDECK 2010-12-24 01:44:30 Re: "root" execution not permitted. and busybox