我的python脚本os.system('sudo docker-compose up -d nginx')
[size=17.0667px]报错sudo: no tty present and no askpass program specified[size=17.0667px]
[size=17.0667px]我修改了/etc/sudoer[size=17.0667px]# User privilege specificationroot ALL=(ALL:ALL) ALLguoweibo ALL=(ALL) NOPASSWD:ALL# Allow members of group sudo to execute any command%sudo ALL=(ALL:ALL) ALL[size=17.0667px]
[size=17.0667px]报错sudo: no tty present and no askpass program specified[size=17.0667px]
[size=17.0667px]我修改了/etc/sudoer[size=17.0667px]# User privilege specificationroot ALL=(ALL:ALL) ALLguoweibo ALL=(ALL) NOPASSWD:ALL# Allow members of group sudo to execute any command%sudo ALL=(ALL:ALL) ALL[size=17.0667px]
[size=17.0667px]依然报错,想问下大牛怎么解决啊
[size=17.0667px]
[size=17.0667px]