Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 3115  / 2 Years ago, sat, november 5, 2022, 5:56:19

I want to change sudo timeout, so I edit sudoers via visudo (as adviced in many tutorials online) to the following form:



Defaults env_reset , timestamp_timeout=20
root ALL=(ALL:ALL) ALL
%admin ALL=(ALL) ALL
%sudo ALL=(ALL:ALL) ALL
Defaults:my_username timestamp_timeout=10


the problem is, that nothing works and it seems I have sudo timeout=0. This is my output from uname -a:



Linux comp 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


UPDATE



What I've noticed it's only happens when I use fish (aka user friendly shell). So problem probably with fish itself not with sudoers file.



SOLUTION
The problem was with my shell fish aka user friendly (not very friendly this time, isn't it?) shell. For some reason it seemed that sudo command each time went from different sessions.
Adding
Defaults !tty_tickets
in sudoers file (as described http://us.generation-nt.com/answer/bug-598567-sudo-requires-reauthentication-each-use-ignoring-time-stamp-help-200510161.html ) solved the problem. See the link above for the addition information.



Thank you all for your attention without it I could not figure the thing out.


More From » sudo

 Answers
0

The problem was with my shell fish aka user friendly (not very friendly this time, isn't it?) shell. For some reason it seemed that sudo command each time went from different sessions.
Adding



Defaults !tty_tickets


in sudoers file (as described http://us.generation-nt.com/answer/bug-598567-sudo-requires-reauthentication-each-use-ignoring-time-stamp-help-200510161.html ) solved the problem. See the link above for the addition information.



Thank you all for your attention without it I could not figure the thing out.


[#40243] Sunday, November 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
serveeel

Total Points: 347
Total Questions: 106
Total Answers: 117

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
;