PostgreSQL 7.1 - postgresql.init

Jacek Konieczny jajcus w pld.org.pl
Nie, 13 Maj 2001, 16:47:00 CEST


On Fri, May 11, 2001 at 11:01:50PM +0200, Artur Flinta wrote:
> [root w warp aflinta]# ls -l /var/lib
> 
> drwxrwx---    3 postgres postgres     4096 maj 10 22:17 pgsql
> 
> [root w warp aflinta]# ls -la /var/lib/pgsql/
> razem 8
> drwxrwx---    2 postgres postgres     4096 maj 11 22:59 .
> drwxr-xr-x   15 root     root         4096 maj 10 20:47 ..
> 
> [root w warp aflinta]# su postgres
> [\u@\h \W]$ initdb --pgdata /var/lib/pgsql
> This database system will be initialized with username "postgres".
> This user will own all the data files and must also own the server
> process.
> 
> initdb: The directory /var/lib/pgsql exists but is not empty.
> If you want to create a new database system, either remove or empty
> the directory /var/lib/pgsql or run initdb with
> an argument other than /var/lib/pgsql.
> [\u@\h \W]$ exit
> [root w warp aflinta]# ls -la /var/lib/pgsql/
> razem 12
> drwxrwx---    3 postgres postgres     4096 maj 11 22:59 .
> drwxr-xr-x   15 root     root         4096 maj 10 20:47 ..
> drwx------    2 postgres root         4096 maj 11 22:59 .xauth
                                                        ^^^^^^
> 
> Tak czy siak dalej nie działa :(((((

Myślę, że ten .xauth jest problemem! Po co wogóle su (a właściwie PAM)
go tworzy w przypadku specjalnego uzytkownika. Powinno to być
ograniczone do zwykłaych użytkowników. Tylko jak ich odróżniać?
Myślę że własność katalogu byłaby tu dobrym kryterium. Po co pisać
.xauth do nie swojego (tylko roota) katalogu? I po co on w /home/httpd,
/var/spool/news itp.?
Myślę więc, że pam_xauth jest do poprawki.

Pozdrowienia,
        Jacek



Więcej informacji o liście dyskusyjnej pld-users-pl