Re: using sudo command to connect to Db2 database in AIX 7.3

kousuke goto via sudo-users <[email protected]> Tue, 22 Jul 2025 09:58:27 +0000
Newsgroups gmane.comp.tools.sudo.user
Message-ID <CY8PR14MB6268D9FEDF4BF218DDFB18798E5CA@CY8PR14MB6268.namprd14.prod.outlook.com>
Thank you for the advices!

I added the "Defaults !use_pty" setting to a /etc/sudoers, and it worked!

I guess this was the root cause of this problem.
The sudo's internal structure has changed, so I had to put this option for sudo to run as same as the previous version.

Now, I can proceed forward.

Huge thanks to everyone who helped me solving this issue.

Best regards,
Kosuke Goto

________________________________
差出人: Todd C. Miller <[email protected]>
送信: 2025 年 7 月 17 日 (木曜日) 23:28
宛先: kousuke goto <[email protected]>
Cc: [email protected] <[email protected]>
件名: [EXTERNAL] Re: [sudo-users] using sudo command to connect to Db2 database in AIX 7.3

Without knowing anything about how db2 operates it is hard to suggest
anything.

One major change between those two sudo versions is that sudo now
runs the command in a pseudo-terminal by default.  You could try
disabling that to see if it makes a difference.  You can do this
with the following line in your /etc/sudoers file:

Defaults !use_pty

You should also compare the sudoers file on the working system with
sudoers on the upgraded one to see if the working configuration
preserves DB2-related environment variables that the new server
does not.  Specifically, check for lines starting with:

Defaults env_keep+=...

 - todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users