服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. git linux sudo
  3. 如何通过修改/ etc / sudoers来允许git钩子使用sudo运行可执行文件
Intereting Posts
防止扩展:在batch filefor循环 如何将邮件从/ var / spool / mail / 移动到用户邮箱? 日志归档解决scheme 如何在Azure中configurationDNS(Azure外部)和Windows VM 没有www的域的SSL证书 木偶:获取用户主目录 无人参与grub-pc更新 使用域凭据访问本地主机上的资源 Apache 2.4和PHP 5.4在浏览器中获取连接重置错误 如何使用SquidcachingSSL数据 如何减lessrsync备份过程中的IO等待时间? 设备的linux状态/信息屏幕 在su之后审计auid变化 内核恐慌后自动重启 couchdb高偷时间和cpu 0和神秘高xmtin在TTY 0

如何通过修改/ etc / sudoers来允许git钩子使用sudo运行可执行文件

我正在使用git post-update挂钩通过sudo运行一个命令,而我得到这个错误: sudo: sorry, you must have a tty to run sudo 。 我相信我需要修改/etc/sudoers但我不知道该怎么做。 任何帮助,将不胜感激!

  • 基于github的php symfony部署?
  • jenkins(Windows服务)通过SSH与Git
  • 如何获得RHEL 6.2上的git-all元数据包
  • 使用非root用户将git repo部署到web根目录
  • 使用特定于主机的声明更改ssh ControlPath

如果你有线

 Defaults requiretty 

在你的sudoers文件中,注释掉它。

  • 使用git repo保持远程服务器的最新状态
  • 在盐命令的主人的名字
  • 中央服务器上的Git主存储库?
  • 点文件的git回购 – 克隆到homefolder
  • nginx http server_names_hash_bucket_size
  • 从debian wheezy backports安装git:无论如何,我看到旧的包版本
  • 这个bash提示符有什么问题?
  • configurationssh不会提示input密码
  • 如何跟踪服务器configuration:保持整个“/ etc”在git中
  • 敏感configuration文件的版本控制

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy