Re: /etc/init.d/opendkim fails to start opendkim when run over ssh with a pseudo-tty
On Mon, Apr 18, 2011 at 1:06 AM, Naresh V <nareshov_at_gmail.com> wrote:
> On 15 April 2011 22:32, Sam Umbach <sumbach_at_gmail.com> wrote:
>> $ ssh -T ubuntu_at_192.168.2.117 sudo /etc/init.d/opendkim restart
>>
> Does
>
> $ ssh -T ubuntu_at_192.168.2.117 sudo -tt /etc/init.d/opendkim restart
>
> work?
$ ssh -T ubuntu_at_192.168.2.117 sudo /etc/init.d/opendkim restart
This command works (without the -tt parameter to sudo), but it only
works if you have passwordless sudo (run as root or set NOPASSWD in
/etc/sudoers). In order to prompt for the sudo password over ssh, you
need to allocate a pty.
sm: yes a pty is allocated.
-Sam
Received on Mon Apr 18 2011 - 12:13:59 PST
This archive was generated by hypermail 2.3.0
: Mon Oct 29 2012 - 23:20:17 PST