-1

尝试安装 oracle 代理时出现以下错误!

May 28 18:21:18 fgv246 sshd[23880]: Accepted publickey for em12c-srvc from 10.xxxxxxx port 16263 ssh2
May 28 18:21:18 fgv246 sshd[23880]: Accepted publickey for em12c-srvc from 10.xxxxxxx port 16263 ssh2
May 28 18:21:18 fgv246 sshd[23880]: pam_unix(sshd:session): session opened for user em12c-srvc by (uid=0)
May 28 18:21:18 fgv246 sshd[23880]: pam_unix(sshd:session): session opened for user em12c-srvc by (uid=0)
May 28 18:21:18 fgv246 sudo: em12c-srvc : sorry, you must have a tty to run sudo ; TTY=unknown ; PWD=/home/em12c-srvc ; USER=em12c-srvc ; COMMAND=/bin/sh -c id
May 28 18:21:18 fgv246 sudo: em12c-srvc : sorry, you must have a tty to run sudo ; TTY=unknown ; PWD=/home/em12c-srvc ; USER=em12c-srvc ; COMMAND=/bin/sh -c id
4

2 回答 2

0

问题是 tty 是必需的。所以围绕它的一个黑客是:

作为根:

 ./install.sh -u 
  visudo /etc/sudoers 
  comment out: #Default requiretty
   And reinstall (./install.sh)

你不必使用 vim,但你明白了。安装后取消注释该行

于 2013-05-28T22:09:21.570 回答
0

你必须改变环境变量TTY,我想像TTY=/dev/tty0

于 2013-05-28T22:10:22.573 回答