Page MenuHomeVyOS Platform

Add maxsyslogins maximum number of all logins on system
Closed, ResolvedPublicFEATURE REQUEST

Description

Add maximum number of all logins on system

https://www.man7.org/linux/man-pages/man5/limits.conf.5.html

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)

Proposed CLI

set system login max-login-session 2

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav changed the task status from Open to In progress.Apr 4 2023, 12:56 PM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/1939

set system login max-login-session '1'
set system login timeout '600'

the second ssh session expected There were too many logins for 'vyos'

$ ssh vyos@192.168.122.14
Warning: Permanently added '192.168.122.14' (ECDSA) to the list of known hosts.
Welcome to VyOS!

Check out project news at https://blog.vyos.io
and feel free to report bugs at https://vyos.dev

You can change this banner using "set system login banner post-login" command.

VyOS is a free software distribution that includes multiple components,
you can check individual component licenses under /usr/share/doc/*/copyright
There were too many logins for 'vyos'.
Last login: Tue Apr  4 17:08:10 2023 from 192.168.122.1
Connection to 192.168.122.14 closed.
Viacheslav changed the task status from In progress to Needs testing.Apr 4 2023, 5:30 PM
Viacheslav moved this task from Open to Finished on the VyOS 1.4 Sagitta board.