[SOLVED] How in flinderation do you set teh terminal time out?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
How in flinderation do you set teh terminal time out?
There used to be a time out period, 15 minutes I think, and now when I am chrooting 6 or 7 systems I need to give a password for every one of them.
This gets old.
I am sure there is a way to do this.
Sudo visudo does not do it. It will Work until I reboot. When I run it again, the setting is the sames as I set it the last session. I need to redo it, exit and then put it back to where I want it again.
I figure I am doing it in the wrong place but can't figure it out and it is really getting on my thungas.
What the heck are you referring to by "terminal time out" ? "it" "it" "it" .. what time out are you talking about? The amount of idle time after which sudo will re-ask you for your password? The amount of idle time after which the shell will kick you out?
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Original Poster
Rep:
Quote:
Originally Posted by AlucardZero
What the heck are you referring to by "terminal time out" ? "it" "it" "it" .. what time out are you talking about? The amount of idle time after which sudo will re-ask you for your password? The amount of idle time after which the shell will kick you out?
That is an excelent question. Blame it on senility.
The password time out is what I really want to set.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Original Poster
Rep:
That could be the problem. Forget where I got the directions but it was some Ubuntu blog. Those have a history, in my mind anyway, of making things up as they go a long. I know that Grub2 would bother people a lot less if the ywould not follow the general blog directions.
I did follow them anyway, wondering about the resulting entry;
Code:
Defaults env_reset , timestamp_timeout=15
as it does have the env_reset instruction in there.
Having a dislike of crippling my system I was unwilling to remove that.
The behavior I get is that if I remove the timestamp part, save, reopen and put it back it works until reboot. What a shock.
I will give it a whack with your string. Might just work a lot better.
Thanks. I will post back tomorrow after I get back to this drive and it still works (or not from some other silly thing I have done).
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Original Poster
Rep:
Well, guess I will not wait til tomorrow. It will not take that entry, with or with out the , that is in there now. This is the entire file;
Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Default , timestamp_timeout=15
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
tom ALL=(ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
# includedir /etc/sudoers.d
and the resulting output;
Code:
>>> /etc/sudoers: syntax error near line 7 <<<
What now?
You would have to remove the comma, too. But don't remove env_reset.
Use:
Code:
Defaults env_reset
Defaults timestamp_timeout=-1
BTW, from man sudoers:
Code:
timestamp_timeout
Number of minutes that can elapse before sudo will ask for a passwd again.
The default is 15. Set this to 0 to always prompt for a password. If set
to a value less than 0 the user’s timestamp will never expire. This can
be used to allow users to create or delete their own timestamps via sudo
-v and sudo -k respectively.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Original Poster
Rep:
OK, OK, so I am too smart to follow directions.
Actually to chicken to follow directions.
Over on an Ubuntu test OS and just entered things as you laid it out. Seems to work fine.
Just don't want to screw my Debian install as it is being set up to be my secure business OS. The one I am using now will be the one I play with before doing anything to the secure one.
With the "=-1" what is the timeout set at or does it just not expire?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.