Skip to content

clush: Interactive usage - sudo with password and requiretty #234

Closed
@hansfn

Description

@hansfn

Hi,

I have used polysh for several years while maintaining a small data center with CentOS servers. Today I switched to clustershell/clush, since I just started maintaining a tiny data center with Debian servers and polysh isn't packaged by Debian. clush seems to be a very good replacement, but I struggle with interactive usage and sudo with password when requiretty is enabled.

If I use

clush -o '-t -t' -w node[1-10]

the normal "sudo: no tty present and no askpass program specified" error is gone when I run "sudo date", but the password isn't captured if I enter it (and the password is displayed).

If I on the same setup use polysh

./polysh.py 'node<1-10>'

there is no problem with entering the password, and there is even a command ":hide_password" that stops the password from displaying.

Is there some way clush can handle this situation? If not, consider this a feature request. Maybe the code in polysh can be reused?

Added: Polysh 0.4, Clustershell 1.6

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions