小编And*_*sta的帖子

Jenkins sudo:没有tty存在,也没有使用NOPASSWD指定的askpass程序

我花了几天时间设置文件/etc/sudoers,以便能够向用户授予root权限jenkins.我在我的服务器上安装了Jenkins,因为我主持了几个项目,包括symfony,ionic,neo4j等等......问题是我无法用离子构建项目,我得到这个错误:sudo: no tty present and no askpass program specified.这是我/的内容etc/sudoers文件:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User …
Run Code Online (Sandbox Code Playgroud)

debian sudo tty sudoers jenkins

18
推荐指数
2
解决办法
5万
查看次数

标签 统计

debian ×1

jenkins ×1

sudo ×1

sudoers ×1

tty ×1