search for: setup_user_limit

Displaying 1 result from an estimated 1 matches for "setup_user_limit".

Did you mean: setup_user_limits
2001 Feb 08
0
openssh2.3.0p1 and /etc/limits
...s the user who is currently trying to log in. + */ + + if (count > limit) { + printf("Too many logins (max %d).\n",count); + syslog(LOG_WARNING, "Too many logins (max %d) for %s\n",limit, name); + return LOGIN_ERROR_LOGIN; + } + + return 0; +} + +/* Function setup_user_limits - checks/set limits for the curent login + * Original idea from Joel Katz's lshell. Ported to shadow-login + * by Cristian Gafton - gafton at sorosis.ro + * + * We are passed a string of the form ('BASH' constants for ulimit) + * [Aa][Cc][Dd][Ff][Mm][Nn][Rr][Ss][Tt][Uu][Ll][Pp] + *...