From: "unix9" <unix9@yandex.ru>
To: shigorin@gmail.com, community@lists.altlinux.org
Subject: Re: [Comm] Как выполнить initdb?
Date: Thu, 30 Nov 2006 12:53:28 +0300 (MSK)
Message-ID: <456EAA18.000008.24864@pantene.yandex.ru> (raw)
In-Reply-To: <20061129161332.GI4051@osdn.org.ua>
>On Wed, Nov 29, 2006 at 06:45:21PM +0300, unix9 wrote:
>> Мне необходимо выполнить переинициализировать бд постгрес, так
>> вот, команда initdb не проходит под рутом, а из под обычного
>> юзера нету доступа к каталогу где расположена сама бд. Как мне
>> можно все такие выполнить initdb?
>
>su - -s /bin/bash postgres
Не, не получается.
[root@docflow user]# su -s /bin/bash postgres
bash: /home/user/.bashrc: Permission denied
bash-2.05b$ init
initdb initlocation
bash-2.05b$ initdb -E win1251 -d info
Running in debug mode.
initdb: internal variables:
PGDATA=info
datadir=/usr/share/pgsql
PGPATH=/usr/bin
ENCODING=win1251
ENCODINGID=22
POSTGRES_SUPERUSERNAME=postgres
POSTGRES_BKI=/usr/share/pgsql/postgres.bki
POSTGRES_DESCR=/usr/share/pgsql/postgres.description
POSTGRESQL_CONF_SAMPLE=/usr/share/pgsql/postgresql.conf.sample
PG_HBA_SAMPLE=/usr/share/pgsql/pg_hba.conf.sample
PG_IDENT_SAMPLE=/usr/share/pgsql/pg_ident.conf.sample
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale ru_RU.KOI8-R.
creating directory info... mkdir: невозможно создать каталог `info': Permission denied
initdb: failed
bash-2.05b$
next prev parent reply other threads:[~2006-11-30 9:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 15:45 unix9
2006-11-29 16:13 ` Michael Shigorin
2006-11-30 9:53 ` unix9 [this message]
2006-11-30 10:24 ` Michael Shigorin
2006-11-30 11:22 ` Serge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=456EAA18.000008.24864@pantene.yandex.ru \
--to=unix9@yandex.ru \
--cc=community@lists.altlinux.org \
--cc=shigorin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git