Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
     5         kx #
     5         kx # /etc/login.defs - Configuration control definitions for the shadow package.
     5         kx #
     5         kx #	$Id: login.defs 3038 2009-07-23 20:41:35Z nekral-guest $
     5         kx #
     5         kx 
     5         kx #
     5         kx # Delay in seconds before being allowed another attempt after a login failure
     5         kx #
     5         kx FAIL_DELAY		3
     5         kx 
     5         kx #
     5         kx # Enable display of unknown usernames when login failures are recorded.
     5         kx #
     5         kx LOG_UNKFAIL_ENAB	no
     5         kx 
     5         kx #
     5         kx # Enable logging of successful logins
     5         kx #
     5         kx LOG_OK_LOGINS		no
     5         kx 
     5         kx #
     5         kx # Enable "syslog" logging of su activity - in addition to sulog file logging.
     5         kx # SYSLOG_SG_ENAB does the same for newgrp and sg.
     5         kx #
     5         kx SYSLOG_SU_ENAB		yes
     5         kx SYSLOG_SG_ENAB		yes
     5         kx 
     5         kx #
     5         kx # If defined, either full pathname of a file containing device names or
     5         kx # a ":" delimited list of device names.  Root logins will be allowed only
     5         kx # upon these devices.
     5         kx #
     5         kx CONSOLE		/etc/securetty
     5         kx #CONSOLE	console:tty01:tty02:tty03:tty04
     5         kx 
     5         kx #
     5         kx # If defined, all su activity is logged to this file.
     5         kx #
     5         kx #SULOG_FILE	/var/log/sulog
     5         kx 
     5         kx #
     5         kx # If defined, file which maps tty line to TERM environment parameter.
     5         kx # Each line of the file is in a format something like "vt100  tty01".
     5         kx #
     5         kx #TTYTYPE_FILE	/etc/ttytype
     5         kx 
     5         kx #
     5         kx # If defined, the command name to display when running "su -".  For
     5         kx # example, if this is defined as "su" then a "ps" will display the
     5         kx # command is "-su".  If not defined, then "ps" would display the
     5         kx # name of the shell actually being run, e.g. something like "-sh".
     5         kx #
     5         kx SU_NAME		su
     5         kx 
     5         kx #
     5         kx # *REQUIRED*
     5         kx #   Directory where mailboxes reside, _or_ name of file, relative to the
     5         kx #   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
     5         kx #
     5         kx MAIL_DIR	/var/spool/mail
     5         kx #MAIL_FILE	.mail
     5         kx 
     5         kx #
     5         kx # If defined, file which inhibits all the usual chatter during the login
     5         kx # sequence.  If a full pathname, then hushed mode will be enabled if the
     5         kx # user's name or shell are found in the file.  If not a full pathname, then
     5         kx # hushed mode will be enabled if the file exists in the user's home directory.
     5         kx #
     5         kx HUSHLOGIN_FILE	.hushlogin
     5         kx #HUSHLOGIN_FILE	/etc/hushlogins
     5         kx 
     5         kx #
     5         kx # *REQUIRED*  The default PATH settings, for superuser and normal users.
     5         kx #
     5         kx # (they are minimal, add the rest in the shell startup files)
     5         kx ENV_SUPATH     PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
     5         kx ENV_PATH       PATH=/usr/local/bin:/bin:/usr/bin
     5         kx 
     5         kx #
     5         kx # Terminal permissions
     5         kx #
     5         kx #	TTYGROUP	Login tty will be assigned this group ownership.
     5         kx #	TTYPERM		Login tty will be set to this permission.
     5         kx #
     5         kx # If you have a "write" program which is "setgid" to a special group
     5         kx # which owns the terminals, define TTYGROUP to the group number and
     5         kx # TTYPERM to 0620.  Otherwise leave TTYGROUP commented out and assign
     5         kx # TTYPERM to either 622 or 600.
     5         kx #
     5         kx TTYGROUP	tty
     5         kx TTYPERM		0620
     5         kx 
     5         kx #
     5         kx # Login configuration initializations:
     5         kx #
     5         kx #	ERASECHAR	Terminal ERASE character ('\010' = backspace).
     5         kx #	KILLCHAR	Terminal KILL character ('\025' = CTRL/U).
     5         kx #
     5         kx # The ERASECHAR and KILLCHAR are used only on System V machines.
     5         kx # (now it works with setrlimit too; ulimit is in 512-byte units)
     5         kx #
     5         kx # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
     5         kx #
     5         kx ERASECHAR	0177
     5         kx KILLCHAR	025
     5         kx 
     5         kx #
     5         kx # Default initial "umask" value used by login(1) on non-PAM enabled systems.
     5         kx # Default "umask" value for pam_umask(8) on PAM enabled systems.
     5         kx # UMASK is also used by useradd(8) and newusers(8) to set the mode for new
     5         kx # home directories if HOME_MODE is not set.
     5         kx # 022 is the default value, but 027, or even 077, could be considered
     5         kx # for increased privacy. There is no One True Answer here: each sysadmin
     5         kx # must make up their mind.
     5         kx UMASK           022
     5         kx 
     5         kx #
     5         kx # HOME_MODE is used by useradd(8) and newusers(8) to set the mode for new
     5         kx # home directories.
     5         kx # If HOME_MODE is not set, the value of UMASK is used to create the mode.
     5         kx #HOME_MODE      0700
     5         kx 
     5         kx #
     5         kx # Password aging controls:
     5         kx #
     5         kx #	PASS_MAX_DAYS	Maximum number of days a password may be used.
     5         kx #	PASS_MIN_DAYS	Minimum number of days allowed between password changes.
     5         kx #	PASS_WARN_AGE	Number of days warning given before a password expires.
     5         kx #
     5         kx PASS_MAX_DAYS	99999
     5         kx PASS_MIN_DAYS	0
     5         kx PASS_WARN_AGE	7
     5         kx 
     5         kx #
     5         kx # Min/max values for automatic uid selection in useradd
     5         kx #
     5         kx UID_MIN			 1000
     5         kx UID_MAX			60000
     5         kx # System accounts
     5         kx SYS_UID_MIN		  101
     5         kx SYS_UID_MAX		  999
     5         kx 
     5         kx #
     5         kx # Min/max values for automatic gid selection in groupadd
     5         kx #
     5         kx GID_MIN			 1000
     5         kx GID_MAX			60000
     5         kx # System accounts
     5         kx SYS_GID_MIN		  101
     5         kx SYS_GID_MAX		  999
     5         kx 
     5         kx #
     5         kx # Max number of login retries if password is bad
     5         kx #
     5         kx LOGIN_RETRIES		5
     5         kx 
     5         kx #
     5         kx # Max time in seconds for login
     5         kx #
     5         kx LOGIN_TIMEOUT		60
     5         kx 
     5         kx #
     5         kx # Which fields may be changed by regular users using chfn - use
     5         kx # any combination of letters "frwh" (full name, room number, work
     5         kx # phone, home phone).  If not defined, no changes are allowed.
     5         kx # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
     5         kx # 
     5         kx CHFN_RESTRICT		frwh
     5         kx 
     5         kx #
     5         kx # Only works if compiled with MD5_CRYPT defined:
     5         kx # If set to "yes", new passwords will be encrypted using the MD5-based
     5         kx # algorithm compatible with the one used by recent releases of FreeBSD.
     5         kx # It supports passwords of unlimited length and longer salt strings.
     5         kx # Set to "no" if you need to copy encrypted passwords to other systems
     5         kx # which don't understand the new algorithm.  Default is "no".
     5         kx #
     5         kx # This variable is deprecated. You should use ENCRYPT_METHOD.
     5         kx #
     5         kx #MD5_CRYPT_ENAB	no
     5         kx 
     5         kx #
     5         kx # Only works if compiled with ENCRYPTMETHOD_SELECT defined:
     5         kx # If set to MD5 , MD5-based algorithm will be used for encrypting password
     5         kx # If set to SHA256, SHA256-based algorithm will be used for encrypting password
     5         kx # If set to SHA512, SHA512-based algorithm will be used for encrypting password
     5         kx # If set to BCRYPT, BCRYPT-based algorithm will be used for encrypting password
     5         kx # If set to DES, DES-based algorithm will be used for encrypting password (default)
     5         kx # Overrides the MD5_CRYPT_ENAB option
     5         kx #
     5         kx ENCRYPT_METHOD SHA256
     5         kx 
     5         kx #
     5         kx # Only works if ENCRYPT_METHOD is set to SHA256 or SHA512.
     5         kx #
     5         kx # Define the number of SHA rounds.
     5         kx # With a lot of rounds, it is more difficult to brute forcing the password.
     5         kx # But note also that it more CPU resources will be needed to authenticate
     5         kx # users.
     5         kx #
     5         kx # If not specified, the libc will choose the default number of rounds (5000).
     5         kx # The values must be inside the 1000-999999999 range.
     5         kx # If only one of the MIN or MAX values is set, then this value will be used.
     5         kx # If MIN > MAX, the highest value will be used.
     5         kx #
     5         kx #SHA_CRYPT_MIN_ROUNDS 5000
     5         kx #SHA_CRYPT_MAX_ROUNDS 5000
     5         kx 
     5         kx #
     5         kx # Only works if ENCRYPT_METHOD is set to BCRYPT.
     5         kx #
     5         kx # Define the number of BCRYPT rounds.
     5         kx # With a lot of rounds, it is more difficult to brute-force the password.
     5         kx # However, more CPU resources will be needed to authenticate users if
     5         kx # this value is increased.
     5         kx #
     5         kx # If not specified, 13 rounds will be attempted.
     5         kx # If only one of the MIN or MAX values is set, then this value will be used.
     5         kx # If MIN > MAX, the highest value will be used.
     5         kx #
     5         kx #BCRYPT_MIN_ROUNDS 13
     5         kx #BCRYPT_MAX_ROUNDS 13
     5         kx 
     5         kx #
     5         kx # List of groups to add to the user's supplementary group set
     5         kx # when logging in on the console (as determined by the CONSOLE
     5         kx # setting).  Default is none.
     5         kx #
     5         kx # Use with caution - it is possible for users to gain permanent
     5         kx # access to these groups, even when not logged in on the console.
     5         kx # How to do it is left as an exercise for the reader...
     5         kx #
     5         kx # Most of these groups are self-explanatory, but in the case of
     5         kx # "lp", it is because group lp is needed to use a scanner that
     5         kx # is part of a multifunction printer.
     5         kx #
     5         kx # Note that users are added to these default groups only when
     5         kx # logging into a shell with /bin/login, not when using a login
     5         kx # manager such as kdm.  In that case, users who should have
     5         kx # hardware access must be added to the appropriate groups
     5         kx # when the user is added with adduser or useradd, or by editing
     5         kx # /etc/group directly, preferably using "vigr"
     5         kx #
     5         kx CONSOLE_GROUPS         floppy:audio:cdrom:video:lp:scanner
     5         kx 
     5         kx #
     5         kx # Should login be allowed if we can't cd to the home directory?
     5         kx # Default in no.
     5         kx #
     5         kx DEFAULT_HOME	yes
     5         kx 
     5         kx #
     5         kx # If defined, this command is run when removing a user.
     5         kx # It should remove any at/cron/print jobs etc. owned by
     5         kx # the user to be removed (passed as the first argument).
     5         kx #
     5         kx #USERDEL_CMD	/usr/sbin/userdel_local
     5         kx 
     5         kx #
     5         kx # Enable setting of the umask group bits to be the same as owner bits
     5         kx # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
     5         kx # the same as gid, and username is the same as the primary group name.
     5         kx #
     5         kx # This also enables userdel to remove user groups if no members exist.
     5         kx #
     5         kx USERGROUPS_ENAB yes
     5         kx 
     5         kx #
     5         kx # If set to a non-nul number, the shadow utilities will make sure that
     5         kx # groups never have more than this number of users on one line.
     5         kx # This permit to support split groups (groups split into multiple lines,
     5         kx # with the same group ID, to avoid limitation of the line length in the
     5         kx # group file).
     5         kx #
     5         kx # 0 is the default value and disables this feature.
     5         kx #
     5         kx #MAX_MEMBERS_PER_GROUP	0
     5         kx 
     5         kx #
     5         kx # If useradd should create home directories for users by default (non
     5         kx # system users only)
     5         kx # This option is overridden with the -M or -m flags on the useradd command
     5         kx # line.
     5         kx #
     5         kx #CREATE_HOME     yes
     5         kx