Re: exec + fglgo SOLUCIONADO
| From: | Federica Pavese | Date: | Thu, 16 Feb 2006 15:01:27 +0000 |
| Subject: | Re: exec + fglgo SOLUCIONADO | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-57865@lists.php.net to get a copy of this message | ||
Hola lista !!!!!
Solucionado este tema.
Había que darle permiso de conexión al usuario nobody (gracias Fernando
Ortiz !!!) con "grant connect to nobody" desde el Informix.
Gracias también a Luciano Ruete, Carlos Medina, Mario Ramirez y Manuel
Oterino por sus valiosísimas colaboraciones.
Hasta la próxima.
Federica
----- Original Message -----
From: "Fernando Ortiz" <fortiz@lacorona.com.mx>
To: "Lista PHP" <php-es@lists.php.net>
Cc: "Federica Pavese" <fedepavese@bolsamza.com.ar>
Sent: Thursday, February 16, 2006 11:39 AM
Subject: Re: [PHP-ES] exec + fglgo
> Manuel Oterino escribió:
>
> >Si, me refería a eso.
> >
> >Miraste a ejecutar ese mismo script, pero con esta modificación:
> >if [ a$INFORMIXDIR = a ]
> >then
> > . /ruta/etc/profile >/dev/null 2>&1
> >fi
> >cd /ruta/
> >
> >
> set >/tmp/variables.txt
> id >/tmp/usuario.txt
>
> >echo "fglgo /ruta/modulo.4gi" $* > /tmp/ 2>&1
> >
> >a ver si con otro comando si funciona, y el problema lo tiene o
fglgo/modulo.4gi.
> >
> >
> >
> >
> >
>
> Program stopped at "consulta4.4gl", line number 0.
> SQL statement error number -387.
>
> No connect permission.
>
> [cta@adela cta]$ finderr -387
> -387 No connect permission.
>
> You cannot access the database that this statement requests because you
> have not been granted CONNECT privilege to it. Contact a person who has
> Database Administrator privilege to that database and ask to be granted
> CONNECT privileges to it.
>
> Lo cual significa que el usuario que esta ejecutando el fglgo no tiene
> el permiso de conexion. Verifica el archivo /tmp/usuario.txt te debera
> de decir algo como:
>
> [web@web htdocs]$ cat /tmp/usuario.txt
> uid=99(nobody) gid=4294967295 groups=4294967295
>
> entonces al informix le debes de ejecutar este comando
>
> grant connect to nobody
>
> Saludos
>
>