shadow-login.defs.diff 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --- etc/login.defs.orig 2018-04-29 13:42:37.000000000 -0300
  2. +++ etc/login.defs 2018-05-04 12:08:23.836672298 -0300
  3. @@ -9,7 +9,7 @@
  4. # Note: When PAM is used, some modules may enforce a minimum delay (e.g.
  5. # pam_unix(8) enforces a 2s delay)
  6. #
  7. -FAIL_DELAY 3
  8. +FAIL_DELAY 2
  9. #
  10. # Enable logging and display of /var/log/faillog login(1) failure info.
  11. @@ -118,7 +118,7 @@
  12. # Directory where mailboxes reside, _or_ name of file, relative to the
  13. # home directory. If you _do_ define both, MAIL_DIR takes precedence.
  14. #
  15. -MAIL_DIR /var/spool/mail
  16. +MAIL_DIR /var/mail
  17. #MAIL_FILE .mail
  18. #
  19. @@ -135,7 +135,7 @@
  20. # fully-rooted pathname of a file containing such a spec.
  21. #
  22. #ENV_TZ TZ=CST6CDT
  23. -#ENV_TZ /etc/tzname
  24. +ENV_TZ /etc/localtime
  25. #
  26. # If defined, an HZ environment parameter spec.
  27. @@ -149,8 +149,8 @@
  28. # *REQUIRED* The default PATH settings, for superuser and normal users.
  29. #
  30. # (they are minimal, add the rest in the shell startup files)
  31. -ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
  32. -ENV_PATH PATH=/bin:/usr/bin
  33. +ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
  34. +ENV_PATH PATH=/usr/local/bin:/bin:/usr/bin
  35. #
  36. # Terminal permissions
  37. @@ -164,7 +164,7 @@
  38. # set TTYPERM to either 622 or 600.
  39. #
  40. TTYGROUP tty
  41. -TTYPERM 0600
  42. +TTYPERM 0620
  43. #
  44. # Login configuration initializations:
  45. @@ -190,7 +190,7 @@
  46. # 022 is the default value, but 027, or even 077, could be considered
  47. # for increased privacy. There is no One True Answer here: each sysadmin
  48. # must make up their mind.
  49. -UMASK 022
  50. +UMASK 077
  51. #
  52. # Password aging controls:
  53. @@ -216,7 +216,7 @@
  54. #
  55. # If compiled with cracklib support, sets the path to the dictionaries
  56. #
  57. -CRACKLIB_DICTPATH /var/cache/cracklib/cracklib_dict
  58. +#CRACKLIB_DICTPATH /var/cache/cracklib/cracklib_dict
  59. #
  60. # Min/max values for automatic uid selection in useradd(8)
  61. @@ -282,7 +282,7 @@
  62. # phone, home phone). If not defined, no changes are allowed.
  63. # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
  64. #
  65. -CHFN_RESTRICT rwh
  66. +CHFN_RESTRICT frwh
  67. #
  68. # Password prompt (%s will be replaced by user name).
  69. @@ -317,7 +317,7 @@
  70. # Note: If you use PAM, it is recommended to use a value consistent with
  71. # the PAM modules configuration.
  72. #
  73. -#ENCRYPT_METHOD DES
  74. +ENCRYPT_METHOD SHA512
  75. #
  76. # Only works if ENCRYPT_METHOD is set to SHA256 or SHA512.
  77. @@ -356,7 +356,7 @@
  78. # If this file exists and is readable, login environment will be
  79. # read from it. Every line should be in the form name=value.
  80. #
  81. -ENVIRON_FILE /etc/environment
  82. +#ENVIRON_FILE /etc/environment
  83. #
  84. # If defined, this command is run when removing a user.
  85. @@ -391,7 +391,7 @@
  86. # This option is overridden with the -M or -m flags on the useradd(8)
  87. # command-line.
  88. #
  89. -#CREATE_HOME yes
  90. +CREATE_HOME yes
  91. #
  92. # Force use shadow, even if shadow passwd & shadow group files are