> sudo su - svc-mongo > Last login: Fri Jan 28 16:04:57 CST 2022 on pts/0 > mesg: cannot open /dev/pts/1: Permission denied I guess there is "mesg y" (or "mesg n") in the user's profile file. The bugfix in rhel-8.5 has fixed "mesg" (without any option). If you call "mesg y|n" then it needs to open and modify the terminal setting, but the terminal is still owned by the root user. This is impossible to fix. Example: # su - kzak Last login: Tue Feb 15 03:50:00 EST 2022 on pts/0 $ mesg is y $ mesg y mesg: cannot open /dev/pts/0: Permission denied $ rpm -qf /bin/mesg util-linux-2.32.1-32.el8.x86_64 This is expected behavior. Note that since util-linux v2.7 (RHEL-9) it will be possible to use "su --pty" to create a new terminal owned by the user.
Sorry for typo -- s/since util-linux v2.7/since util-linux v2.37/
*** Bug 2036583 has been marked as a duplicate of this bug. ***