summaryrefslogtreecommitdiff
path: root/data/templates/login
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-04-04 14:10:56 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-04-04 14:47:47 +0000
commita1ffb5e73760e0caaca2deb8fc5a18840f968f1c (patch)
tree45b36bc836b14eef4b365700fc494d2514f7cf90 /data/templates/login
parent94b65bb3936b607a6bc85fe23176ff855c722519 (diff)
downloadvyos-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/templates/login')
-rw-r--r--data/templates/login/limits.j25
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 %}