我在尝试安装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
答案 0 :(得分:0)
问题是需要tty。因此,围绕它的黑客是:
以root身份:
./install.sh -u
visudo /etc/sudoers
comment out: #Default requiretty
And reinstall (./install.sh)
你不必使用vim,但你明白了。安装后取消注释行
答案 1 :(得分:0)
你必须改变环境变量TTY,我想像TTY = / dev / tty0