User Tools

Site Tools


linux:sysadmin:cmd:sudo

sudo

Configuring sudo timeout

To specify the time you have to reauthenticate with sudo use visudo and change the parameter timestamp_timeout:

# sudoers file.
 
# User alias specification
User_Alias      ADMINS = nttuser,custuser,tel-dns
 
# Cmnd alias specification
 
# Defaults specification
Defaults        shell_noargs
Defaults        authenticate
Defaults        timestamp_timeout=10
Defaults        log_host
 
# User privilege specification
root            ALL=(ALL) ALL
ADMINS          ALL= (ALL) ALL
/srv/wiki.niwos.com/data/pages/linux/sysadmin/cmd/sudo.txt · Last modified: 2009/08/15 12:14 (external edit)