About 50 results
Open links in new tab
  1. sudo - Why do we need to use visudo instead of directly modifying the ...

    visudo checks the file syntax before actually overwriting the sudoers file. If you use a plain editor, mess up the syntax, and save... sudo will (probably) stop working, and, since /etc/sudoers is only …

  2. sudo - How to set visudo to use a different editor than the default on ...

    Fedora 14 uses vi by default when one runs visudo. Is there a way to change this to something else?

  3. How will I run sudo visudo command in VM? - Unix & Linux Stack …

    Feb 2, 2023 · Try specifying the full path for the visudo command, i.e. sudo /usr/sbin/visudo. If that works, then probably the PATH environment variable for the command launched by sudo doesn't …

  4. shell - Why doesn't visudo, like sudoedit, spawn a text editor as a ...

    May 20, 2025 · If sudoedit can run a text editor with lesser privileges then why should visudo opt to run a text editor with root privileges. However the answer below is indeed convincing -- there is no point in …

  5. sudo visudo and still command is prompting for password

    Jan 27, 2025 · I am not having success using sudo visudo. I have read this article How to run a specific program as root without a password prompt? and this article sudo: password prompted even when …

  6. How to run a specific program as root without a password prompt?

    Feb 14, 2015 · If there are multiple matching entries in /etc/sudoers, sudo uses the last one. Therefore, if you can execute any command with a password prompt, and you want to be able to execute a …

  7. Programmatically use visudo to edit sudoers? - Unix & Linux Stack …

    It's perfectly fine to edit /etc/sudoers without using visudo. visudo is only there to guarantee exclusive access and check the syntax before committing to the actual file.

  8. This file must be edited with the 'visudo' command.? [duplicate]

    Mar 15, 2013 · Why it is recommended to edit /etc/sudoers file with the visudo command? Here is a sample of the file: ## Sudoers allows particular users to run various commands as ## the root user, …

  9. proper configuration of visudo NOPASSWD for bash backup script

    The abstract question is: If script x calls program y, do I need a NOPASSWD entry in /etc/sudoers for x, y or both x & y? (And can x then call sudo -v without a password?) Details: I'm tryin...

  10. Change default sudo password timeout - Unix & Linux Stack Exchange

    Jul 27, 2017 · 47 sudo visudo is to modify the default configuration file directly, but in the file has suggestion below Please consider adding local content in /etc/sudoers.d/ instead of directly …