installing Postgres
Puneet Kishor
punk.kish at gmail.com
Tue Sep 13 14:33:45 PDT 2011
On Sep 13, 2011, at 4:18 PM, Brandon Allbery wrote:
> On Tue, Sep 13, 2011 at 17:07, Brandon Allbery <allbery.b at gmail.com> wrote:
>
>> On Tue, Sep 13, 2011 at 16:59, Puneet Kishor <punk.kish at gmail.com> wrote:
>>
>>> $sudo su postgres -c '/opt/local/lib/postgresql90/bin/pg_ctl start -D
>>> /path/to/db/postgresql90/defaultdb -l ~/Logs/postgresql90-server/main.log'
>>>
>>> but, I don't know the password for the 'postgres' user
>>>
>>
>> Are you using the actual command you quoted? The "sudo" shifts to root,
>> which doesn't need a password to "su postgres".
>>
>
> Oh, the "$" isn't part of the command; if you're typing it, then the shell
> is trying to expand a variable called "sudo" that is probably empty, so
> you'd get the password prompt.
>
> sudo su postgres -c '/opt/local/lib/postgresql90/bin/pg_ctl start -D
> /path/to/db/postgresql90/defaultdb -l ~/Logs/postgresql90-server/main.log'
>
Thanks. No, I am not typing the $... that is just the bash prompt. I sent another email with more explanation.
More information about the macports-users
mailing list