I would like to know if it is possible to lock the login screen after a certain number of unsuccessful attempts.
How can I unlock the login screen after a certain (predefined) amount of time?
How can I unlock it with fixed commands from tty immediately without any effect from 1.?
Note: I am using Ubuntu 14.04 and referred here but unfortunately had no success.
edit :
(gedit:5558): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:5558): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:5558): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:5558): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:5558): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported
(gedit:5558): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:5558): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:5558): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:5558): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
See the command pam_tally2 From the link:
The command
where {user} is a user will show how many failures have been logged.
The command
will reset the tally for {user}.
Alternative would be fail2ban but that needs installing. It is in USC so
sudo apt-get install fail2ban
will install it.