Can you try: 'sh -c "/bin/sudo -S /bin/systemctl restart elasticsearch"'
Or perhaps without the single quotes, as well.
-- Sent from the Delta quadrant using Borg technology!
Nux! www.nux.ro
----- Original Message -----
From: "Tim Dunphy" bluethundr@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Saturday, 31 October, 2015 23:16:57 Subject: Re: [CentOS] use pssh to restart a service
What does the sudo log say?
This is all the secure logs say about the ssh session:
[root@logs:~] #tail -f /var/log/secure Oct 31 19:15:20 logs sshd[24407]: Accepted publickey for bluethundr from 47.18.111.100 port 47469 ssh2: RSA ae:62:1f:de:54:89:af:2c:10:16:0e:fd:8d:7e:81:06 Oct 31 19:15:21 logs sshd[24407]: pam_unix(sshd:session): session opened for user bluethundr by (uid=0) Oct 31 19:15:21 logs sshd[24410]: Received disconnect from 47.18.111.100: 11: disconnected by user Oct 31 19:15:21 logs sshd[24407]: pam_unix(sshd:session): session closed for user bluethundr
No change in the logs after making the suggested change to disable tty:
[root@logs:~] #cat /etc/sudoers.d/bluethundr Defaults:myuser !requiretty, visiblepw
Got the same exact message!
Anything else I can try?
Thanks
On Sat, Oct 31, 2015 at 5:34 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
On 10/31/2015 02:04 PM, Tim Dunphy wrote:
pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
The default configuration prohibits use if input echo can't be disabled. That means no "-S".
I modify that for users where necessary:
/etc/sudoers.d/myuser: Defaults:myuser !requiretty, visiblepw
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
-- GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos