2013-05-28 68 views
-1

我在嘗試安裝oracle代理時遇到以下錯誤!SSH錯誤任何想法?

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

問題是tty是必需的。所以,它周圍的黑客是:

以root身份:

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

你不必使用vim,但你的想法。安裝後取消註釋

+0

這樣做的竅門!但我仍然有疑問!我怎樣才能做到這一點只有一個用戶,而不是適用於所有的規則? –

+0

發現解決方案應該是這樣的:default:username!requiretty –

0

您必須更改環境變量TTY,我認爲像TTY =/dev/tty0

相關問題