我看到这个问题已经发布并回答了。但是,帖子答案对我不起作用。发布的答案有2个解决方案:
1 - 以 root 身份运行 bashdb
this does not work for me because the script I am trying to debug must be run as mqm. This script exits when it sees that it is being run (via bashdb) as root.
2 - 将用户添加到 ls -l $(tty) 列出的组中
I ran this command and got:
mqm@localhost.localdomain(/var/mqm/scripts): ls -l $(tty) crw--w----. 1 根 tty 136,17 年 6 月 0 日 10:11 /dev/pts/0
I ran (as root) usermod -a -G root mqm
并验证根组包含 mqm - 然后以 mqm 身份登录,我重新运行
bashdb myscript 并再次收到此错误 /usr/share/bashdb/lib/setshow.sh: line 91: /dev/pts/0: Permission拒绝