* [Comm] Как выполнить initdb?
@ 2006-11-29 15:45 unix9
2006-11-29 16:13 ` Michael Shigorin
0 siblings, 1 reply; 5+ messages in thread
From: unix9 @ 2006-11-29 15:45 UTC (permalink / raw)
To: community
Приветствую всех!
Мне необходимо выполнить переинициализировать бд постгрес, так вот, команда initdb не проходит под рутом, а из под обычного юзера нету доступа к каталогу где расположена сама бд. Как мне можно все такие выполнить initdb?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Как выполнить initdb?
2006-11-29 15:45 [Comm] Как выполнить initdb? unix9
@ 2006-11-29 16:13 ` Michael Shigorin
2006-11-30 9:53 ` unix9
0 siblings, 1 reply; 5+ messages in thread
From: Michael Shigorin @ 2006-11-29 16:13 UTC (permalink / raw)
To: community
On Wed, Nov 29, 2006 at 06:45:21PM +0300, unix9 wrote:
> Мне необходимо выполнить переинициализировать бд постгрес, так
> вот, команда initdb не проходит под рутом, а из под обычного
> юзера нету доступа к каталогу где расположена сама бд. Как мне
> можно все такие выполнить initdb?
su - -s /bin/bash postgres
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Как выполнить initdb?
2006-11-29 16:13 ` Michael Shigorin
@ 2006-11-30 9:53 ` unix9
2006-11-30 10:24 ` Michael Shigorin
2006-11-30 11:22 ` Serge
0 siblings, 2 replies; 5+ messages in thread
From: unix9 @ 2006-11-30 9:53 UTC (permalink / raw)
To: shigorin, community
>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$
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Как выполнить initdb?
2006-11-30 9:53 ` unix9
@ 2006-11-30 10:24 ` Michael Shigorin
2006-11-30 11:22 ` Serge
1 sibling, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2006-11-30 10:24 UTC (permalink / raw)
To: community
On Thu, Nov 30, 2006 at 12:53:28PM +0300, unix9 wrote:
> >su - -s /bin/bash postgres
> su -s /bin/bash postgres
Найдите одно отличие.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Как выполнить initdb?
2006-11-30 9:53 ` unix9
2006-11-30 10:24 ` Michael Shigorin
@ 2006-11-30 11:22 ` Serge
1 sibling, 0 replies; 5+ messages in thread
From: Serge @ 2006-11-30 11:22 UTC (permalink / raw)
To: unix9, ALT Linux Community
В сообщении от 30 ноября 2006 11:53 unix9 написал(a):
> >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
Так Вам вроде было сказано писать
su - -s /bin/bash postgres
(2 минуса)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-30 11:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-29 15:45 [Comm] Как выполнить initdb? unix9
2006-11-29 16:13 ` Michael Shigorin
2006-11-30 9:53 ` unix9
2006-11-30 10:24 ` Michael Shigorin
2006-11-30 11:22 ` Serge
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