Change sudo timeout under fish

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.


This way sudo will never ever ask you for password

as the default user is member of admin group , my user name is "one"

id one
uid=1000(one) gid=1000(one) groups=1000(one),4(adm),20(dialout),24(cdrom),46(plugdev),116(lpadmin),118(admin),124(sambashare),125(debian-tor)

sudo visudo & add the NOPASSWD %admin

Members of the admin group may gain root privileges
%admin ALL=(ALL)NOPASSWD: ALL

Then press “ctrl+x” and then press “y” and to finish press enter.


By default sudo remembers your password for 15 minutes. If you want to change that you can do so by

sudo visudo

timestamp_timeout=X

where X is the timeout expiration in minutes. If you specify 0 you will always be asked the password. If you specify a negative value, the timeout will never expire. E.g. Defaults env_reset,timestamp_timeout=5

                                                                                    RootSudoTimeout