How do i make my sudo timout shorter?
Another family member knows how to use linux and i dont want him sudo-ing my system after i have used sudo shortly before.
Thanks
How do i make my sudo timout shorter?
Another family member knows how to use linux and i dont want him sudo-ing my system after i have used sudo shortly before.
Thanks
Last edited by skymera; April 23rd, 2008 at 03:21 PM.
Easy enough. Default is 15 minutes.
http://ubuntuforums.org/showthread.p...697#post116697
That default is wayyy to big.
15 mins is a long time.
Crazy, i had it at 2mins in 7.10
*Thanks for the link bro.
Ok i see now default line =S
Thats all i haveCode:# /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. # Defaults env_reset # Uncomment to allow members of group sudo to not need a password # %sudo ALL=NOPASSWD: ALL # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL "/etc/sudoers.tmp" 23 lines, 470 characters
http://sudo.rtin.bz/sudo/man/sudoers.html
Edit the file with visudotimestamp_timeout
Number of minutes that can elapse before sudo will ask for a passwd again. The default is 5. 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.
To the defaults line, add :Code:sudo visudo
Like this :Code:timestamp_timeout=2
Defaults env_reset,timestamp_timeout=2
There are two mistakes one can make along the road to truth...not going all the way, and not starting.
--Prince Gautama Siddharta
#ubuntuforums web interface
Create a separate user account for that family member?
Thanks.
I edited it with nano instead.
Vim is useless.
Thanks lads.
er...sudoers file must be edited with vi, to avoid breakage. vi is far from useless. One must know a few basic commands in order to use the program, however.
I followed this
So it's fine.Code:sudo EDITOR=/usr/bin/nano visudo
Bookmarks