diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-27 11:32:42 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-28 13:21:18 +0000 |
commit | ee2dc735e02930ac46c6ccc96dc5486ab96179e5 (patch) | |
tree | 129263100c11e8cd35b87c403311203329887cd0 /interface-definitions/system-login.xml.in | |
parent | 5fe0e9c163ee2f8229e298fc20dbfe6746c2cdcc (diff) | |
download | vyos-1x-ee2dc735e02930ac46c6ccc96dc5486ab96179e5.tar.gz vyos-1x-ee2dc735e02930ac46c6ccc96dc5486ab96179e5.zip |
login: T4715: Auto logout user after inactivity
Ability to terminate interactive sessions (TTY/PTS) after a period
of inactivity.
set system login timeout '300'
Diffstat (limited to 'interface-definitions/system-login.xml.in')
-rw-r--r-- | interface-definitions/system-login.xml.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in index 24eeee355..d189be3f8 100644 --- a/interface-definitions/system-login.xml.in +++ b/interface-definitions/system-login.xml.in @@ -151,6 +151,19 @@ #include <include/interface/vrf.xml.i> </children> </node> + <leafNode name="timeout"> + <properties> + <help>Session timeout</help> + <valueHelp> + <format>u32:5-604800</format> + <description>Session timeout in seconds</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 5-604800"/> + </constraint> + <constraintErrorMessage>Timeout must be between 5 and 604800 seconds</constraintErrorMessage> + </properties> + </leafNode> </children> </node> </children> |