/etc/default/login
TIMEOUT
... # TIMEOUT sets the number of seconds (between 0 and 900) to wait before # abandoning a login session. # #TIMEOUT=300 TIMEOUT=0 ...