Cannot Connect To Newly Installed Informix
Posted in 2016
A user on CentOS 7.1 with IDS 12.10.FC6 couldn't connect via JDBC, getting "informix@<client IP> is not known on the database server". Respondents suggested the connection was relying on a trusted-host relationship (no user/password in the URL) and pointed to /etc/hosts.equiv, ~informix/.rhosts, $INFORMIXDIR/etc/hosts.equiv or REMOTE_SERVER_CFG, and advised checking the server online log for error -951 (user unknown) vs -956 (user not trusted). The poster found the real cause himself: he had recursively chmod'ed the installation tree to 755, stripping setuid permissions (e.g. on oninit) so user details couldn't be retrieved. Setting permissions only on the parent folder, without recursion, fixed it.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: Installation, Setup & Upgrades, Connectivity: ODBC / JDBC / .NET, Security, Permissions & Auditing
Hi, I cannot connect to a newly installed Informix Server on Centos 7.1. My Informix version is 12.10.FC6TL It just won't login. I'm pretty sure that I'm throwing the correct credentials. My error is JDBC URL: jdbc:informix-sqli://192.168.206.141:12191/testdatabase:INFORMIXSERVER=ol_inform ix1210 Incorrect password or user com.informix.asf.IfxASFRemoteException: informix@192.168.206.1 is not known on the database server. Keeps on throwing this that is not known. 192.168.206.1 is the client IP and 192.168.206.141 Can anyone help me out on this ? I'm really stuck. Is there any configuration I need to do to allow remote access ? Thank you,
141 is the IP of the informix virtual machine.
Your login did not include password credentials so you are depending on a
trusted host relationship. Make sure that user informix is trusted on
192.168.206.141
from 192.168.206.1 with an entry in one of:
- /etc/hosts.equiv
- ~informix/.rhosts
- the file listed in the REMOTE_SERVER_CFG ONCONFIG parameter
Art
Art S. Kagel, President and Principal Consultant
ASK Database Management
www.askdbmgt.com
Blog: http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on the IIUG, nor any other organization with which I am
associated either explicitly, implicitly, or by inference. Neither do
those opinions reflect those of other individuals affiliated with any
entity with which I am affiliated nor those of the entities themselves.
On Fri, Sep 16, 2016 at 5:56 AM, NATYURAL HORACIO <
horacio.natyural@gmail.com> wrote:
> Hi,
>
> I cannot connect to a newly installed Informix Server on Centos 7.1.
> My Informix version is 12.10.FC6TL
>
> It just won't login.
> I'm pretty sure that I'm throwing the correct credentials.
>
> My error is
>
> JDBC URL:
>
> jdbc:informix-sqli://192.168.206.141:12191/testdatabase:
> INFORMIXSERVER=ol_informix1210>
> Incorrect password or user
> com.informix.asf.IfxASFRemoteException: informix@192.168.206.1
> is not known on the database server.
>
> Keeps on throwing this that is not known.
>
> 192.168.206.1 is the client IP and
> 192.168.206.141
>
> Can anyone help me out on this ? I'm really stuck.
>
> Is there any configuration I need to do to allow remote access ?
>
> Thank you,
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--047d7b5d3e0c2bb9e7053c9d917b
did you setup a .rhosts file in the home directory of the user? or a global one. On Sep 16, 2016 4:57 AM, NATYURAL HORACIO <horacio.natyural@gmail.com> wrote: Hi, I cannot connect to a newly installed Informix Server on Centos 7.1. My Informix version is 12.10.FC6TL It just won't login. I'm pretty sure that I'm throwing the correct credentials. My error is JDBC URL: jdbc:informix-sqli://192.168.206.141:12191/testdatabase:INFORMIXSERVER=ol_inform ix1210 Incorrect password or user com.informix.asf.IfxASFRemoteException: informix@192.168.206.1 is not known on the database server. Keeps on throwing this that is not known. 192.168.206.1 is the client IP and 192.168.206.141 Can anyone help me out on this ? I'm really stuck. Is there any configuration I need to do to allow remote access ? Thank you, ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.
I would use $INFORMIXDIR/etc/hosts.equiv Cheers Paul -----Original Message----- From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of Jim Goldrick Sent: Friday, September 16, 2016 6:19 AM To: ids@iiug.org Subject: Re: Cannot Connect To Newly Installed Informix [37818] did you setup a .rhosts file in the home directory of the user? or a global one. On Sep 16, 2016 4:57 AM, NATYURAL HORACIO <horacio.natyural@gmail.com> wrote: Hi, I cannot connect to a newly installed Informix Server on Centos 7.1. My Informix version is 12.10.FC6TL It just won't login. I'm pretty sure that I'm throwing the correct credentials. My error is JDBC URL: jdbc:informix-sqli://192.168.206.141:12191/testdatabase:INFORMIXSERVER=ol_in formix1210 Incorrect password or user com.informix.asf.IfxASFRemoteException: informix@192.168.206.1 is not known on the database server. Keeps on throwing this that is not known. 192.168.206.1 is the client IP and 192.168.206.141 Can anyone help me out on this ? I'm really stuck. Is there any configuration I need to do to allow remote access ? Thank you, **************************************************************************** *** Forum Note: Use "Reply" to post a response in the discussion forum. **************************************************************************** *** Forum Note: Use "Reply" to post a response in the discussion forum.
> I'm pretty sure that I'm throwing the correct credentials.=20 Where/how - can you elaborate? Impression is you want an authenticated connection rather than a trusted=20 one? Andreas From: "NATYURAL HORACIO" <horacio.natyural@gmail.com> To: ids@iiug.org Date: 16.09.2016 11:57 Subject: Cannot Connect To Newly Installed Informix [37815] Sent by: ids-bounces@iiug.org Hi,=20 I cannot connect to a newly installed Informix Server on Centos 7.1.=20 My Informix version is 12.10.FC6TL=20 It just won't login.=20 I'm pretty sure that I'm throwing the correct credentials.=20 My error is=20 JDBC URL:=20 jdbc:informix-sqli://192.168.206.141:12191/testdatabase:INFORMIXSERVER=3Dol= =5Finformix1210=20 Incorrect password or user=20 com.informix.asf.IfxASFRemoteException: informix@192.168.206.1=20 is not known on the database server.=20 Keeps on throwing this that is not known.=20 192.168.206.1 is the client IP and=20 192.168.206.141=20 Can anyone help me out on this ? I'm really stuck.=20 Is there any configuration I need to do to allow remote access ?=20 Thank you,=20 ***************************************************************************= ****=20 Forum Note: Use "Reply" to post a response in the discussion forum.=20
Is that the real URL you're using?
Without the user property, it will try to connect using the same user which
is running the client application.
In that case we need to get the error from the database server log.
For security reasons, the real reason is not shown on the client side. In
theory you should be having one of two errors (again, on the satabase
server log):
-951 The user does not exist
-956 The user is not trusted
Each error will have a different path for solution...
Please confirm you don't intend to use USER/PASSORD, and if that's the
case, pos the database server log message.
Regards.
On Fri, Sep 16, 2016 at 10:56 AM, NATYURAL HORACIO <
horacio.natyural@gmail.com> wrote:
> Hi,
>
> I cannot connect to a newly installed Informix Server on Centos 7.1.
> My Informix version is 12.10.FC6TL
>
> It just won't login.
> I'm pretty sure that I'm throwing the correct credentials.
>
> My error is
>
> JDBC URL:
>
> jdbc:informix-sqli://192.168.206.141:12191/testdatabase:
> INFORMIXSERVER=ol_informix1210>
> Incorrect password or user
> com.informix.asf.IfxASFRemoteException: informix@192.168.206.1
> is not known on the database server.
>
> Keeps on throwing this that is not known.
>
> 192.168.206.1 is the client IP and
> 192.168.206.141
>
> Can anyone help me out on this ? I'm really stuck.
>
> Is there any configuration I need to do to allow remote access ?
>
> Thank you,
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
--001a11c14cbe853692053ca03d64
Hi Everyone, I managed to find the problem out. The problem was caused by me changing the parent directories permissions. During installation, it mentions that the directory should be 755 . This is the parent folder of the informix installation folder. So I chmod everything recursively, however, it results to this problem. So the real issue was wrong permissions on the file system. To fix, I just chunks the parent folder without recursion. Everything is now working. Thank you all!
In other words, your oninit lost the setuid permission and was not able to
retrieve the user details? Common issue.
On Fri, Sep 16, 2016 at 2:54 PM, NATYURAL HORACIO <
horacio.natyural@gmail.com> wrote:
> Hi Everyone,
>
> I managed to find the problem out. The problem was caused by me changing
> the
> parent directories permissions. During installation, it mentions that the
> directory should be 755 . This is the parent folder of the informix
> installation folder.
>
> So I chmod everything recursively, however, it results to this problem. So
> the
> real issue was wrong permissions on the file system. To fix, I just chunks
> the
> parent folder without recursion.
>
> Everything is now working.
>
> Thank you all!
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
--001a1144130cb244c4053ca061e7