Skip to content

Sudo in edera installer script fails if passwordless sudo is not set up #32

Description

@mdwyer-edera

ssh $SSH_OPTS "${SSH_USER}@${INSTALLER_IP}" 'chmod +x ~/edera-install.sh && sudo ~/edera-install.sh'

The Edera installer script expects to ssh to a host as root by default. Your OS might not support ssh in as root at all, in which case you're dead in the water anyway. (ssh config #PermitRootLogin prohibit-password works.)

However, if you provide an argument through the environment variable SSH_USER= it will try to sudo to root from this account. If that sudo is configured to require a password, then the installer quits:

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

ec2 probably doesn't have this problem because the ec2-user is not expected to even know their password -- everything is via the ssh key. But bare-metal ubuntu seems to be configured with the user account requiring a password to be set and sudo requiring password.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions