Sudo: sorry, you must have a tty to run sudo

sudo: sorry, you must have a tty to run sudo это достаточно распространенная ошибка, если вы пытаетесь выполнить команду в скрипте от другого пользователя при помощи sudo.

Дело в том, что по умолчанию, sudo, может быть запущен только если пользователь был залогинен с реальным tty. Для того, что бы исправить положение, достаточно отредактировать ваш файл /etc/sudoers и закоментировать строку Default requiretty:

#Default requiretty

Sudo: sorry, you must have a tty to run sudo

5 мыслей о “Sudo: sorry, you must have a tty to run sudo

  • 12.03.2024 в 11:08
    Permalink

    Wow, superb blog format! How lengthy have you been running a blog
    for? you made blogging glance easy. The total look of your site is great, let alone the content material!
    You can see similar here e-commerce

  • 13.03.2024 в 00:55
    Permalink

    Wow, this article is fastidious, my sister is analyzing such things, thus I am going to convey her.
    I saw similar here: Dobry sklep

  • 14.03.2024 в 20:45
    Permalink

    Heya i’m for the first time here. I found this board and I in finding
    It truly helpful & it helped me out a lot. I am hoping to
    present one thing back and aid others such as you helped me.

    I saw similar here: Najlepszy sklep

  • 16.04.2024 в 01:58
    Permalink

    Wow, superb blog structure! How long have you been running a blog for?
    you made running a blog look easy. The whole glance of your web site
    is fantastic, let alone the content! You can see similar here sklep internetowy

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *