Ansible troubleshooting - missing sudo password and incorrect sudo password

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 19

  • @sumanthparakala2005
    @sumanthparakala2005 Рік тому +2

    this exposes the system. devops can become root anytime, not just while playboo excecution

  • @christiand2426
    @christiand2426 Рік тому +3

    But this isnt a fix? Its just downgrading my security to allow the other user to run any command?

  • @moscow8881
    @moscow8881 Рік тому +2

    Thank you comrade. You helped me a lot!

  • @MrHmm-cv6gs
    @MrHmm-cv6gs 2 роки тому +1

    Thank you so much, subscribed your channel

    • @BertonLuca
      @BertonLuca  2 роки тому +1

      Welcome! Enjoy the Xmas period 😀 and automate more!

  • @ivanaevsky
    @ivanaevsky Рік тому

    Thank you! Subscribed

  • @HarshaVardhan-mr2bw
    @HarshaVardhan-mr2bw Рік тому

    Thank you so much stuck for hours in this.

  • @nikhilnambiar3107
    @nikhilnambiar3107 Рік тому

    thank you

  • @rehannadeem2231
    @rehannadeem2231 Рік тому

    amazing. thanks for sharing, i was stuck in this issue.

    • @BertonLuca
      @BertonLuca  Рік тому

      Glad it helped! Ansible issues are complicated sometimes

  • @hank61517
    @hank61517 2 роки тому

    sir,I want ask the last command isn't need -bK?
    because I add my client user in sudoers.d ,and try sudo is ok
    but,in the control mode , when I use command with out -bK,also have the ”Missing sudo password”

    • @BertonLuca
      @BertonLuca  2 роки тому +1

      Hello, thank you for your question.
      In my session I'm assuming default ansible.cfg configuration file. You could control the privilege escalation in your playbook with some statement "become", "become_user", "become_method", and "become_flags" or via command-line. You seems more interested in the command line options so I'd recommend to take a look at the following documentation:
      docs.ansible.com/ansible/latest/user_guide/become.html#become-command-line-options
      As you could see there are a lot of different combination for privilege escalation methods and parameters.
      I hope you're successful in your journey.
      Subscribe to channel for more IT adventures ;-)
      Luca

    • @hank61517
      @hank61517 2 роки тому

      @@BertonLuca thank you for help, i found the question, just because my client node's sudoer.d is not work, and then i retype sudoer.d, it's ok

  • @ИсмаилК-р2е
    @ИсмаилК-р2е Рік тому

    здравствуйте, модуль ansible.builtin.fetch не может скачать файл если не дать полные права. А какие права дать пользователю чтобы можно было скачать файлы с удаленного сервера. не давая все прав

  • @dmitriyrusakov9690
    @dmitriyrusakov9690 2 роки тому

    Thank you! you just helped me

    • @BertonLuca
      @BertonLuca  2 роки тому

      I'm so glad! Thank you for sharing your experience. Have a great weekend ;-)

  • @pelama
    @pelama Рік тому

    you should only use visudo to create a sudoers file!

  • @RECEPDEMİR-j8f
    @RECEPDEMİR-j8f Рік тому

    Thank you so much su root
    I thought you were working