Created at:

Modified at:

Sudo Tips

Change $PATH for sudo

sudo doesn't use the user path, but a predefined path that includes common directories (/bin, /usr/bin, etc.). To change it, put the following line in the sudoers file::

    Defaults        secure_path=/your/secure:/path/list

[SOLVED] Editing sudoers - Linux Forums

Make sudo always ask for password

After executing a command with sudo, it doesn't ask for the password for a few minutes, if you use the same terminal. If you want to force sudo to always ask for a password, include it in the sudoers file::

    Defaults timestamp_timeout = 0