FreeTAKTeam / FreeTAKHub-Installation

FreeTAKHub-Installation
Eclipse Public License 2.0
33 stars 29 forks source link

script fails to set passwordless #13

Closed pinztrek closed 1 year ago

pinztrek commented 2 years ago

typo in script, line 10, the echo should not have a colon

echo: 'Add passwordless Terraform and Ansible execution for the current user' scripts/setup-Ansible.sh: line 10: echo:: command not found ++ LINE='ubuntu ALL=(ALL) NOPASSWD:/usr/bin/ansible-playbook,/usr/bin/terraform' ++ FILE=/etc/sudoers.d/dont-prompt-ubuntu-for-sudo-password ++ grep -qF -- 'ubuntu ALL=(ALL) NOPASSWD:/usr/bin/ansible-playbook,/usr/bin/terraform' /etc/sudoers.d/dont-prompt-ubuntu-for-sudo-password grep: /etc/sudoers.d/dont-prompt-ubuntu-for-sudo-password: Permission denied ++ echo 'ubuntu ALL=(ALL) NOPASSWD:/usr/bin/ansible-playbook,/usr/bin/terraform' scripts/setup-Ansible.sh: line 14: /etc/sudoers.d/dont-prompt-ubuntu-for-sudo-password: Permission denied ++ set +x

Even with the typo corrected the script does not create passwdless login. appears not to copy the file.

The final error is because the file does not exist

WaaromZoMoeilijk commented 2 years ago

How are you running this command, as what user with which permissions?

brothercorvo commented 1 year ago

@HeroesLament can we reproduce this?

HeroesLament commented 1 year ago

I have seen this before when trying to execute the ZTI in a Ubuntu container build, because the container has no need for the sudo package or the sudoers file. Pinztrek, was this seen during a container build process?

On Thu, Oct 13, 2022 at 7:48 AM Corvo @.***> wrote:

@HeroesLament https://github.com/HeroesLament can we reproduce this?

— Reply to this email directly, view it on GitHub https://github.com/FreeTAKTeam/FreeTAKHub-Installation/issues/13#issuecomment-1277556436, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHCNPRJDSCFBNJBMZUONTWDAAIFANCNFSM5MBQZSYQ . You are receiving this because you were mentioned.Message ID: @.***>