Linux: command: mesg:cannot open /dev/pts/0: Permission denied

https://bugzilla.redhat.com/show_bug.cgi?id=2053536
在RHEL8.7 有一个问题,当从root切到其他用户的时候,如果想要的bash脚本里如果有“mesg n|y”的命令的时候,可能出现错误:mesg: cannot open /dev/pts/0: Permission denied
这个问题在util-linux 2.37 上面也就是RHEL9上会解决。
“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.”

你可能感兴趣的:(笔记,linux,运维,服务器,mesg,permission)