diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-04-04 14:10:56 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-04-04 14:47:47 +0000 |
commit | a1ffb5e73760e0caaca2deb8fc5a18840f968f1c (patch) | |
tree | 45b36bc836b14eef4b365700fc494d2514f7cf90 /data | |
parent | 94b65bb3936b607a6bc85fe23176ff855c722519 (diff) | |
download | vyos-1x-a1ffb5e73760e0caaca2deb8fc5a18840f968f1c.tar.gz vyos-1x-a1ffb5e73760e0caaca2deb8fc5a18840f968f1c.zip |
T5145: Add maximum number of all logins on system
maxsyslogins
maximum number of all logins on system; user is not
allowed to log-in if total number of all user logins is
greater than specified number (this limit does not apply
to user with uid=0)
set system login max-login-session 2
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/login/limits.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/login/limits.j2 b/data/templates/login/limits.j2 new file mode 100644 index 000000000..5e2c11f35 --- /dev/null +++ b/data/templates/login/limits.j2 @@ -0,0 +1,5 @@ +# Generated by /usr/libexec/vyos/conf_mode/system-login.py + +{% if max_login_session is vyos_defined %} +* - maxsyslogins {{ max_login_session }} +{% endif %} |