in reply to DBD::DB2 connect cgi problem(maybe slightly OT)
Look at the documentation. Alternatively print out %ENV for both users and try to spot the difference.