Displaying 6 results from an estimated 6 matches for "visiblepw".
2015 Oct 31
3
use pssh to restart a service
...connect 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 at 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 at gmail.com>
wrote:
> On 10/31/2015 02:04 PM, Tim Dunphy wrote:
>
>> pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
&g...
2012 Jan 25
3
Having problems with sudoers
...un sudo".
I'm trying to enable the user "apache" to have the ability to run an
executable from a web page. One of the common solutions is to do the
following:
Defaults:apache !requiretty
apache ALL = NOPASSWD:/program.name
also tried:
Defaults !requiretty
Defaults visiblepw
Anyone have a suggestion? I've got to research the tty stuff for now to
ensure there is one available, but beyond that, I'm stumped.
Thanks for any help.
steve campbell
2015 Oct 31
4
use pssh to restart a service
Hi all,
I need to restart a service on a few elasticsearch nodes. I'm trying to do
it with pssh.
I'm getting this error when I try to do that:
pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
[1] 17:01:50 [FAILURE] bluethundr at es2.example.com Exited with error code 1
[2] 17:01:51 [FAILURE] bluethundr at es3.example.com Exited with error code 1
[3]
2015 Oct 31
0
use pssh to restart a service
...:
> 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
2015 Nov 02
0
use pssh to restart a service
...sh to get more information.
# cat /etc/sudoers.d/gordon
gordon ALL=(ALL) NOPASSWD: ALL
$ pssh -h t -i sudo echo true
[1] 16:02:12 [FAILURE] MYHOST Exited with error code 1
Stderr: sudo: sorry, you must have a tty to run sudo
# cat /etc/sudoers.d/gordon
Defaults:gordon !requiretty, visiblepw
gordon ALL=(ALL) NOPASSWD: ALL
$ pssh -h t -i sudo echo true
[1] 16:02:30 [SUCCESS] MYHOST
true
2015 Nov 02
2
use pssh to restart a service
...s.d/gordon
> gordon ALL=(ALL) NOPASSWD: ALL
>
> $ pssh -h t -i sudo echo true
> [1] 16:02:12 [FAILURE] MYHOST Exited with error code 1
> Stderr: sudo: sorry, you must have a tty to run sudo
>
>
>
> # cat /etc/sudoers.d/gordon
> Defaults:gordon !requiretty, visiblepw
> gordon ALL=(ALL) NOPASSWD: ALL
>
> $ pssh -h t -i sudo echo true
> [1] 16:02:30 [SUCCESS] MYHOST
> true
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos...