LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2024, 01:08 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Rep: Reputation: Disabled
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?

Last edited by newbiesforever; 02-24-2024 at 01:09 PM. Reason: removed typo in title
 
Old 02-24-2024, 01:28 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
There are changes I might make in the sudoers.d file system, but that one I would put in the main file.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 15.0 (64 bit Ed.) [sudo worked without the user than ran sudo being in the sudoers file]. 1483_fourteeneightythree Slackware 7 06-05-2022 05:10 AM
[SOLVED] [sudoers]How-to edit '/etc/sudoers'? anon093 Linux - Security 3 01-02-2021 01:51 PM
deny sudo -s/ sudo -i command in linux with /etc/sudoers gbcbooks Linux - Security 35 02-18-2017 10:28 PM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 06:19 PM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration