- 论坛徽章:
- 0
|
我用其他用户登录,查看etc/default/login的信息如下:\r\n ident \"@(#)login.dfl 1.13 03/01/10 SMI\"\r\n#\r\n# Copyright 1989-2002 Sun Microsystems, Inc. All rights reserved.\r\n# Use is subject to license terms.\r\n#\r\n\r\n# Set the TZ environment variable of the shell.\r\n#\r\n#TIMEZONE=EST5EDT\r\n\r\n# ULIMIT sets the file size limit for the login. Units are disk blocks.\r\n# The default of zero means no limit.\r\n#\r\n#ULIMIT=0\r\n\r\n# If CONSOLE is set, root can only login on that device.\r\n# Comment this line out to allow remote login by root.\r\n#\r\n#CONSOLE=/dev/console\r\n\r\n# PASSREQ determines if login requires a password.\r\n#\r\nPASSREQ=YES\r\n\r\n# ALTSHELL determines if the SHELL environment variable should be set\r\n#\r\nALTSHELL=YES\r\n\r\n# PATH sets the initial shell PATH variable\r\n#\r\n#PATH=/usr/bin:\r\n\r\n# SUPATH sets the initial shell PATH variable for root\r\n#\r\n#SUPATH=/usr/sbin:/usr/bin\r\n\r\n# TIMEOUT sets the number of seconds (between 0 and 900) to wait before\r\n# abandoning a login session.\r\n# \r\n#TIMEOUT=300\r\n\r\n# UMASK sets the initial shell file creation mode mask. See umask(1).\r\n#\r\n#UMASK=022\r\n\r\n# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used\r\n# to log all root logins at level LOG_NOTICE and multiple failed login\r\n# attempts at LOG_CRIT.\r\n#\r\nSYSLOG=YES\r\n\r\n# SLEEPTIME controls the number of seconds that the command should\r\n# wait before printing the \"login incorrect\" message when a\r\n# bad password is provided. The range is limited from\r\n# 0 to 5 seconds.\r\n#\r\n#SLEEPTIME=4\r\n\r\n# DISABLETIME If present, and greater than zero, the number of seconds\r\n# login will wait after RETRIES failed attempts or the PAM framework returns \r\n# PAM_ABORT. Default is 20. Minimum is 0. No maximum is imposed.\r\n# \r\n#DISABLETIME=20\r\n\r\n# RETRIES determines the number of failed logins that will be\r\n# allowed before login exits.\r\n#\r\n#RETRIES=5\r\n#\r\n# The SYSLOG_FAILED_LOGINS variable is used to determine how many failed\r\n# login attempts will be allowed by the system before a failed login\r\n# message is logged, using the syslog(3) LOG_NOTICE facility. For example,\r\n# if the variable is set to 0, login will log -all- failed login attempts.\r\n#\r\n#SYSLOG_FAILED_LOGINS=5 |
|