Tags » Sudo

How to make your sudo session last longer (Artix, Obarun, and others)

This is generally an Arch safety default for sudo to expire after 5′, while other distributions allow it to be in effect longer/.

The modification you can make can be in /etc/sudoers by adding a line as: 151 more words


Provide password for running a script inside another script as different user

Imagine you run script as user A: sudo -u A ./script.sh
Inside that script.sh we have a line that calls another script script2.sh with a different user B: … 163 more words


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 more words
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 more words