db2 connect to sample user db2inst1 using password
I get the following message:
SQL1403N The username and/or password supplied is incorrect.
SQLSTATE=08004
I get this even though I know password is right because I used it to log in
as user db2inst1. I get the same message whether connecting from a
networked PC or from the local machine. Is there somewhere I can look to
see a log of why the user/password is being rejected? Thanks for any help.
Steve Childress
I have Db2 on linux installed (on another machine - I will try tomorrow -
getting a bit late here)
Richard
HTH
Check the ownership and permissions on ~/sqllib/security/db2ckpw for
db2inst1. They should be:
-rwsr-s--x 1 root build 15950 Jan 2 15:35 db2ckpw
(the "build" should be your default group.) If they are not correct,
do the following as root:
chown root db2ckpw
chmod ug+s db2ckpw
WW
--
Susan Williams
Technical Lead, DB2 on Linux
susa...@vnet.ibm.com
Thank you for the suggestion. I changed the permissions to the following
(it lacked the 'w' for owner and the 's' for group) :
$ ls -l db2ckpw
-rwsr-s--x 1 root db2iadm1 16053 Jan 6 20:49 db2ckpw
I also tried Wallendroad's suggestion of using db2iupdt, but all to no
avail. Here is what I get when logged on as user db2inst1:
$ db2 "connect to sample user db2inst1 using ibmdb2"
SQL1403N The username and/or password supplied is incorrect.
SQLSTATE=08004
The authentication is set to Server. I have tried setting it to
Server_Encrypt, but get the same result. I reinstalled DB2 using all the
default settings.
Any further help would be appreciated, since I am hoping to do most of my
programming on a remote computer, so I need to be able to connect.
Steve C.
<susa...@starhawk.torolab.ibm.com> wrote in message
news:a11uah$ftq$1...@starhawk.torolab.ibm.com...