Tag » Sudo

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

Replace Defaults requiretty by Defaults !requiretty in your /etc/sudoers. This will impact your global sudo configuration.

How to fix 'sudo: no tty present and no askpass program specified' error?

  1. Use NOPASSWD line for all commands, I mean:
    jenkins ALL=(ALL) NOPASSWD: ALL
  2. Put the line after all other lines in the sudoers file.

How to add a sudo user in Linux or Centos?

Adding a new sudo user in Linux or Centos?
1.  Sign in as a root user in order to add a sudo user to your system. 281 kata lagi
Linux Commands

Enabling Nutanix "Stargate" I/O statistics page access with allssh command, AOS 5.5 edition

Finally got my hands on AOS 5.5 and upgraded our lab Nutanix cluster to this version.

In my earlier post I described how to manipulate “iptables” rules to allow access to “Stargate” or “port 2009” pages. 247 kata lagi


Git from source, no sudo

Need to update an old Git on RHEL 6.x without sudo, here are the instructions. Testing on CentOS VM.  Assume some old versions of the dependencies have already been installed on the target system.  102 kata lagi


Having sudo insult you

To change sudo setting you have to use the visudo command.

If you are not too comfortable with vi to edit files like me you may want to invoke visudo with nano. 106 kata lagi