LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   using /etc/sudoers.d/ to change sudo time interval (https://www.linuxquestions.org/questions/linux-general-1/using-etc-sudoers-d-to-change-sudo-time-interval-4175734207/)

newbiesforever 02-24-2024 01:08 PM

using /etc/sudoers.d/ to change sudo time interval
 
I want to change my sudo time interval, so I looked up how. According to https://unix.stackexchange.com/quest...ssword-timeout, I'm supposed to add the following line to sudoers:
Code:

Defaults        timestamp_timeout=[time]
So I entered
Code:

sudo visudo
Then I noticed that the sudoers file says
Quote:

# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
Okay, so I went to /etc/sudoers.d. Which of those files do I need to add the line to? If I'm supposed to add the line to a new file, what should that be called?

wpeckham 02-24-2024 01:28 PM

There are changes I might make in the sudoers.d file system, but that one I would put in the main file.


All times are GMT -5. The time now is 03:08 AM.