Re: Postgresql 8.1 ? Bug ?
xav@1et0.org a écrit :
> Bonjour,
>
> Voici ce que j'ai sur ma machine avec postgres installé depuis un
> moment déja.
>
> root@sat:/home/xavinsky$ apt-cache show postgresql-8.1 |grep Version
> Version: 8.1.8-1
> root@sat:/home/xavinsky$ su postgres
su - postgres permet d'éviter la ligne suivante
> postgres@sat:/home/xavinsky$ cd ~
> postgres@sat:~$ pwd
> /var/lib/postgresql
> postgres@sat:~$ cat /etc/passwd |grep postgres
grep postgres /etc/passwd est plus concis
> postgres:x:111:117:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
>
> Le $HOME est correctement défini dans le fichier /etc/passwd
> Sur mon poste, tout semble correct.
>
> A++ Xav.
En Gal quant'on se retrouve à la racine dans ce cas là; cela veut dire
que $HOME n'a pas été défini, ou bien qu'il est inexistant.
> Xavier Manach a écrit :
>> Bonjour,
>
>> Voici ce que j'ai sur ma machine avec postgres installé depuis un
>> moment déja.
>
>> root@sat:/home/xavinsky$ apt-cache show postgresql-8.1 |grep Version
>> Version: 8.1.8-1
>> root@sat:/home/xavinsky$ su postgres
>> postgres@sat:/home/xavinsky$ cd ~
>> postgres@sat:~$ pwd
>> /var/lib/postgresql
>> postgres@sat:~$ cat /etc/passwd |grep postgres
>> postgres:x:111:117:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
>
>> Le $HOME est correctement défini dans le fichier /etc/passwd
>> Sur mon poste, tout semble correct.
>
>> A++ Xav.
>
>> Edi STOJICEVIC a écrit :
>>> Je viens d'installer une testing sur un dédié avec Postgresql 8.1.8 et
>>> j'ai une autre base sur une autre testing avec une 8.1.5.
>>> Sur la 8.1.5, en se connectant avec l'utilisateur postgres mon $HOME est
>>> défini comme /var/lib/postgresql
>>> Sur la 8.1.8, on se retrouve à la racine directement "/" sans
>>> initialisation.
--
#else /* !STDSTDIO */ /* The big, slow, and stupid way */
-- Larry Wall in str.c from the perl source code
Reply to: