Compare commits
1038 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e5b7b9fde8 | |||
| 688fb93702 | |||
| 43bf5f3b39 | |||
| 7c7e8f5c18 | |||
| 81313b4c5d | |||
| 632746518a | |||
| a6f8d25673 | |||
| 9b0bef767c | |||
| 61085fbfef | |||
| bc6fea5f73 | |||
| 972687a07b | |||
| aad21d4486 | |||
| 29f0e1dcf4 | |||
| e0d410ad6a | |||
| 95447b3f56 | |||
| 999c14c87b | |||
| 69a2672d3b | |||
| 41662e422b | |||
| ff20574597 | |||
| 712f360fcd | |||
| 551cf36757 | |||
| e4f60bc5b6 | |||
| 0a96fd2bf0 | |||
| 019ffd5126 | |||
| 45e98ea60a | |||
| 878710fb7a | |||
| 771535fa07 | |||
| ac353a0d49 | |||
| 527b684a18 | |||
| ae2c71761e | |||
| 154029254a | |||
| a85c288e96 | |||
| e1f06f07bc | |||
| 80660f4a94 | |||
| f19c0e69e1 | |||
| b6e44ab213 | |||
| f56f3e81df | |||
| 5413108b8a | |||
| c154cb50fa | |||
| 3bf1270130 | |||
| e3549c3f90 | |||
| ad3a822529 | |||
| 10c72480c0 | |||
| 6c1c44f0fc | |||
| 23d33f4922 | |||
| 0c8f801a7a | |||
| 4a109337ab | |||
| 584b0b6a36 | |||
| 4e48f059e7 | |||
| fbd4430a1d | |||
| 4b707105f4 | |||
| 1526e6cde8 | |||
| 8199342364 | |||
| 4f3d0ac9b9 | |||
| 57721a210f | |||
| d7536122e8 | |||
| 558a8f0796 | |||
| 623fdb60cd | |||
| bd08493dab | |||
| d3b392f509 | |||
| 9f16b61fe4 | |||
| 97e47ed437 | |||
| d300102446 | |||
| 3d71c62ab1 | |||
| 2ff04fd9b5 | |||
| 97a3bc0c43 | |||
| 485b374d09 | |||
| 25f0b936c0 | |||
| 776d4d23ac | |||
| 9f285306f3 | |||
| f569ea06ff | |||
| 50defcfa5d | |||
| 56c7502686 | |||
| 7c66acdd2e | |||
| 4806645316 | |||
| 05a41bc4d5 | |||
| 75eb241552 | |||
| d7ce68863e | |||
| 095f9d48ef | |||
| b4c00e119f | |||
| 326f1566ef | |||
| 6ac9c8ffe1 | |||
| 860bfc3bc2 | |||
| f960334281 | |||
| e4bc4e00d3 | |||
| f17d14fa1d | |||
| bdbb726365 | |||
| e0c751974f | |||
| 8b93f459b4 | |||
| 658cda9512 | |||
| 8f8e8c66d6 | |||
| 9351646a53 | |||
| 9335ee4556 | |||
| cfe3388825 | |||
| fa71d99553 | |||
| 220f9aac4d | |||
| deba8c722e | |||
| f0d0800450 | |||
| c0e008111e | |||
| f7c5ed7e44 | |||
| 71b57931c8 | |||
| 830963375b | |||
| 119d3e7fb4 | |||
| 22cdffdd80 | |||
| 23958d1506 | |||
| 840aa7a980 | |||
| 8f8c08e8a5 | |||
| 9126929c22 | |||
| 56751ea5fa | |||
| cda8c5fa81 | |||
| 69ca70f202 | |||
| 8d8547f65f | |||
| bda4983ef6 | |||
| ff3c5edbc6 | |||
| 7b64365e45 | |||
| 696ec6893f | |||
| 6185fb4b72 | |||
| fcd5a6a753 | |||
| c97b544618 | |||
| cfbad60da9 | |||
| f6500af0fb | |||
| abd7c0d1a8 | |||
| b96c915fb6 | |||
| c9d3bfbed8 | |||
| b8a6958c8c | |||
| b8eb6e21e3 | |||
| fbcc252aa2 | |||
| 78ed95c5f6 | |||
| 78b4357090 | |||
| 8971f347df | |||
| f7a09bbd35 | |||
| efb3723826 | |||
| 600860fd1b | |||
| 0246ee1e32 | |||
| a784da8035 | |||
| 17b9314598 | |||
| 73b4950948 | |||
| c5e7641878 | |||
| 27194eea96 | |||
| 988e6e1667 | |||
| 8655461698 | |||
| 395194208e | |||
| 6116809ed3 | |||
| d9490db020 | |||
| 7588913847 | |||
| 3fe38f1a8e | |||
| ae9399155f | |||
| 8234369aa8 | |||
| f5e88fde2a | |||
| f06a70460c | |||
| e225d71e7f | |||
| 1ea5452692 | |||
| be18f1bbfc | |||
| 6b02a8c46a | |||
| 1529920170 | |||
| 0905cf7764 | |||
| b93dcd7b74 | |||
| 537fb2b47d | |||
| ea2453d97e | |||
| 06238ddfc6 | |||
| a0f09c4de7 | |||
| d40cb183f8 | |||
| a155720a06 | |||
| 5a8056702c | |||
| 89221d3983 | |||
| b7878255ff | |||
| 06d1bd8617 | |||
| d19ac3ae86 | |||
| cfc17bfaa7 | |||
| fe2a40ab85 | |||
| c7baab6534 | |||
| 92b40afe13 | |||
| 7456cef7e2 | |||
| dc0f840741 | |||
| 10af5ab4c4 | |||
| 2d2f190b5f | |||
| 8b9729cf03 | |||
| 8a1d6c51aa | |||
| b1eaec13e7 | |||
| 262a350c14 | |||
| 752c64e4e4 | |||
| fa4dccbc4a | |||
| e34706dd5b | |||
| 787ebc3336 | |||
| 93ea3fe510 | |||
| 30e6a960ee | |||
| e38381641b | |||
| dc46a7a96f | |||
| 1177f4b257 | |||
| 0a3492dd90 | |||
| 77901f4115 | |||
| 042e76175a | |||
| 4d8a10d86c | |||
| 9bda99f55d | |||
| 927c6cbdd6 | |||
| 8f33168316 | |||
| 488bb269c9 | |||
| 1a76a81ccc | |||
| 1e63ff4abc | |||
| 8931f490ed | |||
| 1ddb81753d | |||
| 252ca1a609 | |||
| 3709c159af | |||
| 00c091542c | |||
| 084a543a03 | |||
| 4793149a12 | |||
| d04fc57f13 | |||
| 1daf68f0a3 | |||
| 58ead426f4 | |||
| 9be33624de | |||
| f1f3ef5674 | |||
| c60535694b | |||
| 7bc992f580 | |||
| 7c34f34109 | |||
| e153c45690 | |||
| 9c70ce4480 | |||
| 6170e87bd5 | |||
| 2ace7fb8f5 | |||
| b2a4d20bf7 | |||
| 089560d90e | |||
| d6eb9f97a0 | |||
| 7ca7e82ae8 | |||
| 19c35c70e1 | |||
| b001531192 | |||
| 88de51965d | |||
| df6b651325 | |||
| 406a28db14 | |||
| 00bcf65d58 | |||
| 9105fcd24c | |||
| ba18b6cab2 | |||
| b43b5a89d1 | |||
| 591aa8debe | |||
| bcd42a4c62 | |||
| d7f24f954e | |||
| f9176c3be3 | |||
| bc6cd09194 | |||
| b8a7c3ac04 | |||
| 133b10b734 | |||
| 40146019e6 | |||
| 3588f5d2a3 | |||
| af6b417156 | |||
| 9b4168f0b2 | |||
| fd20e4fe4b | |||
| d779e83350 | |||
| 8b5c7cace3 | |||
| 182a8cf464 | |||
| b20639f055 | |||
| 0531cb85a4 | |||
| 19ebc9d55a | |||
| f19610854c | |||
| 398a6d383a | |||
| 70c472f91d | |||
| 3b66774757 | |||
| a975974d2c | |||
| 25df6ffc55 | |||
| 9eb5f5e758 | |||
| e530aed7c6 | |||
| 39c9155f66 | |||
| 60d4dc5ae0 | |||
| 5a3eada191 | |||
| 616a2b0c7b | |||
| 9089583e08 | |||
| b89c17643b | |||
| 83c828d86a | |||
| 786bb46ef9 | |||
| d4fc50519b | |||
| 45c29ff8ce | |||
| 8e21a0615d | |||
| b679e205d8 | |||
| 186f8f8c5a | |||
| d53df510ec | |||
| 569a90cd97 | |||
| b5d9320f6d | |||
| f1e917cc43 | |||
| 83e36d1e1b | |||
| d9e428fd63 | |||
| 3fcf082618 | |||
| 68cd195044 | |||
| d8af4b7e5b | |||
| 598853e638 | |||
| 5a6e0c0ebd | |||
| f9aecd19f3 | |||
| 14d5db18a8 | |||
| 7df6dd8cf2 | |||
| d5849a0f2b | |||
| e56640f2af | |||
| e1782606c1 | |||
| 11e8de1be1 | |||
| dedf96dd6f | |||
| 4ea3973200 | |||
| 2fb68149d6 | |||
| a154eb5401 | |||
| 4a2fadfa21 | |||
| 1566e6de21 | |||
| acf9e8fa4a | |||
| 6c29058c9f | |||
| 16e593e364 | |||
| e8c4143fdc | |||
| b4ad01d830 | |||
| ea64aa07a8 | |||
| 523b9000fd | |||
| 71869c2d24 | |||
| 2aa9297367 | |||
| 9bc936e018 | |||
| 2ef82ecb53 | |||
| 5fc7602f3e | |||
| 0274441ec5 | |||
| 60c9571605 | |||
| c7e2932be4 | |||
| d480b7dfee | |||
| 260b0eb77a | |||
| 34599da75c | |||
| aeb11d0c3e | |||
| 9c7fd6b104 | |||
| 1f40da3a5f | |||
| c84a3fd5f8 | |||
| 25cba03d2d | |||
| 68ee6e45ad | |||
| 00e4c00838 | |||
| 45c41f0de6 | |||
| b27aad278a | |||
| 57283d75f7 | |||
| 2649a0dc50 | |||
| 68fb7adaf7 | |||
| bbfcca9015 | |||
| 0e011449f7 | |||
| 99a8e345da | |||
| 7573a1f684 | |||
| d89d44af82 | |||
| 13f031cd67 | |||
| 0c7f32eab6 | |||
| 16796d7e3b | |||
| 371d5aa969 | |||
| 0687637b17 | |||
| 4294d76926 | |||
| e2fa8501ca | |||
| 0047ae2042 | |||
| 820997101a | |||
| 2e8f003402 | |||
| 2e014282f7 | |||
| be2dc119ed | |||
| 1e2d22eb6b | |||
| 35d80a0a73 | |||
| f06ef92c66 | |||
| 22d833f38e | |||
| 08807ee3fc | |||
| 80a1bae6fe | |||
| e8bdaa552b | |||
| 60bf0e1338 | |||
| 33f491513e | |||
| 36ff9fa1df | |||
| c0dbed948f | |||
| 03e6eeb8bb | |||
| 9cf5fea519 | |||
| 62c424ce33 | |||
| 346bc7c0df | |||
| d977bc5d19 | |||
| 4a0d11ba27 | |||
| 8d3f289bd8 | |||
| 7a04299f9e | |||
| 770fddc081 | |||
| b079e4f331 | |||
| ac43a9a2d5 | |||
| 5c999162fa | |||
| 4d45becee0 | |||
| 057ad9bb69 | |||
| 27c3b04789 | |||
| 553718623c | |||
| 438596a720 | |||
| 5e3b5ba676 | |||
| 7ca179b885 | |||
| 1bd5acfa3f | |||
| a10d121ff7 | |||
| c16590aaf3 | |||
| 013637e2de | |||
| c8c3924815 | |||
| 18d4a7a6a9 | |||
| 36018131dd | |||
| f35045dcf1 | |||
| 2a2cee4a95 | |||
| 30eae84422 | |||
| 62c0ed4fcb | |||
| 315479a6ce | |||
| a240b74921 | |||
| 48841074a0 | |||
| c55dcada36 | |||
| b7d5465b0e | |||
| 5f5b7d56a6 | |||
| ca30001269 | |||
| e45face1d2 | |||
| 2ad689b454 | |||
| 53b76ca815 | |||
| 21b505094a | |||
| 89c37173e1 | |||
| 7ab1a77227 | |||
| 1d04d40bc6 | |||
| 3bde6ef31b | |||
| 2dd2472e22 | |||
| e065751f91 | |||
| f2973dcc5a | |||
| 907c0ab20b | |||
| 9171ec4eae | |||
| f21fe99292 | |||
| 96845a5867 | |||
| d984dcb999 | |||
| eafbe03cc8 | |||
| b63ac7ac95 | |||
| 3dc001c683 | |||
| 3cb3fec04a | |||
| d6508a4fed | |||
| 3b694115de | |||
| 903f041993 | |||
| 9811f7fd4a | |||
| 5852c4eb9b | |||
| b954300b83 | |||
| a2c7f4c8a5 | |||
| 8e85d1cb82 | |||
| ec7f69e97a | |||
| fbdc52a86d | |||
| dff2fa836e | |||
| 190dfc30eb | |||
| 8ba58a61d5 | |||
| c980cb6b3a | |||
| 30b6ca81e0 | |||
| 541f6a66b8 | |||
| c6175f07e3 | |||
| 0b8b6534cc | |||
| f6de85357c | |||
| 913827c3c1 | |||
| 5fdb900d7b | |||
| 7803aa52ab | |||
| 54746f0d92 | |||
| dd612ca974 | |||
| 55b516ba94 | |||
| bda5661096 | |||
| 186f0b002a | |||
| ce533f3250 | |||
| eb3cd52450 | |||
| 28af4c5bc5 | |||
| 5bb64ec036 | |||
| 6b8409e9e8 | |||
| 4a5447d4d7 | |||
| 1c619c768d | |||
| af075bffc9 | |||
| 971f260e94 | |||
| 9f71e81c91 | |||
| 7dc1f3b2dd | |||
| 5431d2abe2 | |||
| 47bbcf4dc4 | |||
| b512961c12 | |||
| efab223b05 | |||
| cd964eccb5 | |||
| 1ce22b1adc | |||
| 6c4c7f47a0 | |||
| 53ba4f6fc6 | |||
| 2d0341ae26 | |||
| edc2bc5556 | |||
| a3e655cc19 | |||
| 34e67733ad | |||
| f261f8897d | |||
| b2f829c0d9 | |||
| e44a7c5333 | |||
| 5256839da0 | |||
| 053fd6f667 | |||
| d25fbce118 | |||
| 4d3d2852df | |||
| 35f6fa4fb2 | |||
| 8c79098041 | |||
| 227e780644 | |||
| 85f90d1aa2 | |||
| 2fcaf22140 | |||
| ff97ca76fc | |||
| b7a8fec626 | |||
| 7d143a73d5 | |||
| fd69ebf5a9 | |||
| 9fa842ffbf | |||
| 5305181f4e | |||
| 5760010c6a | |||
| ed983623b7 | |||
| 871df6e34b | |||
| 279b8e9b69 | |||
| 9540ec861e | |||
| d408a3cdda | |||
| 51520f2c77 | |||
| c0a26b82ae | |||
| 133092e437 | |||
| 6f7963a3ea | |||
| d2b12355ee | |||
| c0e2ae0e41 | |||
| 6e0036f616 | |||
| 12e0029b68 | |||
| efd41d31d8 | |||
| ea725da60f | |||
| ec9d756fc7 | |||
| e74300f9f3 | |||
| ce687005c7 | |||
| 645829be3b | |||
| 87134054ab | |||
| f26adb9373 | |||
| 563facd989 | |||
| 5292e8e37e | |||
| 4a79eb6418 | |||
| d36e1588a4 | |||
| 3a8fc569dc | |||
| d88fee56d0 | |||
| 8c071f98f4 | |||
| 17589834e9 | |||
| b1dcbb9109 | |||
| ff21533772 | |||
| 8e4062eaad | |||
| 3e7c866497 | |||
| 25eb9fd7e9 | |||
| a472a22b42 | |||
| 528435663e | |||
| 13125b6596 | |||
| e642700f7c | |||
| 1c05718b49 | |||
| 21b28d9ac2 | |||
| 31b4793161 | |||
| 831ca2acc0 | |||
| c959b173fa | |||
| 494fe327a2 | |||
| 32ee5cf5a4 | |||
| 1dab661a88 | |||
| 5c743da48c | |||
| 34b64c6a5c | |||
| 520c3d2ee8 | |||
| edc1e3de4c | |||
| 51c1b4fd6e | |||
| dc8ebb9a93 | |||
| 3f81b32b3a | |||
| 05712cf244 | |||
| 3cd211df74 | |||
| eed7f843e5 | |||
| 0dd4550277 | |||
| 4f0461c5aa | |||
| 801dc30dc9 | |||
| 81d3f93571 | |||
| 2bbe223879 | |||
| 5a13d590df | |||
| 150d37d441 | |||
| 92ada6ae8c | |||
| f844f3fc1f | |||
| f04a81b799 | |||
| ac62509912 | |||
| 090dcd4714 | |||
| 2772f3caaf | |||
| d4da487911 | |||
| 26d47d4a13 | |||
| 7aa5afbe3e | |||
| 8e07b2236e | |||
| b82323f6fc | |||
| 2da85fc32b | |||
| 036fdfd2cb | |||
| 3081241777 | |||
| 3472bee15a | |||
| a6336f11f8 | |||
| 3b6a675f3f | |||
| bcd3d8c1b8 | |||
| 7de171da64 | |||
| fc3fa0e293 | |||
| 53b2f99d37 | |||
| 056347f7a0 | |||
| 80d3925cc1 | |||
| 4ff6fdd350 | |||
| 6fd2918f82 | |||
| 991d707460 | |||
| 6268434a34 | |||
| 79bd47d726 | |||
| 6a94f65dc6 | |||
| f38390ecf8 | |||
| 1906527bb8 | |||
| 4de1bfac9c | |||
| ce8580ca6d | |||
| 78fd15bab1 | |||
| f32335f6f9 | |||
| c7df39a736 | |||
| cc5a9f7708 | |||
| f1bb2c3848 | |||
| 5f632d1a86 | |||
| 56545b1b78 | |||
| 43c4c62ad7 | |||
| 9530fa372c | |||
| 26691d3301 | |||
| a8a28eba99 | |||
| 3cdfbb6cef | |||
| 250ed8cf16 | |||
| c6e3185f0c | |||
| cd10fe20c5 | |||
| 31678f87d9 | |||
| b318b6721e | |||
| 0fe9b6b867 | |||
| 3a91912281 | |||
| b1286d31fd | |||
| 5c8a6cd6eb | |||
| 68fdd46a81 | |||
| 76097618c2 | |||
| fe99e0edd8 | |||
| a000373d8d | |||
| 8c5876cef0 | |||
| f5e0895b3a | |||
| da9a0615de | |||
| 1640002065 | |||
| 53f2df3ded | |||
| 49a95f6c07 | |||
| 3ababb2263 | |||
| 20ba2e50ab | |||
| 282bbb9cfc | |||
| 52f620f78d | |||
| 0bdd59ac57 | |||
| f1127e1aac | |||
| e9e97852cf | |||
| 43cd3dc662 | |||
| 070ba9d6d4 | |||
| ce9ed32e74 | |||
| 9e83d9f840 | |||
| 96866ff296 | |||
| 1a58cb2346 | |||
| 01b11c5f84 | |||
| 91c630033d | |||
| 8422a00909 | |||
| fa16e07b2e | |||
| bf28febe2f | |||
| 4375e97124 | |||
| b42d7cf631 | |||
| b3a4a77b46 | |||
| 65269966d5 | |||
| 86ce147df1 | |||
| d868434939 | |||
| 3e50639cba | |||
| d3a0659e13 | |||
| 199d8b2719 | |||
| e9b12a545d | |||
| 0d29450314 | |||
| 96432cb7a1 | |||
| d2a6818f17 | |||
| c2b51209bb | |||
| 436996ed07 | |||
| 3d5b4ce121 | |||
| f121e979bb | |||
| cb8f35691a | |||
| 0ea08a3961 | |||
| 9ef58601e0 | |||
| 130e26d582 | |||
| 3462794b84 | |||
| f82f0de34e | |||
| eb61b09070 | |||
| a97b3a382b | |||
| f3ef07b8c7 | |||
| 8f4d210b31 | |||
| 6ff5ab6af4 | |||
| cfbe85f1f0 | |||
| 6752d525c3 | |||
| 36595ad2cd | |||
| 88e88fbf27 | |||
| f2915bc349 | |||
| fca246813e | |||
| 9292f7b951 | |||
| ff0f6c28eb | |||
| c556de2b56 | |||
| 7890eab89b | |||
| f9aee80330 | |||
| d9b8c55516 | |||
| c3e1c92fa7 | |||
| 8cd330b97a | |||
| 156bd855d4 | |||
| 5324b00638 | |||
| ba569f80b6 | |||
| d6495cab07 | |||
| 5520ea45cc | |||
| 98df44c5a1 | |||
| e5aa1773d3 | |||
| f810e0a171 | |||
| 4e2e230b07 | |||
| d65a81cc37 | |||
| 9febd5c52e | |||
| c9eb7cb521 | |||
| d6271f27b8 | |||
| 4d7d93d08a | |||
| 127ac7cf5e | |||
| 292b47c386 | |||
| 2d99df028e | |||
| 8009e96f35 | |||
| d485633edc | |||
| 81c1f063d2 | |||
| 067fb2ff47 | |||
| 3052b0306d | |||
| 1b0a6b20be | |||
| bce89b7cad | |||
| 0a6760339d | |||
| e379403368 | |||
| 02cfa1e96e | |||
| ae2a17ec1c | |||
| 7b6b6a081f | |||
| a89ae2b415 | |||
| f6b6e256d0 | |||
| 95611179d1 | |||
| a8fe4890d5 | |||
| 4c58978bf2 | |||
| d97b4164c7 | |||
| 049e27557a | |||
| 11e7186926 | |||
| 40065af03f | |||
| b30988f25e | |||
| 99858683d0 | |||
| d3b0033664 | |||
| e1d86d97bb | |||
| a1a7ad3bee | |||
| beb38aa933 | |||
| a3a623daed | |||
| d2bd32ab51 | |||
| 420463e136 | |||
| 34cc1b4591 | |||
| 40f31fe111 | |||
| 66d1c537b8 | |||
| 0d5d805ba3 | |||
| af0a5b3a7e | |||
| e6fdd218b5 | |||
| 9c9b12ccfb | |||
| 208cc24840 | |||
| 00fa6ffc89 | |||
| 562ea47e66 | |||
| 33d5f5d307 | |||
| 7ab05204f9 | |||
| 7ff74651d9 | |||
| b13dde1746 | |||
| 5ef093d38e | |||
| d56e6d08bc | |||
| b98c5149da | |||
| 1ccdb08ab2 | |||
| 39553bc84a | |||
| 2a3f424d3d | |||
| 49db6466e1 | |||
| b09af63a5d | |||
| d9a24cc82c | |||
| ab1840c6d6 | |||
| 14aaa22238 | |||
| e7bb558118 | |||
| bb269e44d7 | |||
| 2ad293e849 | |||
| e6bc2c9f9b | |||
| af76777327 | |||
| 4d7b872d28 | |||
| bc66fb0ed3 | |||
| a295dc0f1b | |||
| 097d6864f7 | |||
| b7bf03b161 | |||
| 7a78d9c181 | |||
| d548fe213b | |||
| 0423800e3e | |||
| e98619c71c | |||
| 8f364eb05a | |||
| 0ca7b0bfb3 | |||
| 09b2603e32 | |||
| cd0a2dd06d | |||
| d4931a4aef | |||
| 0b36e4e59f | |||
| 51c59171e4 | |||
| 474d525137 | |||
| f0866cc1fb | |||
| f4c395459d | |||
| 8f64322393 | |||
| 5e45536e26 | |||
| a645f89697 | |||
| 02e5dbd136 | |||
| fd204abcae | |||
| 9fb40391f8 | |||
| 6657ff38e5 | |||
| 43515a0924 | |||
| 66c00bd2be | |||
| 101469c265 | |||
| dbe74223ee | |||
| 9d3a7eb59a | |||
| 21d6b34360 | |||
| da34d2eac4 | |||
| f34f017160 | |||
| 0323eeb589 | |||
| 26d0bcb51f | |||
| c5d02f1f2f | |||
| 3ccb21e2ff | |||
| fe497cb98e | |||
| 557a602026 | |||
| 57d512829c | |||
| d7e3907ab6 | |||
| 6d4f30fbeb | |||
| f7ea46fe79 | |||
| 1c142ff073 | |||
| 6edf9089ec | |||
| af8755d005 | |||
| 0c13397839 | |||
| ec60f91bc5 | |||
| 1e73fef46e | |||
| 469a214650 | |||
| d638e563b6 | |||
| ae59303366 | |||
| 291b61a6c3 | |||
| 515dbe2f9a | |||
| f1fd47e349 | |||
| d181848c75 | |||
| c0dda226c3 | |||
| 7c0c287396 | |||
| 6232365cea | |||
| 455c9e8673 | |||
| 3c064bcebb | |||
| 3152fbd0d2 | |||
| 560095862a | |||
| 126500c911 | |||
| 855c092543 | |||
| b705ca4d97 | |||
| 9fc3874093 | |||
| e780891e11 | |||
| 22278063de | |||
| edde4d731d | |||
| 30c5ceb601 | |||
| 22a26e92e4 | |||
| 2d5f7a20d7 | |||
| 8d682b7f61 | |||
| 39c3a9c268 | |||
| 510226f810 | |||
| 0db4a29c22 | |||
| e5dd164814 | |||
| a80f47a81d | |||
| 40461f86ed | |||
| 5a1749e06e | |||
| 7500d0ec1c | |||
| 6da3c2ba7f | |||
| 4fa62a74e2 | |||
| 5901e73a95 | |||
| 79081455e3 | |||
| 73fe74c374 | |||
| d56b246d1b | |||
| 792ea0fa66 | |||
| 42f0bdb7aa | |||
| eeccfb8f62 | |||
| 90895612f1 | |||
| c284183a26 | |||
| bf4b725f01 | |||
| 20de595e37 | |||
| 92ff2a501d | |||
| 6aec5248e8 | |||
| dbecb8a7c0 | |||
| 61fb780f5c | |||
| ac4b6af8e9 | |||
| 5f027bb6a4 | |||
| c53557d535 | |||
| afce34ff40 | |||
| 312f23ab50 | |||
| 93933b959d | |||
| 5af0050d0a | |||
| 993f5134fd | |||
| 89e6ca0d7e | |||
| 7857beaf95 | |||
| 86aaea0978 | |||
| 8779ad5ec2 | |||
| eb2337b2c7 | |||
| ac972ba6fb | |||
| e8f45d238f | |||
| d27a65e33b | |||
| 0c6a55969e | |||
| b3acd37d6d | |||
| 99c78a4ae3 | |||
| ffddc3dbf8 | |||
| aaa2195044 | |||
| 9c9b24acaa | |||
| bebb89c93b | |||
| b53ea15a4d | |||
| a2054f9a9d | |||
| ed328dc03c | |||
| f3b4069ba4 | |||
| dac2b189c2 | |||
| 3f9037b282 | |||
| d4f56275e5 | |||
| 062eb42fd4 | |||
| 9768aa54f9 | |||
| 326c956bcd | |||
| 49c32e7ec1 | |||
| c8f4e36ebf | |||
| 57d3f9fa83 | |||
| aeae21cf6e | |||
| 857a615e2c | |||
| 7df22c6930 | |||
| d83880777a | |||
| f490e1a144 | |||
| 27ed5d04f7 | |||
| 98b7858e66 | |||
| 9c0339d436 | |||
| 48537b4957 | |||
| 4146176c08 | |||
| 33ba4c0628 | |||
| 3cf7c19a56 | |||
| 29f48bafae | |||
| 57da5c1045 | |||
| 897f8481b2 | |||
| 2d428c52c9 | |||
| 9d4c337ca1 | |||
| dfff7d3cfe | |||
| 67ac228c4a | |||
| 9e4d6448e6 | |||
| 1cbb3cc320 | |||
| 30d2b24f04 | |||
| 202fb5c463 | |||
| c203282681 | |||
| 1937662816 | |||
| d8b44cb331 | |||
| 4399f64323 | |||
| d17cbbac9f | |||
| d073acd750 | |||
| 1f7ad41762 | |||
| 319a16fc84 | |||
| 6790d09e85 | |||
| de17d213b2 | |||
| e1f8184dc3 | |||
| 91a8f30a61 | |||
| c155f2e39f | |||
| 51f7bfdfde | |||
| 7fb73b155e | |||
| b088dfeff4 | |||
| 1dbaebde63 | |||
| 1023d83acd | |||
| d07207326e | |||
| 2697c9817e | |||
| 159fbaacc0 | |||
| f276efcb29 | |||
| 9300464b43 | |||
| 52635a7d74 | |||
| e47fc28584 | |||
| 37385ee60d | |||
| 7b44b22213 | |||
| fa2b2e905d | |||
| 494e15df37 | |||
| 851446c287 | |||
| 0d183e6b94 | |||
| ffe583db50 | |||
| fffcc837ac | |||
| 1712aa91e9 | |||
| ee5bd9c521 | |||
| 25b03d8cd7 | |||
| 4473bc6264 | |||
| 7be39fc4aa | |||
| f4d0f69e35 | |||
| afabc3beb8 | |||
| 7bbe585f1e | |||
| 3ff563252e | |||
| 5b6ed9c678 | |||
| f9a23b8f67 | |||
| b140a0da35 | |||
| 676f702362 | |||
| 1beaa67010 | |||
| f7679480e6 | |||
| 3354e2dce7 | |||
| ca42fa251a | |||
| bab3f92304 | |||
| 9b9f463b8f | |||
| 3d84c8c91c | |||
| 54e3d28428 | |||
| 0a21c2438e | |||
| 5a9ea180fa | |||
| f77c7d061f | |||
| 02d1ba5c99 | |||
| 106a7a690c | |||
| c3d6c6d5ce | |||
| b2b7993cd0 | |||
| 89c07802de | |||
| 285046bd1e | |||
| 41d38991df | |||
| 517cc9fd79 | |||
| 8b991cdd58 | |||
| b1487cf3e6 | |||
| e158a89d37 | |||
| 632a264077 | |||
| 201d2b1608 | |||
| a48e84f0d6 | |||
| 90b05a2679 | |||
| 36f46d4dfb | |||
| 4a57055073 | |||
| e7ffab6b8e | |||
| 46b0cb2db2 | |||
| bd4b7d0c23 | |||
| 960b18e52e | |||
| dfcdbb7db5 | |||
| dd712a6184 | |||
| e4d00c832f | |||
| 4cff2127e3 | |||
| 837e8bcd05 | |||
| edb3448880 | |||
| 2c6ecc3e02 | |||
| 06f7f0d87f | |||
| 80dcfd6690 | |||
| f6249fb88a | |||
| bb9ad48e4f | |||
| 6cde8339cf | |||
| de62c3d005 | |||
| 54d8487fe3 | |||
| cf35478f4d | |||
| 1c33a0b2e5 | |||
| 5c207aa3ac | |||
| fe6fa70efe | |||
| abbf45f14f | |||
| e3e826734c | |||
| 17026efc75 | |||
| 41a6258033 | |||
| 191be4c39f | |||
| 09e267dad4 | |||
| 459433e461 | |||
| 5ec74ab450 | |||
| 40d644c1b5 | |||
| 11194f7e88 | |||
| 9dcb747e52 | |||
| ab9d319d06 | |||
| 8b6415c8cb | |||
| 5e1e47c89f | |||
| a1bb0a0c36 | |||
| 9765bc4a11 | |||
| 3bc2c036d4 | |||
| d0aa0033ee | |||
| 6d31d38571 | |||
| 2e741e5948 | |||
| 8af99d4da2 | |||
| 6e28c75c09 | |||
| 164c2b24bf | |||
| c6f0bda817 | |||
| 8ebce60492 | |||
| 52af2aa829 | |||
| 62a24d7d0b | |||
| a0d0068f7d | |||
| b2a73af945 | |||
| 75ee1ef03b | |||
| 9df5820cb5 | |||
| 1e502d5cbc | |||
| e4feaa023e | |||
| e895c05aa3 | |||
| 21a85fb04a | |||
| cf467c52af | |||
| 4442be02f7 | |||
| 1ed4974bf0 | |||
| 32d29775bc | |||
| d0e332f49c | |||
| 39beb1da3a |
+4
-3
@@ -1,5 +1,6 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
|
||||||
|
EXTRA_DIST = NEWS README
|
||||||
|
|
||||||
SUBDIRS = lib
|
SUBDIRS = lib
|
||||||
|
|
||||||
@@ -7,7 +8,7 @@ if ENABLE_SUBIDS
|
|||||||
SUBDIRS += libsubid
|
SUBDIRS += libsubid
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SUBDIRS += src po doc etc tests/unit
|
SUBDIRS += src po contrib doc etc tests/unit
|
||||||
|
|
||||||
if ENABLE_REGENERATE_MAN
|
if ENABLE_REGENERATE_MAN
|
||||||
SUBDIRS += man
|
SUBDIRS += man
|
||||||
@@ -15,7 +16,7 @@ endif
|
|||||||
|
|
||||||
CLEANFILES = man/8.out man/po/remove-potcdate.* man/*/login.defs.d man/*/*.mo
|
CLEANFILES = man/8.out man/po/remove-potcdate.* man/*/login.defs.d man/*/*.mo
|
||||||
|
|
||||||
EXTRA_DIST = NEWS README tests/
|
EXTRA_DIST = tests/
|
||||||
|
|
||||||
dist-hook:
|
dist-hook:
|
||||||
chmod -R u+w $(distdir)/tests
|
chmod -R u+w $(distdir)/tests
|
||||||
|
|||||||
+9
-15
@@ -163,19 +163,11 @@ am__define_uniq_tagged_files = \
|
|||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | $(am__uniquify_input)`
|
done | $(am__uniquify_input)`
|
||||||
DIST_SUBDIRS = lib libsubid src po doc etc tests/unit man
|
DIST_SUBDIRS = lib libsubid src po contrib doc etc tests/unit man
|
||||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
$(top_srcdir)/build-aux/compile \
|
|
||||||
$(top_srcdir)/build-aux/config.guess \
|
|
||||||
$(top_srcdir)/build-aux/config.rpath \
|
|
||||||
$(top_srcdir)/build-aux/config.sub \
|
|
||||||
$(top_srcdir)/build-aux/install-sh \
|
|
||||||
$(top_srcdir)/build-aux/ltmain.sh \
|
|
||||||
$(top_srcdir)/build-aux/missing \
|
|
||||||
$(top_srcdir)/man/po/Makefile.in ABOUT-NLS AUTHORS.md COPYING \
|
$(top_srcdir)/man/po/Makefile.in ABOUT-NLS AUTHORS.md COPYING \
|
||||||
ChangeLog NEWS README build-aux/compile build-aux/config.guess \
|
ChangeLog NEWS README compile config.guess config.rpath \
|
||||||
build-aux/config.rpath build-aux/config.sub \
|
config.sub install-sh ltmain.sh missing
|
||||||
build-aux/install-sh build-aux/ltmain.sh build-aux/missing
|
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
distdir = $(PACKAGE)-$(VERSION)
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
top_distdir = $(distdir)
|
top_distdir = $(distdir)
|
||||||
@@ -223,7 +215,6 @@ distcleancheck_listfiles = find . -type f -print
|
|||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AM_DISTCHECK_CONFIGURE_FLAGS = @AM_DISTCHECK_CONFIGURE_FLAGS@
|
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
@@ -252,6 +243,7 @@ EGREP = @EGREP@
|
|||||||
ETAGS = @ETAGS@
|
ETAGS = @ETAGS@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
FGREP = @FGREP@
|
FGREP = @FGREP@
|
||||||
|
FILECMD = @FILECMD@
|
||||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||||
GMSGFMT = @GMSGFMT@
|
GMSGFMT = @GMSGFMT@
|
||||||
GMSGFMT_015 = @GMSGFMT_015@
|
GMSGFMT_015 = @GMSGFMT_015@
|
||||||
@@ -295,6 +287,7 @@ LIBSYSTEMD = @LIBSYSTEMD@
|
|||||||
LIBTCB = @LIBTCB@
|
LIBTCB = @LIBTCB@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LIYESCRYPT = @LIYESCRYPT@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBICONV = @LTLIBICONV@
|
LTLIBICONV = @LTLIBICONV@
|
||||||
LTLIBINTL = @LTLIBINTL@
|
LTLIBINTL = @LTLIBINTL@
|
||||||
@@ -341,6 +334,8 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
|||||||
XMLCATALOG = @XMLCATALOG@
|
XMLCATALOG = @XMLCATALOG@
|
||||||
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
||||||
XSLTPROC = @XSLTPROC@
|
XSLTPROC = @XSLTPROC@
|
||||||
|
YACC = @YACC@
|
||||||
|
YFLAGS = @YFLAGS@
|
||||||
abs_builddir = @abs_builddir@
|
abs_builddir = @abs_builddir@
|
||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
@@ -395,11 +390,10 @@ target_alias = @target_alias@
|
|||||||
top_build_prefix = @top_build_prefix@
|
top_build_prefix = @top_build_prefix@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
EXTRA_DIST = tests/
|
||||||
SUBDIRS = lib $(am__append_1) src po doc etc tests/unit \
|
SUBDIRS = lib $(am__append_1) src po contrib doc etc tests/unit \
|
||||||
$(am__append_2)
|
$(am__append_2)
|
||||||
CLEANFILES = man/8.out man/po/remove-potcdate.* man/*/login.defs.d man/*/*.mo
|
CLEANFILES = man/8.out man/po/remove-potcdate.* man/*/login.defs.d man/*/*.mo
|
||||||
EXTRA_DIST = NEWS README tests/
|
|
||||||
all: config.h
|
all: config.h
|
||||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
|
|||||||
Vendored
+22
-21
@@ -22,14 +22,15 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
|
|||||||
|
|
||||||
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
|
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
|
||||||
#
|
#
|
||||||
# Copyright (C) 1999-2008, 2011-2015 Free Software Foundation, Inc.
|
# Copyright (C) 1999-2008, 2011-2019, 2021-2022 Free Software
|
||||||
|
# Foundation, Inc.
|
||||||
# Written by Thomas Tanner, 1999
|
# Written by Thomas Tanner, 1999
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation gives
|
# This file is free software; the Free Software Foundation gives
|
||||||
# unlimited permission to copy and/or distribute it, with or without
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
# modifications, as long as this notice is preserved.
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 20 LTDL_INIT
|
# serial 21 LTDL_INIT
|
||||||
|
|
||||||
# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
|
# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
@@ -357,7 +358,7 @@ AC_CONFIG_COMMANDS_PRE([
|
|||||||
if test -n "$_LT_LIBOBJS"; then
|
if test -n "$_LT_LIBOBJS"; then
|
||||||
# Remove the extension.
|
# Remove the extension.
|
||||||
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
|
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
|
||||||
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
|
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do
|
||||||
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
|
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
|
||||||
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
|
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
|
||||||
done
|
done
|
||||||
@@ -495,7 +496,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
|
|||||||
# If you are looking for one http://www.opendarwin.org/projects/dlcompat
|
# If you are looking for one http://www.opendarwin.org/projects/dlcompat
|
||||||
lt_cv_sys_dlopen_deplibs=yes
|
lt_cv_sys_dlopen_deplibs=yes
|
||||||
;;
|
;;
|
||||||
freebsd* | dragonfly*)
|
freebsd* | dragonfly* | midnightbsd*)
|
||||||
lt_cv_sys_dlopen_deplibs=yes
|
lt_cv_sys_dlopen_deplibs=yes
|
||||||
;;
|
;;
|
||||||
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
||||||
@@ -930,8 +931,8 @@ AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
|
|||||||
dnl aclocal-1.4 backwards compatibility:
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
|
dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
|
||||||
|
|
||||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
|
||||||
# serial 11 (pkg-config-0.29.1)
|
# serial 12 (pkg-config-0.29.2)
|
||||||
|
|
||||||
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
||||||
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
||||||
@@ -973,7 +974,7 @@ dnl
|
|||||||
dnl See the "Since" comment for each macro you use to see what version
|
dnl See the "Since" comment for each macro you use to see what version
|
||||||
dnl of the macros you require.
|
dnl of the macros you require.
|
||||||
m4_defun([PKG_PREREQ],
|
m4_defun([PKG_PREREQ],
|
||||||
[m4_define([PKG_MACROS_VERSION], [0.29.1])
|
[m4_define([PKG_MACROS_VERSION], [0.29.2])
|
||||||
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
||||||
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
||||||
])dnl PKG_PREREQ
|
])dnl PKG_PREREQ
|
||||||
@@ -1018,7 +1019,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
|
|||||||
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
||||||
dnl
|
dnl
|
||||||
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||||
dnl only at the first occurence in configure.ac, so if the first place
|
dnl only at the first occurrence in configure.ac, so if the first place
|
||||||
dnl it's called might be skipped (such as if it is within an "if", you
|
dnl it's called might be skipped (such as if it is within an "if", you
|
||||||
dnl have to call PKG_CHECK_EXISTS manually
|
dnl have to call PKG_CHECK_EXISTS manually
|
||||||
AC_DEFUN([PKG_CHECK_EXISTS],
|
AC_DEFUN([PKG_CHECK_EXISTS],
|
||||||
@@ -1074,7 +1075,7 @@ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
|||||||
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
||||||
|
|
||||||
pkg_failed=no
|
pkg_failed=no
|
||||||
AC_MSG_CHECKING([for $1])
|
AC_MSG_CHECKING([for $2])
|
||||||
|
|
||||||
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
||||||
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
||||||
@@ -1084,17 +1085,17 @@ and $1[]_LIBS to avoid the need to call pkg-config.
|
|||||||
See the pkg-config man page for more details.])
|
See the pkg-config man page for more details.])
|
||||||
|
|
||||||
if test $pkg_failed = yes; then
|
if test $pkg_failed = yes; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
_PKG_SHORT_ERRORS_SUPPORTED
|
_PKG_SHORT_ERRORS_SUPPORTED
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
||||||
else
|
else
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
||||||
|
|
||||||
m4_default([$4], [AC_MSG_ERROR(
|
m4_default([$4], [AC_MSG_ERROR(
|
||||||
[Package requirements ($2) were not met:
|
[Package requirements ($2) were not met:
|
||||||
|
|
||||||
$$1_PKG_ERRORS
|
$$1_PKG_ERRORS
|
||||||
@@ -1105,8 +1106,8 @@ installed software in a non-standard prefix.
|
|||||||
_PKG_TEXT])[]dnl
|
_PKG_TEXT])[]dnl
|
||||||
])
|
])
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
m4_default([$4], [AC_MSG_FAILURE(
|
m4_default([$4], [AC_MSG_FAILURE(
|
||||||
[The pkg-config script could not be found or is too old. Make sure it
|
[The pkg-config script could not be found or is too old. Make sure it
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
path to pkg-config.
|
path to pkg-config.
|
||||||
@@ -1116,10 +1117,10 @@ _PKG_TEXT
|
|||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
||||||
])
|
])
|
||||||
else
|
else
|
||||||
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
||||||
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
$3
|
$3
|
||||||
fi[]dnl
|
fi[]dnl
|
||||||
])dnl PKG_CHECK_MODULES
|
])dnl PKG_CHECK_MODULES
|
||||||
|
|
||||||
|
|||||||
+76
@@ -20,6 +20,10 @@
|
|||||||
/* Path for faillog file. */
|
/* Path for faillog file. */
|
||||||
#undef FAILLOG_FILE
|
#undef FAILLOG_FILE
|
||||||
|
|
||||||
|
/* Define to the type of elements in the array set by `getgroups'. Usually
|
||||||
|
this is either `int' or `gid_t'. */
|
||||||
|
#undef GETGROUPS_T
|
||||||
|
|
||||||
/* max group name length */
|
/* max group name length */
|
||||||
#undef GROUP_NAME_MAX_LENGTH
|
#undef GROUP_NAME_MAX_LENGTH
|
||||||
|
|
||||||
@@ -49,6 +53,9 @@
|
|||||||
the CoreFoundation framework. */
|
the CoreFoundation framework. */
|
||||||
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
|
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <crypt.h> header file. */
|
||||||
|
#undef HAVE_CRYPT_H
|
||||||
|
|
||||||
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
||||||
*/
|
*/
|
||||||
#undef HAVE_DCGETTEXT
|
#undef HAVE_DCGETTEXT
|
||||||
@@ -91,27 +98,45 @@
|
|||||||
/* Defined to 1 if you have the declaration of 'fgetpwent_r' */
|
/* Defined to 1 if you have the declaration of 'fgetpwent_r' */
|
||||||
#undef HAVE_FGETPWENT_R
|
#undef HAVE_FGETPWENT_R
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `futimes' function. */
|
||||||
|
#undef HAVE_FUTIMES
|
||||||
|
|
||||||
/* Define to 1 if you have the `getentropy' function. */
|
/* Define to 1 if you have the `getentropy' function. */
|
||||||
#undef HAVE_GETENTROPY
|
#undef HAVE_GETENTROPY
|
||||||
|
|
||||||
/* Define to 1 if you have the `getrandom' function. */
|
/* Define to 1 if you have the `getrandom' function. */
|
||||||
#undef HAVE_GETRANDOM
|
#undef HAVE_GETRANDOM
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `getspnam' function. */
|
||||||
|
#undef HAVE_GETSPNAM
|
||||||
|
|
||||||
/* Define to 1 if you have the `getspnam_r' function. */
|
/* Define to 1 if you have the `getspnam_r' function. */
|
||||||
#undef HAVE_GETSPNAM_R
|
#undef HAVE_GETSPNAM_R
|
||||||
|
|
||||||
/* Define if the GNU gettext() function is already present or preinstalled. */
|
/* Define if the GNU gettext() function is already present or preinstalled. */
|
||||||
#undef HAVE_GETTEXT
|
#undef HAVE_GETTEXT
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `getusershell' function. */
|
||||||
|
#undef HAVE_GETUSERSHELL
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <gshadow.h> header file. */
|
||||||
|
#undef HAVE_GSHADOW_H
|
||||||
|
|
||||||
/* Define if you have the iconv() function and it works. */
|
/* Define if you have the iconv() function and it works. */
|
||||||
#undef HAVE_ICONV
|
#undef HAVE_ICONV
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `initgroups' function. */
|
||||||
|
#undef HAVE_INITGROUPS
|
||||||
|
|
||||||
/* Define to 1 if you have the `innetgr' function. */
|
/* Define to 1 if you have the `innetgr' function. */
|
||||||
#undef HAVE_INNETGR
|
#undef HAVE_INNETGR
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
#undef HAVE_INTTYPES_H
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <lastlog.h> header file. */
|
||||||
|
#undef HAVE_LASTLOG_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `lckpwdf' function. */
|
/* Define to 1 if you have the `lckpwdf' function. */
|
||||||
#undef HAVE_LCKPWDF
|
#undef HAVE_LCKPWDF
|
||||||
|
|
||||||
@@ -139,6 +164,9 @@
|
|||||||
/* Define to 1 if you have the <minix/config.h> header file. */
|
/* Define to 1 if you have the <minix/config.h> header file. */
|
||||||
#undef HAVE_MINIX_CONFIG_H
|
#undef HAVE_MINIX_CONFIG_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <paths.h> header file. */
|
||||||
|
#undef HAVE_PATHS_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `putgrent' function. */
|
/* Define to 1 if you have the `putgrent' function. */
|
||||||
#undef HAVE_PUTGRENT
|
#undef HAVE_PUTGRENT
|
||||||
|
|
||||||
@@ -151,6 +179,9 @@
|
|||||||
/* Define to 1 if you have the <readpassphrase.h> header file. */
|
/* Define to 1 if you have the <readpassphrase.h> header file. */
|
||||||
#undef HAVE_READPASSPHRASE_H
|
#undef HAVE_READPASSPHRASE_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <rpc/key_prot.h> header file. */
|
||||||
|
#undef HAVE_RPC_KEY_PROT_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `rpmatch' function. */
|
/* Define to 1 if you have the `rpmatch' function. */
|
||||||
#undef HAVE_RPMATCH
|
#undef HAVE_RPMATCH
|
||||||
|
|
||||||
@@ -166,6 +197,9 @@
|
|||||||
/* Define to 1 if you have the <semanage/semanage.h> header file. */
|
/* Define to 1 if you have the <semanage/semanage.h> header file. */
|
||||||
#undef HAVE_SEMANAGE_SEMANAGE_H
|
#undef HAVE_SEMANAGE_SEMANAGE_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `setgroups' function. */
|
||||||
|
#undef HAVE_SETGROUPS
|
||||||
|
|
||||||
/* Define to 1 if you have the `sgetgrent' function. */
|
/* Define to 1 if you have the `sgetgrent' function. */
|
||||||
#undef HAVE_SGETGRENT
|
#undef HAVE_SGETGRENT
|
||||||
|
|
||||||
@@ -175,6 +209,12 @@
|
|||||||
/* Define to 1 if you have the `sgetspent' function. */
|
/* Define to 1 if you have the `sgetspent' function. */
|
||||||
#undef HAVE_SGETSPENT
|
#undef HAVE_SGETSPENT
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sgtty.h> header file. */
|
||||||
|
#undef HAVE_SGTTY_H
|
||||||
|
|
||||||
|
/* Have working shadow group support in libc */
|
||||||
|
#undef HAVE_SHADOWGRP
|
||||||
|
|
||||||
/* Define if you have the shl_load function. */
|
/* Define if you have the shl_load function. */
|
||||||
#undef HAVE_SHL_LOAD
|
#undef HAVE_SHL_LOAD
|
||||||
|
|
||||||
@@ -220,6 +260,15 @@
|
|||||||
/* Define to 1 if `ut_xtime' is a member of `struct utmpx'. */
|
/* Define to 1 if `ut_xtime' is a member of `struct utmpx'. */
|
||||||
#undef HAVE_STRUCT_UTMPX_UT_XTIME
|
#undef HAVE_STRUCT_UTMPX_UT_XTIME
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/capability.h> header file. */
|
||||||
|
#undef HAVE_SYS_CAPABILITY_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||||
|
#undef HAVE_SYS_IOCTL_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/random.h> header file. */
|
||||||
|
#undef HAVE_SYS_RANDOM_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/statfs.h> header file. */
|
/* Define to 1 if you have the <sys/statfs.h> header file. */
|
||||||
#undef HAVE_SYS_STATFS_H
|
#undef HAVE_SYS_STATFS_H
|
||||||
|
|
||||||
@@ -232,6 +281,9 @@
|
|||||||
/* Define to 1 if you have the <tcb.h> header file. */
|
/* Define to 1 if you have the <tcb.h> header file. */
|
||||||
#undef HAVE_TCB_H
|
#undef HAVE_TCB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <termio.h> header file. */
|
||||||
|
#undef HAVE_TERMIO_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
#undef HAVE_UNISTD_H
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
@@ -244,12 +296,18 @@
|
|||||||
/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */
|
/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */
|
||||||
#undef HAVE_UTIME_NULL
|
#undef HAVE_UTIME_NULL
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <utmp.h> header file. */
|
||||||
|
#undef HAVE_UTMP_H
|
||||||
|
|
||||||
/* Define to support vendor settings. */
|
/* Define to support vendor settings. */
|
||||||
#undef HAVE_VENDORDIR
|
#undef HAVE_VENDORDIR
|
||||||
|
|
||||||
/* Define to 1 if you have the <wchar.h> header file. */
|
/* Define to 1 if you have the <wchar.h> header file. */
|
||||||
#undef HAVE_WCHAR_H
|
#undef HAVE_WCHAR_H
|
||||||
|
|
||||||
|
/* Path for lastlog file. */
|
||||||
|
#undef LASTLOG_FILE
|
||||||
|
|
||||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||||
#undef LT_OBJDIR
|
#undef LT_OBJDIR
|
||||||
|
|
||||||
@@ -283,6 +341,12 @@
|
|||||||
/* Path to passwd program. */
|
/* Path to passwd program. */
|
||||||
#undef PASSWD_PROGRAM
|
#undef PASSWD_PROGRAM
|
||||||
|
|
||||||
|
/* Define if login should support the -r flag for rlogind. */
|
||||||
|
#undef RLOGIN
|
||||||
|
|
||||||
|
/* Define to the ruserok() "success" return value (0 or 1). */
|
||||||
|
#undef RUSEROK
|
||||||
|
|
||||||
/* Define to support the shadow group file. */
|
/* Define to support the shadow group file. */
|
||||||
#undef SHADOWGRP
|
#undef SHADOWGRP
|
||||||
|
|
||||||
@@ -453,3 +517,15 @@
|
|||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
/* Define for large files, on AIX-style hosts. */
|
||||||
#undef _LARGE_FILES
|
#undef _LARGE_FILES
|
||||||
|
|
||||||
|
/* Path for utmp file. */
|
||||||
|
#undef _UTMP_FILE
|
||||||
|
|
||||||
|
/* Path for wtmp file. */
|
||||||
|
#undef _WTMP_FILE
|
||||||
|
|
||||||
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
|
#undef gid_t
|
||||||
|
|
||||||
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
|
#undef uid_t
|
||||||
|
|||||||
+321
-263
@@ -1,20 +1,15 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_PREREQ([2.69])
|
AC_PREREQ([2.69])
|
||||||
m4_define([libsubid_abi_major], [5])
|
m4_define([libsubid_abi_major], 4)
|
||||||
m4_define([libsubid_abi_minor], [0])
|
m4_define([libsubid_abi_minor], 0)
|
||||||
m4_define([libsubid_abi_micro], [0])
|
m4_define([libsubid_abi_micro], 0)
|
||||||
m4_define([libsubid_abi], [libsubid_abi_major.libsubid_abi_minor.libsubid_abi_micro])
|
m4_define([libsubid_abi], [libsubid_abi_major.libsubid_abi_minor.libsubid_abi_micro])
|
||||||
|
AC_INIT([shadow], [4.15.3], [pkg-shadow-devel@lists.alioth.debian.org], [],
|
||||||
AC_INIT([shadow], [4.19.2], [pkg-shadow-devel@lists.alioth.debian.org], [],
|
|
||||||
[https://github.com/shadow-maint/shadow])
|
[https://github.com/shadow-maint/shadow])
|
||||||
AC_CONFIG_MACRO_DIRS([m4])
|
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
|
||||||
AC_CONFIG_HEADERS([config.h])
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([1.11 foreign dist-xz subdir-objects tar-pax])
|
AM_INIT_AUTOMAKE([1.11 foreign dist-xz subdir-objects tar-pax])
|
||||||
|
AC_CONFIG_MACRO_DIRS([m4])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_SUBST([AM_DISTCHECK_CONFIGURE_FLAGS], ["$ac_configure_args"])
|
|
||||||
|
|
||||||
AC_SUBST([LIBSUBID_ABI_MAJOR], [libsubid_abi_major])
|
AC_SUBST([LIBSUBID_ABI_MAJOR], [libsubid_abi_major])
|
||||||
AC_SUBST([LIBSUBID_ABI_MINOR], [libsubid_abi_minor])
|
AC_SUBST([LIBSUBID_ABI_MINOR], [libsubid_abi_minor])
|
||||||
@@ -22,8 +17,8 @@ AC_SUBST([LIBSUBID_ABI_MICRO], [libsubid_abi_micro])
|
|||||||
AC_SUBST([LIBSUBID_ABI], [libsubid_abi])
|
AC_SUBST([LIBSUBID_ABI], [libsubid_abi])
|
||||||
|
|
||||||
dnl Some hacks...
|
dnl Some hacks...
|
||||||
test "x$prefix" = "xNONE" && prefix="/usr"
|
test "$prefix" = "NONE" && prefix="/usr"
|
||||||
test "X$prefix" = "X/usr" && exec_prefix=""
|
test "$prefix" = "/usr" && exec_prefix=""
|
||||||
|
|
||||||
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
@@ -35,21 +30,29 @@ AM_MAINTAINER_MODE
|
|||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
|
AC_PROG_YACC
|
||||||
LT_INIT
|
LT_INIT
|
||||||
LT_LIB_DLLOAD
|
LT_LIB_DLLOAD
|
||||||
|
|
||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
|
|
||||||
dnl shadow now uses the libc's shadow implementation
|
dnl Checks for header files.
|
||||||
AC_CHECK_HEADER([shadow.h],[],[AC_MSG_ERROR([You need a libc with shadow.h])])
|
AC_CHECK_HEADERS(crypt.h utmp.h \
|
||||||
|
termio.h sgtty.h sys/ioctl.h paths.h \
|
||||||
|
sys/capability.h sys/random.h \
|
||||||
|
gshadow.h lastlog.h rpc/key_prot.h acl/libacl.h \
|
||||||
|
attr/libattr.h attr/error_context.h)
|
||||||
|
|
||||||
AC_CHECK_FUNCS([arc4random_buf \
|
dnl shadow now uses the libc's shadow implementation
|
||||||
getentropy getrandom \
|
AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])])
|
||||||
lckpwdf lutimes \
|
|
||||||
updwtmpx innetgr \
|
AC_CHECK_FUNCS(arc4random_buf futimes \
|
||||||
|
getentropy getrandom getspnam getusershell \
|
||||||
|
initgroups lckpwdf lutimes \
|
||||||
|
setgroups updwtmpx innetgr \
|
||||||
getspnam_r \
|
getspnam_r \
|
||||||
rpmatch \
|
rpmatch \
|
||||||
memset_explicit explicit_bzero stpecpy stpeprintf])
|
memset_explicit explicit_bzero stpecpy stpeprintf)
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
@@ -60,230 +63,280 @@ AC_CHECK_MEMBERS([struct utmpx.ut_name,
|
|||||||
struct utmpx.ut_addr,
|
struct utmpx.ut_addr,
|
||||||
struct utmpx.ut_addr_v6,
|
struct utmpx.ut_addr_v6,
|
||||||
struct utmpx.ut_time,
|
struct utmpx.ut_time,
|
||||||
struct utmpx.ut_xtime],[],[],[[#include <utmpx.h>]])
|
struct utmpx.ut_xtime],,,[[#include <utmpx.h>]])
|
||||||
|
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
|
AC_TYPE_GETGROUPS
|
||||||
AC_FUNC_UTIME_NULL
|
AC_FUNC_UTIME_NULL
|
||||||
AC_REPLACE_FUNCS([putgrent putpwent putspent])
|
AC_REPLACE_FUNCS(putgrent putpwent putspent)
|
||||||
AC_REPLACE_FUNCS([sgetgrent sgetpwent sgetspent])
|
AC_REPLACE_FUNCS(sgetgrent sgetpwent sgetspent)
|
||||||
|
|
||||||
AC_CHECK_FUNC([setpgrp])
|
AC_CHECK_FUNC(setpgrp)
|
||||||
AC_CHECK_FUNC([secure_getenv],
|
AC_CHECK_FUNC(secure_getenv, [AC_DEFINE(HAS_SECURE_GETENV,
|
||||||
[AC_DEFINE([HAS_SECURE_GETENV],[1],[Defined to 1 if you have the declaration of 'secure_getenv'])]
|
1,
|
||||||
)
|
[Defined to 1 if you have the declaration of 'secure_getenv'])])
|
||||||
|
|
||||||
AC_CACHE_CHECK([location of shared mail directory], [shadow_cv_maildir],
|
if test "$ac_cv_header_shadow_h" = "yes"; then
|
||||||
|
AC_CACHE_CHECK(for working shadow group support,
|
||||||
|
ac_cv_libc_shadowgrp,
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([
|
||||||
|
#include <shadow.h>
|
||||||
|
#ifdef HAVE_GSHADOW_H
|
||||||
|
#include <gshadow.h>
|
||||||
|
#endif
|
||||||
|
int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
struct sgrp *sg = sgetsgent("test:x::");
|
||||||
|
/* NYS libc on Red Hat 3.0.3 has broken shadow group support */
|
||||||
|
return !sg || !sg->sg_adm || !sg->sg_mem;
|
||||||
|
}]
|
||||||
|
)],
|
||||||
|
[ac_cv_libc_shadowgrp=yes],
|
||||||
|
[ac_cv_libc_shadowgrp=no],
|
||||||
|
[ac_cv_libc_shadowgrp=no]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "$ac_cv_libc_shadowgrp" = "yes"; then
|
||||||
|
AC_DEFINE(HAVE_SHADOWGRP, 1, [Have working shadow group support in libc])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([location of shared mail directory], shadow_cv_maildir,
|
||||||
[for shadow_cv_maildir in /var/mail /var/spool/mail /usr/spool/mail /usr/mail none; do
|
[for shadow_cv_maildir in /var/mail /var/spool/mail /usr/spool/mail /usr/mail none; do
|
||||||
if test -d $shadow_cv_maildir; then
|
if test -d $shadow_cv_maildir; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done])
|
done])
|
||||||
if test $shadow_cv_maildir != none; then
|
if test $shadow_cv_maildir != none; then
|
||||||
AC_DEFINE_UNQUOTED([MAIL_SPOOL_DIR], ["$shadow_cv_maildir"],
|
AC_DEFINE_UNQUOTED(MAIL_SPOOL_DIR, "$shadow_cv_maildir",
|
||||||
[Location of system mail spool directory.])
|
[Location of system mail spool directory.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CACHE_CHECK([location of user mail file], [shadow_cv_mailfile],
|
AC_CACHE_CHECK([location of user mail file], shadow_cv_mailfile,
|
||||||
[for shadow_cv_mailfile in Mailbox mailbox Mail mail .mail none; do
|
[for shadow_cv_mailfile in Mailbox mailbox Mail mail .mail none; do
|
||||||
if test -f $HOME/$shadow_cv_mailfile; then
|
if test -f $HOME/$shadow_cv_mailfile; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done])
|
done])
|
||||||
if test $shadow_cv_mailfile != none; then
|
if test $shadow_cv_mailfile != none; then
|
||||||
AC_DEFINE_UNQUOTED([MAIL_SPOOL_FILE], ["$shadow_cv_mailfile"],
|
AC_DEFINE_UNQUOTED(MAIL_SPOOL_FILE, "$shadow_cv_mailfile",
|
||||||
[Name of user's mail spool file if stored in user's home directory.])
|
[Name of user's mail spool file if stored in user's home directory.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CACHE_CHECK([location of faillog/lastlog/wtmp], [shadow_cv_logdir],
|
AC_CACHE_CHECK([location of utmp], shadow_cv_utmpdir,
|
||||||
|
[for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do
|
||||||
|
if test -f $shadow_cv_utmpdir/utmp; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done])
|
||||||
|
if test "$shadow_cv_utmpdir" = "none"; then
|
||||||
|
AC_MSG_WARN(utmp file not found)
|
||||||
|
fi
|
||||||
|
AC_DEFINE_UNQUOTED(_UTMP_FILE, "$shadow_cv_utmpdir/utmp",
|
||||||
|
[Path for utmp file.])
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([location of faillog/lastlog/wtmp], shadow_cv_logdir,
|
||||||
[for shadow_cv_logdir in /var/log /var/adm /usr/adm /etc; do
|
[for shadow_cv_logdir in /var/log /var/adm /usr/adm /etc; do
|
||||||
if test -d $shadow_cv_logdir; then
|
if test -d $shadow_cv_logdir; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done])
|
done])
|
||||||
AC_DEFINE_UNQUOTED([FAILLOG_FILE], ["$shadow_cv_logdir/faillog"],
|
AC_DEFINE_UNQUOTED(_WTMP_FILE, "$shadow_cv_logdir/wtmp",
|
||||||
|
[Path for wtmp file.])
|
||||||
|
AC_DEFINE_UNQUOTED(LASTLOG_FILE, "$shadow_cv_logdir/lastlog",
|
||||||
|
[Path for lastlog file.])
|
||||||
|
AC_DEFINE_UNQUOTED(FAILLOG_FILE, "$shadow_cv_logdir/faillog",
|
||||||
[Path for faillog file.])
|
[Path for faillog file.])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([PASSWD_PROGRAM], ["$exec_prefix/bin/passwd"],
|
AC_CACHE_CHECK([location of the passwd program], shadow_cv_passwd_dir,
|
||||||
|
[if test -f /usr/bin/passwd; then
|
||||||
|
shadow_cv_passwd_dir=/usr/bin
|
||||||
|
else
|
||||||
|
shadow_cv_passwd_dir=/bin
|
||||||
|
fi])
|
||||||
|
AC_DEFINE_UNQUOTED(PASSWD_PROGRAM, "$shadow_cv_passwd_dir/passwd",
|
||||||
[Path to passwd program.])
|
[Path to passwd program.])
|
||||||
|
|
||||||
AC_ARG_ENABLE([shadowgrp],
|
dnl XXX - quick hack, should disappear before anyone notices :).
|
||||||
|
dnl XXX - I just read the above message :).
|
||||||
|
if test "$ac_cv_func_ruserok" = "yes"; then
|
||||||
|
AC_DEFINE(RLOGIN, 1, [Define if login should support the -r flag for rlogind.])
|
||||||
|
AC_DEFINE(RUSEROK, 0, [Define to the ruserok() "success" return value (0 or 1).])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(shadowgrp,
|
||||||
[AS_HELP_STRING([--enable-shadowgrp], [enable shadow group support @<:@default=yes@:>@])],
|
[AS_HELP_STRING([--enable-shadowgrp], [enable shadow group support @<:@default=yes@:>@])],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes) enable_shadowgrp="yes" ;;
|
yes) enable_shadowgrp="yes" ;;
|
||||||
no) enable_shadowgrp="no" ;;
|
no) enable_shadowgrp="no" ;;
|
||||||
*) AC_MSG_ERROR([bad value ${enableval} for --enable-shadowgrp]) ;;
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-shadowgrp) ;;
|
||||||
esac],
|
esac],
|
||||||
[enable_shadowgrp="yes"]
|
[enable_shadowgrp="yes"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE([man],
|
AC_ARG_ENABLE(man,
|
||||||
[AS_HELP_STRING([--enable-man],
|
[AS_HELP_STRING([--enable-man],
|
||||||
[regenerate roff man pages from Docbook @<:@default=no@:>@])],
|
[regenerate roff man pages from Docbook @<:@default=no@:>@])],
|
||||||
[enable_man="${enableval}"],
|
[enable_man="${enableval}"],
|
||||||
[enable_man="no"]
|
[enable_man="no"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE([account-tools-setuid],
|
AC_ARG_ENABLE(account-tools-setuid,
|
||||||
[AS_HELP_STRING([--enable-account-tools-setuid],
|
[AS_HELP_STRING([--enable-account-tools-setuid],
|
||||||
[Install the user and group management tools setuid and authenticate the callers. This requires --with-libpam.])],
|
[Install the user and group management tools setuid and authenticate the callers. This requires --with-libpam.])],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes) enable_acct_tools_setuid="yes" ;;
|
yes) enable_acct_tools_setuid="yes" ;;
|
||||||
no) enable_acct_tools_setuid="no" ;;
|
no) enable_acct_tools_setuid="no" ;;
|
||||||
*) AC_MSG_ERROR([bad value ${enableval} for --enable-account-tools-setuid])
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-account-tools-setuid)
|
||||||
;;
|
;;
|
||||||
esac],
|
esac],
|
||||||
[enable_acct_tools_setuid="no"]
|
[enable_acct_tools_setuid="no"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE([subordinate-ids],
|
AC_ARG_ENABLE(subordinate-ids,
|
||||||
[AS_HELP_STRING([--enable-subordinate-ids],
|
[AS_HELP_STRING([--enable-subordinate-ids],
|
||||||
[support subordinate ids @<:@default=yes@:>@])],
|
[support subordinate ids @<:@default=yes@:>@])],
|
||||||
[enable_subids="${enableval}"],
|
[enable_subids="${enableval}"],
|
||||||
[enable_subids="maybe"]
|
[enable_subids="maybe"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE([lastlog],
|
AC_ARG_ENABLE(lastlog,
|
||||||
[AS_HELP_STRING([--enable-lastlog],
|
[AS_HELP_STRING([--enable-lastlog],
|
||||||
[enable lastlog @<:@default=no@:>@])],
|
[enable lastlog @<:@default=no@:>@])],
|
||||||
[enable_lastlog="${enableval}"],
|
[enable_lastlog="${enableval}"],
|
||||||
[enable_lastlog="no"]
|
[enable_lastlog="no"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE([logind],
|
AC_ARG_ENABLE(logind,
|
||||||
[AS_HELP_STRING([--disable-logind],
|
[AS_HELP_STRING([--enable-logind],
|
||||||
[disable logind integration])],
|
[enable logind @<:@default=yes@:>@])],
|
||||||
[
|
[enable_logind="${enableval}"],
|
||||||
AS_CASE([${enableval}],
|
|
||||||
[yes],[],
|
|
||||||
[no],[],
|
|
||||||
[AC_MSG_ERROR([bad parameter value for --enable-logind=${enableval}. ]dnl
|
|
||||||
[Supported values are: --enable-logind (or --enable-logind=yes) and --disable-logind (or --enable-logind=no).])]
|
|
||||||
)
|
|
||||||
],
|
|
||||||
[enable_logind="yes"]
|
[enable_logind="yes"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_WITH([audit],
|
AC_ARG_WITH(audit,
|
||||||
[AS_HELP_STRING([--with-audit], [use auditing support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-audit], [use auditing support @<:@default=yes if found@:>@])],
|
||||||
[with_audit=$withval], [with_audit=maybe])
|
[with_audit=$withval], [with_audit=maybe])
|
||||||
AC_ARG_WITH([libpam],
|
AC_ARG_WITH(libpam,
|
||||||
[AS_HELP_STRING([--with-libpam], [use libpam for PAM support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-libpam], [use libpam for PAM support @<:@default=yes if found@:>@])],
|
||||||
[with_libpam=$withval], [with_libpam=maybe])
|
[with_libpam=$withval], [with_libpam=maybe])
|
||||||
AC_ARG_WITH([btrfs],
|
AC_ARG_WITH(btrfs,
|
||||||
[AS_HELP_STRING([--with-btrfs], [add BtrFS support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-btrfs], [add BtrFS support @<:@default=yes if found@:>@])],
|
||||||
[with_btrfs=$withval], [with_btrfs=maybe])
|
[with_btrfs=$withval], [with_btrfs=maybe])
|
||||||
AC_ARG_WITH([selinux],
|
AC_ARG_WITH(selinux,
|
||||||
[AS_HELP_STRING([--with-selinux], [use SELinux support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-selinux], [use SELinux support @<:@default=yes if found@:>@])],
|
||||||
[with_selinux=$withval], [with_selinux=maybe])
|
[with_selinux=$withval], [with_selinux=maybe])
|
||||||
AC_ARG_WITH([acl],
|
AC_ARG_WITH(acl,
|
||||||
[AS_HELP_STRING([--with-acl], [use ACL support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-acl], [use ACL support @<:@default=yes if found@:>@])],
|
||||||
[with_acl=$withval], [with_acl=maybe])
|
[with_acl=$withval], [with_acl=maybe])
|
||||||
AC_ARG_WITH([attr],
|
AC_ARG_WITH(attr,
|
||||||
[AS_HELP_STRING([--with-attr], [use Extended Attribute support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-attr], [use Extended Attribute support @<:@default=yes if found@:>@])],
|
||||||
[with_attr=$withval], [with_attr=maybe])
|
[with_attr=$withval], [with_attr=maybe])
|
||||||
AC_ARG_WITH([skey],
|
AC_ARG_WITH(skey,
|
||||||
[AS_HELP_STRING([--with-skey], [use S/Key support @<:@default=no@:>@])],
|
[AS_HELP_STRING([--with-skey], [use S/Key support @<:@default=no@:>@])],
|
||||||
[with_skey=$withval], [with_skey=no])
|
[with_skey=$withval], [with_skey=no])
|
||||||
AC_ARG_WITH([tcb],
|
AC_ARG_WITH(tcb,
|
||||||
[AS_HELP_STRING([--with-tcb], [use tcb support (incomplete) @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-tcb], [use tcb support (incomplete) @<:@default=yes if found@:>@])],
|
||||||
[with_tcb=$withval], [with_tcb=maybe])
|
[with_tcb=$withval], [with_tcb=maybe])
|
||||||
AC_ARG_WITH([sha-crypt],
|
AC_ARG_WITH(sha-crypt,
|
||||||
[AS_HELP_STRING([--with-sha-crypt], [allow the SHA256 and SHA512 password encryption algorithms @<:@default=yes@:>@])],
|
[AS_HELP_STRING([--with-sha-crypt], [allow the SHA256 and SHA512 password encryption algorithms @<:@default=yes@:>@])],
|
||||||
[with_sha_crypt=$withval], [with_sha_crypt=yes])
|
[with_sha_crypt=$withval], [with_sha_crypt=yes])
|
||||||
AC_ARG_WITH([bcrypt],
|
AC_ARG_WITH(bcrypt,
|
||||||
[AS_HELP_STRING([--with-bcrypt], [allow the bcrypt password encryption algorithm @<:@default=no@:>@])],
|
[AS_HELP_STRING([--with-bcrypt], [allow the bcrypt password encryption algorithm @<:@default=no@:>@])],
|
||||||
[with_bcrypt=$withval], [with_bcrypt=no])
|
[with_bcrypt=$withval], [with_bcrypt=no])
|
||||||
AC_ARG_WITH([yescrypt],
|
AC_ARG_WITH(yescrypt,
|
||||||
[AS_HELP_STRING([--with-yescrypt], [allow the yescrypt password encryption algorithm @<:@default=no@:>@])],
|
[AS_HELP_STRING([--with-yescrypt], [allow the yescrypt password encryption algorithm @<:@default=no@:>@])],
|
||||||
[with_yescrypt=$withval], [with_yescrypt=no])
|
[with_yescrypt=$withval], [with_yescrypt=no])
|
||||||
AC_ARG_WITH([nscd],
|
AC_ARG_WITH(nscd,
|
||||||
[AS_HELP_STRING([--with-nscd], [enable support for nscd @<:@default=yes@:>@])],
|
[AS_HELP_STRING([--with-nscd], [enable support for nscd @<:@default=yes@:>@])],
|
||||||
[with_nscd=$withval], [with_nscd=yes])
|
[with_nscd=$withval], [with_nscd=yes])
|
||||||
AC_ARG_WITH([sssd],
|
AC_ARG_WITH(sssd,
|
||||||
[AS_HELP_STRING([--with-sssd], [enable support for flushing sssd caches @<:@default=yes@:>@])],
|
[AS_HELP_STRING([--with-sssd], [enable support for flushing sssd caches @<:@default=yes@:>@])],
|
||||||
[with_sssd=$withval], [with_sssd=yes])
|
[with_sssd=$withval], [with_sssd=yes])
|
||||||
AC_ARG_WITH([group-name-max-length],
|
AC_ARG_WITH(group-name-max-length,
|
||||||
[AS_HELP_STRING([--with-group-name-max-length], [set max group name length @<:@default=32@:>@])],
|
[AS_HELP_STRING([--with-group-name-max-length], [set max group name length @<:@default=32@:>@])],
|
||||||
[with_group_name_max_length=$withval], [with_group_name_max_length=yes])
|
[with_group_name_max_length=$withval], [with_group_name_max_length=yes])
|
||||||
AC_ARG_WITH([su],
|
AC_ARG_WITH(su,
|
||||||
[AS_HELP_STRING([--with-su], [build and install su program and man page @<:@default=yes@:>@])],
|
[AS_HELP_STRING([--with-su], [build and install su program and man page @<:@default=yes@:>@])],
|
||||||
[with_su=$withval], [with_su=yes])
|
[with_su=$withval], [with_su=yes])
|
||||||
AC_ARG_WITH([libbsd],
|
AC_ARG_WITH(libbsd,
|
||||||
[AS_HELP_STRING([--with-libbsd], [use libbsd support @<:@default=yes if found@:>@])],
|
[AS_HELP_STRING([--with-libbsd], [use libbsd support @<:@default=yes if found@:>@])],
|
||||||
[with_libbsd=$withval], [with_libbsd=yes])
|
[with_libbsd=$withval], [with_libbsd=yes])
|
||||||
|
|
||||||
if test "X$with_group_name_max_length" = "Xno" ; then
|
if test "$with_group_name_max_length" = "no" ; then
|
||||||
with_group_name_max_length=0
|
with_group_name_max_length=0
|
||||||
elif test "X$with_group_name_max_length" = "Xyes" ; then
|
elif test "$with_group_name_max_length" = "yes" ; then
|
||||||
with_group_name_max_length=32
|
with_group_name_max_length=32
|
||||||
fi
|
fi
|
||||||
AC_DEFINE_UNQUOTED([GROUP_NAME_MAX_LENGTH], [$with_group_name_max_length], [max group name length])
|
AC_DEFINE_UNQUOTED(GROUP_NAME_MAX_LENGTH, $with_group_name_max_length, [max group name length])
|
||||||
AC_SUBST([GROUP_NAME_MAX_LENGTH])
|
AC_SUBST(GROUP_NAME_MAX_LENGTH)
|
||||||
GROUP_NAME_MAX_LENGTH="$with_group_name_max_length"
|
GROUP_NAME_MAX_LENGTH="$with_group_name_max_length"
|
||||||
|
|
||||||
|
|
||||||
AM_CONDITIONAL([USE_SHA_CRYPT], [test "x$with_sha_crypt" = "xyes"])
|
AM_CONDITIONAL(USE_SHA_CRYPT, test "x$with_sha_crypt" = "xyes")
|
||||||
if test "X$with_sha_crypt" = "Xyes"; then
|
if test "$with_sha_crypt" = "yes"; then
|
||||||
AC_DEFINE([USE_SHA_CRYPT], [1], [Define to allow the SHA256 and SHA512 password encryption algorithms])
|
AC_DEFINE(USE_SHA_CRYPT, 1, [Define to allow the SHA256 and SHA512 password encryption algorithms])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([USE_BCRYPT], [test "x$with_bcrypt" = "xyes"])
|
AM_CONDITIONAL(USE_BCRYPT, test "x$with_bcrypt" = "xyes")
|
||||||
if test "X$with_bcrypt" = "Xyes"; then
|
if test "$with_bcrypt" = "yes"; then
|
||||||
AC_DEFINE([USE_BCRYPT], [1], [Define to allow the bcrypt password encryption algorithm])
|
AC_DEFINE(USE_BCRYPT, 1, [Define to allow the bcrypt password encryption algorithm])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([USE_YESCRYPT], [test "x$with_yescrypt" = "xyes"])
|
AM_CONDITIONAL(USE_YESCRYPT, test "x$with_yescrypt" = "xyes")
|
||||||
if test "X$with_yescrypt" = "Xyes"; then
|
if test "$with_yescrypt" = "yes"; then
|
||||||
AC_DEFINE([USE_YESCRYPT], [1], [Define to allow the yescrypt password encryption algorithm])
|
AC_DEFINE(USE_YESCRYPT, 1, [Define to allow the yescrypt password encryption algorithm])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "X$with_nscd" = "Xyes"; then
|
if test "$with_nscd" = "yes"; then
|
||||||
AC_CHECK_FUNC([posix_spawn],
|
AC_CHECK_FUNC(posix_spawn,
|
||||||
[AC_DEFINE([USE_NSCD], [1], [Define to support flushing of nscd caches])],
|
[AC_DEFINE(USE_NSCD, 1, [Define to support flushing of nscd caches])],
|
||||||
[AC_MSG_ERROR([posix_spawn is needed for nscd support])])
|
[AC_MSG_ERROR([posix_spawn is needed for nscd support])])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "X$with_sssd" = "Xyes"; then
|
if test "$with_sssd" = "yes"; then
|
||||||
AC_CHECK_FUNC([posix_spawn],
|
AC_CHECK_FUNC(posix_spawn,
|
||||||
[AC_DEFINE([USE_SSSD], [1], [Define to support flushing of sssd caches])],
|
[AC_DEFINE(USE_SSSD, 1, [Define to support flushing of sssd caches])],
|
||||||
[AC_MSG_ERROR([posix_spawn is needed for sssd support])])
|
[AC_MSG_ERROR([posix_spawn is needed for sssd support])])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AS_IF([test "$with_su" != "no"], [AC_DEFINE([WITH_SU], [1], [Build with su])])
|
AS_IF([test "$with_su" != "no"], AC_DEFINE(WITH_SU, 1, [Build with su]))
|
||||||
AM_CONDITIONAL([WITH_SU], [test "x$with_su" != "xno"])
|
AM_CONDITIONAL([WITH_SU], [test "x$with_su" != "xno"])
|
||||||
|
|
||||||
dnl Check for some functions in libc first, only if not found check for
|
dnl Check for some functions in libc first, only if not found check for
|
||||||
dnl other libraries. This should prevent linking libnsl if not really
|
dnl other libraries. This should prevent linking libnsl if not really
|
||||||
dnl needed (Linux glibc, Irix), but still link it if needed (Solaris).
|
dnl needed (Linux glibc, Irix), but still link it if needed (Solaris).
|
||||||
|
|
||||||
AC_SEARCH_LIBS([gethostbyname], [nsl])
|
AC_SEARCH_LIBS(gethostbyname, nsl)
|
||||||
|
|
||||||
PKG_CHECK_MODULES([CMOCKA], [cmocka], [have_cmocka="yes"],
|
PKG_CHECK_MODULES([CMOCKA], [cmocka], [have_cmocka="yes"],
|
||||||
[AC_MSG_WARN([libcmocka not found, cmocka tests will not be built])])
|
[AC_MSG_WARN([libcmocka not found, cmocka tests will not be built])])
|
||||||
AM_CONDITIONAL([HAVE_CMOCKA], [test x$have_cmocka = xyes])
|
AM_CONDITIONAL([HAVE_CMOCKA], [test x$have_cmocka = xyes])
|
||||||
|
|
||||||
AC_ARG_ENABLE([vendordir],
|
|
||||||
[AS_HELP_STRING([--enable-vendordir=DIR], [Directory for distribution provided configuration files])],[],[])
|
|
||||||
AC_CHECK_LIB([econf],[econf_readDirs],[LIBECONF="-leconf"],[LIBECONF=""])
|
AC_CHECK_LIB([econf],[econf_readDirs],[LIBECONF="-leconf"],[LIBECONF=""])
|
||||||
if test -n "$LIBECONF"; then
|
if test -n "$LIBECONF"; then
|
||||||
AC_DEFINE_UNQUOTED([VENDORDIR], ["$enable_vendordir"],
|
AC_DEFINE_UNQUOTED([VENDORDIR], ["$enable_vendordir"],
|
||||||
[Directory for distribution provided configuration files])
|
[Directory for distribution provided configuration files])
|
||||||
ECONF_CPPFLAGS="-DUSE_ECONF=1"
|
ECONF_CPPFLAGS="-DUSE_ECONF=1"
|
||||||
|
AC_ARG_ENABLE([vendordir],
|
||||||
|
AS_HELP_STRING([--enable-vendordir=DIR], [Directory for distribution provided configuration files]),,[])
|
||||||
fi
|
fi
|
||||||
AC_SUBST([ECONF_CPPFLAGS])
|
AC_SUBST(ECONF_CPPFLAGS)
|
||||||
AC_SUBST([LIBECONF])
|
AC_SUBST(LIBECONF)
|
||||||
AC_SUBST([VENDORDIR], [$enable_vendordir])
|
AC_SUBST([VENDORDIR], [$enable_vendordir])
|
||||||
if test "x$enable_vendordir" != x; then
|
if test "x$enable_vendordir" != x; then
|
||||||
AC_DEFINE([HAVE_VENDORDIR], [1], [Define to support vendor settings.])
|
AC_DEFINE(HAVE_VENDORDIR, 1, [Define to support vendor settings.])
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([HAVE_VENDORDIR], [test "x$enable_vendordir" != x])
|
AM_CONDITIONAL([HAVE_VENDORDIR], [test "x$enable_vendordir" != x])
|
||||||
|
|
||||||
if test "X$enable_shadowgrp" = "Xyes"; then
|
if test "$enable_shadowgrp" = "yes"; then
|
||||||
AC_DEFINE([SHADOWGRP], [1], [Define to support the shadow group file.])
|
AC_DEFINE(SHADOWGRP, 1, [Define to support the shadow group file.])
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([SHADOWGRP], [test "x$enable_shadowgrp" = "xyes"])
|
AM_CONDITIONAL(SHADOWGRP, test "x$enable_shadowgrp" = "xyes")
|
||||||
|
|
||||||
if test "X$enable_man" = "Xyes"; then
|
if test "$enable_man" = "yes"; then
|
||||||
dnl
|
dnl
|
||||||
dnl Check for xsltproc
|
dnl Check for xsltproc
|
||||||
dnl
|
dnl
|
||||||
@@ -295,21 +348,21 @@ if test "X$enable_man" = "Xyes"; then
|
|||||||
|
|
||||||
dnl check for DocBook DTD and stylesheets in the local catalog.
|
dnl check for DocBook DTD and stylesheets in the local catalog.
|
||||||
JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.5//EN],
|
JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.5//EN],
|
||||||
[DocBook XML DTD V4.5], [], [enable_man=no])
|
[DocBook XML DTD V4.5], [], enable_man=no)
|
||||||
JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
|
JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
|
||||||
[DocBook XSL Stylesheets >= 1.70.1], [], [enable_man=no])
|
[DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([ENABLE_REGENERATE_MAN], [test "x$enable_man" != "xno"])
|
AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")
|
||||||
|
|
||||||
if test "$enable_subids" != "no"; then
|
if test "$enable_subids" != "no"; then
|
||||||
dnl
|
dnl
|
||||||
dnl FIXME: check if 32 bit UIDs/GIDs are supported by libc
|
dnl FIXME: check if 32 bit UIDs/GIDs are supported by libc
|
||||||
dnl
|
dnl
|
||||||
AC_CHECK_SIZEOF([uid_t],[], [[#include "sys/types.h"]])
|
AC_CHECK_SIZEOF([uid_t],, [#include "sys/types.h"])
|
||||||
AC_CHECK_SIZEOF([gid_t],[], [[#include "sys/types.h"]])
|
AC_CHECK_SIZEOF([gid_t],, [#include "sys/types.h"])
|
||||||
|
|
||||||
if test "$ac_cv_sizeof_uid_t" -ge 4 && test "$ac_cv_sizeof_gid_t" -ge 4; then
|
if test "$ac_cv_sizeof_uid_t" -ge 4 && test "$ac_cv_sizeof_gid_t" -ge 4; then
|
||||||
AC_DEFINE([ENABLE_SUBIDS], [1], [Define to support the subordinate IDs.])
|
AC_DEFINE(ENABLE_SUBIDS, 1, [Define to support the subordinate IDs.])
|
||||||
enable_subids="yes"
|
enable_subids="yes"
|
||||||
else
|
else
|
||||||
if test "x$enable_subids" = "xyes"; then
|
if test "x$enable_subids" = "xyes"; then
|
||||||
@@ -318,54 +371,55 @@ if test "$enable_subids" != "no"; then
|
|||||||
enable_subids="no"
|
enable_subids="no"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([ENABLE_SUBIDS], [test "x$enable_subids" != "xno"])
|
AM_CONDITIONAL(ENABLE_SUBIDS, test "x$enable_subids" != "xno")
|
||||||
|
|
||||||
if test "X$enable_lastlog" = "Xyes" && test "X$ac_cv_header_lastlog_h" = "Xyes"; then
|
if test "$enable_lastlog" = "yes" && test "$ac_cv_header_lastlog_h" = "yes"; then
|
||||||
AC_CACHE_CHECK([for ll_host in struct lastlog],
|
AC_CACHE_CHECK(for ll_host in struct lastlog,
|
||||||
[ac_cv_struct_lastlog_ll_host],
|
ac_cv_struct_lastlog_ll_host,
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <lastlog.h>]],
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <lastlog.h>],
|
||||||
[struct lastlog ll; char *cp = ll.ll_host;])],
|
[struct lastlog ll; char *cp = ll.ll_host;]
|
||||||
|
)],
|
||||||
[ac_cv_struct_lastlog_ll_host=yes],
|
[ac_cv_struct_lastlog_ll_host=yes],
|
||||||
[ac_cv_struct_lastlog_ll_host=no])
|
[ac_cv_struct_lastlog_ll_host=no]
|
||||||
]
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "X$ac_cv_struct_lastlog_ll_host" = "Xyes"; then
|
if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
|
||||||
AC_DEFINE([HAVE_LL_HOST], [1],
|
AC_DEFINE(HAVE_LL_HOST, 1,
|
||||||
[Define if struct lastlog has ll_host])
|
[Define if struct lastlog has ll_host])
|
||||||
AC_DEFINE([ENABLE_LASTLOG], [1], [Define to support lastlog.])
|
AC_DEFINE(ENABLE_LASTLOG, 1, [Define to support lastlog.])
|
||||||
enable_lastlog="yes"
|
enable_lastlog="yes"
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR([Cannot enable support for lastlog on systems where the data structures aren't available])
|
AC_MSG_ERROR([Cannot enable support for lastlog on systems where the data structures aren't available])
|
||||||
enable_lastlog="no"
|
enable_subids="no"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([ENABLE_LASTLOG], [test "x$enable_lastlog" != "xno"])
|
AM_CONDITIONAL(ENABLE_LASTLOG, test "x$enable_lastlog" != "xno")
|
||||||
|
|
||||||
AC_SUBST([LIBSYSTEMD])
|
AC_SUBST(LIBSYSTEMD)
|
||||||
if test "X$enable_logind" = "Xyes"; then
|
if test "$enable_logind" = "yes"; then
|
||||||
AC_CHECK_LIB([systemd], [sd_session_get_remote_host],
|
AC_CHECK_LIB(systemd, sd_session_get_remote_host,
|
||||||
[
|
[enable_logind="yes"; [LIBSYSTEMD=-lsystemd];
|
||||||
LIBSYSTEMD=-lsystemd
|
AC_DEFINE(ENABLE_LOGIND, 1,
|
||||||
AC_DEFINE([ENABLE_LOGIND], [1], [Define to manage session support with logind.])
|
[Define to manage session support with logind.])],
|
||||||
],[
|
[enable_logind="no"])
|
||||||
AC_MSG_ERROR([libsystemd not found. If logind integration is not required, disable it using the --disable-logind option. ]dnl
|
|
||||||
[ If logind integration is required, consider installing systemd or another package that provides libsystemd.])
|
|
||||||
]
|
|
||||||
)
|
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([ENABLE_LOGIND], [test "X$enable_logind" = "Xyes"])
|
AM_CONDITIONAL(ENABLE_LOGIND, test "x$enable_logind" != "xno")
|
||||||
|
|
||||||
AC_CHECK_LIB([crypt], [crypt], [LIBCRYPT=-lcrypt],
|
AC_SUBST(LIBCRYPT)
|
||||||
|
AC_CHECK_LIB(crypt, crypt, [LIBCRYPT=-lcrypt],
|
||||||
[AC_MSG_ERROR([crypt() not found])])
|
[AC_MSG_ERROR([crypt() not found])])
|
||||||
AC_SUBST([LIBCRYPT])
|
|
||||||
|
|
||||||
AC_SUBST([LIBBSD])
|
AC_SUBST(LIYESCRYPT)
|
||||||
|
AC_CHECK_LIB(crypt, crypt, [LIYESCRYPT=-lcrypt],
|
||||||
|
[AC_MSG_ERROR([crypt() not found])])
|
||||||
|
|
||||||
|
AC_SUBST(LIBBSD)
|
||||||
if test "$with_libbsd" != "no"; then
|
if test "$with_libbsd" != "no"; then
|
||||||
AC_SEARCH_LIBS([readpassphrase], [bsd], [], [
|
AC_SEARCH_LIBS([readpassphrase], [bsd], [], [
|
||||||
AC_MSG_ERROR([readpassphrase() is missing, either from libc or libbsd])
|
AC_MSG_ERROR([readpassphrase() is missing, either from libc or libbsd])
|
||||||
])
|
])
|
||||||
AS_IF([test "X$ac_cv_search_readpassphrase" = "X-lbsd"], [
|
AS_IF([test "$ac_cv_search_readpassphrase" = "-lbsd"], [
|
||||||
PKG_CHECK_MODULES([LIBBSD], [libbsd-overlay])
|
PKG_CHECK_MODULES([LIBBSD], [libbsd-overlay])
|
||||||
])
|
])
|
||||||
dnl Make sure either the libc or libbsd provide the header.
|
dnl Make sure either the libc or libbsd provide the header.
|
||||||
@@ -376,29 +430,29 @@ if test "$with_libbsd" != "no"; then
|
|||||||
AC_MSG_ERROR([readpassphrase.h is missing])
|
AC_MSG_ERROR([readpassphrase.h is missing])
|
||||||
])
|
])
|
||||||
CFLAGS="$save_CFLAGS"
|
CFLAGS="$save_CFLAGS"
|
||||||
AC_DEFINE([WITH_LIBBSD], [1], [Build shadow with libbsd support])
|
AC_DEFINE(WITH_LIBBSD, 1, [Build shadow with libbsd support])
|
||||||
else
|
else
|
||||||
AC_DEFINE([WITH_LIBBSD], [0], [Build shadow without libbsd support])
|
AC_DEFINE(WITH_LIBBSD, 0, [Build shadow without libbsd support])
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([WITH_LIBBSD], [test x$with_libbsd = xyes])
|
AM_CONDITIONAL(WITH_LIBBSD, test x$with_libbsd = xyes)
|
||||||
|
|
||||||
AC_SUBST([LIBACL])
|
AC_SUBST(LIBACL)
|
||||||
if test "$with_acl" != "no"; then
|
if test "$with_acl" != "no"; then
|
||||||
AC_CHECK_HEADERS([acl/libacl.h attr/error_context.h], [acl_header="yes"], [acl_header="no"])
|
AC_CHECK_HEADERS(acl/libacl.h attr/error_context.h, [acl_header="yes"], [acl_header="no"])
|
||||||
if test "X$acl_header$with_acl" = "Xnoyes" ; then
|
if test "$acl_header$with_acl" = "noyes" ; then
|
||||||
AC_MSG_ERROR([acl/libacl.h or attr/error_context.h is missing])
|
AC_MSG_ERROR([acl/libacl.h or attr/error_context.h is missing])
|
||||||
elif test "X$acl_header" = "Xyes" ; then
|
elif test "$acl_header" = "yes" ; then
|
||||||
AC_CHECK_LIB([acl], [perm_copy_file],
|
AC_CHECK_LIB(acl, perm_copy_file,
|
||||||
[AC_CHECK_LIB([acl], [perm_copy_fd],
|
[AC_CHECK_LIB(acl, perm_copy_fd,
|
||||||
[acl_lib="yes"],
|
[acl_lib="yes"],
|
||||||
[acl_lib="no"])],
|
[acl_lib="no"])],
|
||||||
[acl_lib="no"])
|
[acl_lib="no"])
|
||||||
if test "X$acl_lib$with_acl" = "Xnoyes" ; then
|
if test "$acl_lib$with_acl" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libacl not found])
|
AC_MSG_ERROR([libacl not found])
|
||||||
elif test "X$acl_lib" = "Xno" ; then
|
elif test "$acl_lib" = "no" ; then
|
||||||
with_acl="no"
|
with_acl="no"
|
||||||
else
|
else
|
||||||
AC_DEFINE([WITH_ACL], [1],
|
AC_DEFINE(WITH_ACL, 1,
|
||||||
[Build shadow with ACL support])
|
[Build shadow with ACL support])
|
||||||
LIBACL="-lacl"
|
LIBACL="-lacl"
|
||||||
with_acl="yes"
|
with_acl="yes"
|
||||||
@@ -408,23 +462,23 @@ if test "$with_acl" != "no"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST([LIBATTR])
|
AC_SUBST(LIBATTR)
|
||||||
if test "$with_attr" != "no"; then
|
if test "$with_attr" != "no"; then
|
||||||
AC_CHECK_HEADERS([attr/libattr.h attr/error_context.h], [attr_header="yes"], [attr_header="no"])
|
AC_CHECK_HEADERS(attr/libattr.h attr/error_context.h, [attr_header="yes"], [attr_header="no"])
|
||||||
if test "X$attr_header$with_attr" = "noyes" ; then
|
if test "$attr_header$with_attr" = "noyes" ; then
|
||||||
AC_MSG_ERROR([attr/libattr.h or attr/error_context.h is missing])
|
AC_MSG_ERROR([attr/libattr.h or attr/error_context.h is missing])
|
||||||
elif test "X$attr_header" = "Xyes" ; then
|
elif test "$attr_header" = "yes" ; then
|
||||||
AC_CHECK_LIB([attr], [attr_copy_file],
|
AC_CHECK_LIB(attr, attr_copy_file,
|
||||||
[AC_CHECK_LIB([attr], [attr_copy_fd],
|
[AC_CHECK_LIB(attr, attr_copy_fd,
|
||||||
[attr_lib="yes"],
|
[attr_lib="yes"],
|
||||||
[attr_lib="no"])],
|
[attr_lib="no"])],
|
||||||
[attr_lib="no"])
|
[attr_lib="no"])
|
||||||
if test "X$attr_lib$with_attr" = "Xnoyes" ; then
|
if test "$attr_lib$with_attr" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libattr not found])
|
AC_MSG_ERROR([libattr not found])
|
||||||
elif test "X$attr_lib" = "Xno" ; then
|
elif test "$attr_lib" = "no" ; then
|
||||||
with_attr="no"
|
with_attr="no"
|
||||||
else
|
else
|
||||||
AC_DEFINE([WITH_ATTR], [1],
|
AC_DEFINE(WITH_ATTR, 1,
|
||||||
[Build shadow with Extended Attributes support])
|
[Build shadow with Extended Attributes support])
|
||||||
LIBATTR="-lattr"
|
LIBATTR="-lattr"
|
||||||
with_attr="yes"
|
with_attr="yes"
|
||||||
@@ -434,29 +488,29 @@ if test "$with_attr" != "no"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST([LIBAUDIT])
|
AC_SUBST(LIBAUDIT)
|
||||||
if test "$with_audit" != "no"; then
|
if test "$with_audit" != "no"; then
|
||||||
AC_CHECK_HEADER([libaudit.h], [audit_header="yes"], [audit_header="no"])
|
AC_CHECK_HEADER(libaudit.h, [audit_header="yes"], [audit_header="no"])
|
||||||
if test "X$audit_header$with_audit" = "Xnoyes" ; then
|
if test "$audit_header$with_audit" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libaudit.h is missing])
|
AC_MSG_ERROR([libaudit.h is missing])
|
||||||
elif test "X$audit_header" = "Xyes"; then
|
elif test "$audit_header" = "yes"; then
|
||||||
AC_CHECK_DECL([AUDIT_ADD_USER],[],[audit_header="no"],[[#include <libaudit.h>]])
|
AC_CHECK_DECL(AUDIT_ADD_USER,,[audit_header="no"],[#include <libaudit.h>])
|
||||||
AC_CHECK_DECL([AUDIT_DEL_USER],[],[audit_header="no"],[[#include <libaudit.h>]])
|
AC_CHECK_DECL(AUDIT_DEL_USER,,[audit_header="no"],[#include <libaudit.h>])
|
||||||
AC_CHECK_DECL([AUDIT_ADD_GROUP],[],[audit_header="no"],[[#include <libaudit.h>]])
|
AC_CHECK_DECL(AUDIT_ADD_GROUP,,[audit_header="no"],[#include <libaudit.h>])
|
||||||
AC_CHECK_DECL([AUDIT_DEL_GROUP],[],[audit_header="no"],[[#include <libaudit.h>]])
|
AC_CHECK_DECL(AUDIT_DEL_GROUP,,[audit_header="no"],[#include <libaudit.h>])
|
||||||
if test "X$audit_header$with_audit" = "Xnoyes" ; then
|
if test "$audit_header$with_audit" = "noyes" ; then
|
||||||
AC_MSG_ERROR([AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h])
|
AC_MSG_ERROR([AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "X$audit_header" = "Xyes"; then
|
if test "$audit_header" = "yes"; then
|
||||||
AC_CHECK_LIB([audit], [audit_log_acct_message],
|
AC_CHECK_LIB(audit, audit_log_acct_message,
|
||||||
[audit_lib="yes"], [audit_lib="no"])
|
[audit_lib="yes"], [audit_lib="no"])
|
||||||
if test "X$audit_lib$with_audit" = "Xnoyes" ; then
|
if test "$audit_lib$with_audit" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libaudit not found])
|
AC_MSG_ERROR([libaudit not found])
|
||||||
elif test "X$audit_lib" = "Xno" ; then
|
elif test "$audit_lib" = "no" ; then
|
||||||
with_audit="no"
|
with_audit="no"
|
||||||
else
|
else
|
||||||
AC_DEFINE([WITH_AUDIT], [1],
|
AC_DEFINE(WITH_AUDIT, 1,
|
||||||
[Define if you want to enable Audit messages])
|
[Define if you want to enable Audit messages])
|
||||||
LIBAUDIT="-laudit"
|
LIBAUDIT="-laudit"
|
||||||
with_audit="yes"
|
with_audit="yes"
|
||||||
@@ -469,43 +523,43 @@ fi
|
|||||||
if test "$with_btrfs" != "no"; then
|
if test "$with_btrfs" != "no"; then
|
||||||
AC_CHECK_HEADERS([sys/statfs.h linux/magic.h linux/btrfs_tree.h], \
|
AC_CHECK_HEADERS([sys/statfs.h linux/magic.h linux/btrfs_tree.h], \
|
||||||
[btrfs_headers="yes"], [btrfs_headers="no"])
|
[btrfs_headers="yes"], [btrfs_headers="no"])
|
||||||
if test "X$btrfs_headers$with_btrfs" = "Xnoyes" ; then
|
if test "$btrfs_headers$with_btrfs" = "noyes" ; then
|
||||||
AC_MSG_ERROR([One of sys/statfs.h linux/magic.h linux/btrfs_tree.h is missing])
|
AC_MSG_ERROR([One of sys/statfs.h linux/magic.h linux/btrfs_tree.h is missing])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "X$btrfs_headers" = "Xyes" ; then
|
if test "$btrfs_headers" = "yes" ; then
|
||||||
AC_DEFINE([WITH_BTRFS], [1], [Build shadow with BtrFS support])
|
AC_DEFINE(WITH_BTRFS, 1, [Build shadow with BtrFS support])
|
||||||
with_btrfs="yes"
|
with_btrfs="yes"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([WITH_BTRFS], [test x$with_btrfs = xyes])
|
AM_CONDITIONAL(WITH_BTRFS, test x$with_btrfs = xyes)
|
||||||
|
|
||||||
AC_SUBST([LIBSELINUX])
|
AC_SUBST(LIBSELINUX)
|
||||||
AC_SUBST([LIBSEMANAGE])
|
AC_SUBST(LIBSEMANAGE)
|
||||||
if test "$with_selinux" != "no"; then
|
if test "$with_selinux" != "no"; then
|
||||||
AC_CHECK_HEADERS([selinux/selinux.h], [selinux_header="yes"], [selinux_header="no"])
|
AC_CHECK_HEADERS(selinux/selinux.h, [selinux_header="yes"], [selinux_header="no"])
|
||||||
if test "X$selinux_header$with_selinux" = "Xnoyes" ; then
|
if test "$selinux_header$with_selinux" = "noyes" ; then
|
||||||
AC_MSG_ERROR([selinux/selinux.h is missing])
|
AC_MSG_ERROR([selinux/selinux.h is missing])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS([semanage/semanage.h], [semanage_header="yes"], [semanage_header="no"])
|
AC_CHECK_HEADERS(semanage/semanage.h, [semanage_header="yes"], [semanage_header="no"])
|
||||||
if test "X$semanage_header$with_selinux" = "Xnoyes" ; then
|
if test "$semanage_header$with_selinux" = "noyes" ; then
|
||||||
AC_MSG_ERROR([semanage/semanage.h is missing])
|
AC_MSG_ERROR([semanage/semanage.h is missing])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "X$selinux_header$semanage_header" = "Xyesyes" ; then
|
if test "$selinux_header$semanage_header" = "yesyes" ; then
|
||||||
AC_CHECK_LIB([selinux], [is_selinux_enabled], [selinux_lib="yes"], [selinux_lib="no"])
|
AC_CHECK_LIB(selinux, is_selinux_enabled, [selinux_lib="yes"], [selinux_lib="no"])
|
||||||
if test "X$selinux_lib$with_selinux" = "Xnoyes" ; then
|
if test "$selinux_lib$with_selinux" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libselinux not found])
|
AC_MSG_ERROR([libselinux not found])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_LIB([semanage], [semanage_connect], [semanage_lib="yes"], [semanage_lib="no"])
|
AC_CHECK_LIB(semanage, semanage_connect, [semanage_lib="yes"], [semanage_lib="no"])
|
||||||
if test "X$semanage_lib$with_selinux" = "Xnoyes" ; then
|
if test "$semanage_lib$with_selinux" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libsemanage not found])
|
AC_MSG_ERROR([libsemanage not found])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "X$selinux_lib$semanage_lib" = "Xyesyes" ; then
|
if test "$selinux_lib$semanage_lib" = "yesyes" ; then
|
||||||
AC_DEFINE([WITH_SELINUX], [1],
|
AC_DEFINE(WITH_SELINUX, 1,
|
||||||
[Build shadow with SELinux support])
|
[Build shadow with SELinux support])
|
||||||
LIBSELINUX="-lselinux"
|
LIBSELINUX="-lselinux"
|
||||||
LIBSEMANAGE="-lsemanage"
|
LIBSEMANAGE="-lsemanage"
|
||||||
@@ -518,19 +572,19 @@ if test "$with_selinux" != "no"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST([LIBTCB])
|
AC_SUBST(LIBTCB)
|
||||||
if test "$with_tcb" != "no"; then
|
if test "$with_tcb" != "no"; then
|
||||||
AC_CHECK_HEADERS([tcb.h], [tcb_header="yes"], [tcb_header="no"])
|
AC_CHECK_HEADERS(tcb.h, [tcb_header="yes"], [tcb_header="no"])
|
||||||
if test "X$tcb_header$with_tcb" = "Xnoyes" ; then
|
if test "$tcb_header$with_tcb" = "noyes" ; then
|
||||||
AC_MSG_ERROR([tcb.h is missing])
|
AC_MSG_ERROR([tcb.h is missing])
|
||||||
elif test "X$tcb_header" = "Xyes" ; then
|
elif test "$tcb_header" = "yes" ; then
|
||||||
AC_CHECK_LIB([tcb], [tcb_is_suspect], [tcb_lib="yes"], [tcb_lib="no"])
|
AC_CHECK_LIB(tcb, tcb_is_suspect, [tcb_lib="yes"], [tcb_lib="no"])
|
||||||
if test "X$tcb_lib$with_tcb" = "Xnoyes" ; then
|
if test "$tcb_lib$with_tcb" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libtcb not found])
|
AC_MSG_ERROR([libtcb not found])
|
||||||
elif test "X$tcb_lib" = "Xno" ; then
|
elif test "$tcb_lib" = "no" ; then
|
||||||
with_tcb="no"
|
with_tcb="no"
|
||||||
else
|
else
|
||||||
AC_DEFINE([WITH_TCB], [1], [Build shadow with tcb support (incomplete)])
|
AC_DEFINE(WITH_TCB, 1, [Build shadow with tcb support (incomplete)])
|
||||||
LIBTCB="-ltcb"
|
LIBTCB="-ltcb"
|
||||||
with_tcb="yes"
|
with_tcb="yes"
|
||||||
fi
|
fi
|
||||||
@@ -538,39 +592,39 @@ if test "$with_tcb" != "no"; then
|
|||||||
with_tcb="no"
|
with_tcb="no"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([WITH_TCB], [test x$with_tcb = xyes])
|
AM_CONDITIONAL(WITH_TCB, test x$with_tcb = xyes)
|
||||||
|
|
||||||
AC_SUBST([LIBPAM])
|
AC_SUBST(LIBPAM)
|
||||||
if test "$with_libpam" != "no"; then
|
if test "$with_libpam" != "no"; then
|
||||||
AC_CHECK_LIB([pam], [pam_start],
|
AC_CHECK_LIB(pam, pam_start,
|
||||||
[pam_lib="yes"], [pam_lib="no"])
|
[pam_lib="yes"], [pam_lib="no"])
|
||||||
if test "X$pam_lib$with_libpam" = "Xnoyes" ; then
|
if test "$pam_lib$with_libpam" = "noyes" ; then
|
||||||
AC_MSG_ERROR([libpam not found])
|
AC_MSG_ERROR(libpam not found)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LIBPAM="-lpam"
|
LIBPAM="-lpam"
|
||||||
pam_conv_function="no"
|
pam_conv_function="no"
|
||||||
|
|
||||||
AC_CHECK_LIB([pam], [openpam_ttyconv],
|
AC_CHECK_LIB(pam, openpam_ttyconv,
|
||||||
[pam_conv_function="openpam_ttyconv"],
|
[pam_conv_function="openpam_ttyconv"],
|
||||||
[AC_CHECK_LIB([pam_misc], [misc_conv],
|
AC_CHECK_LIB(pam_misc, misc_conv,
|
||||||
[pam_conv_function="misc_conv"; LIBPAM="$LIBPAM -lpam_misc"])]
|
[pam_conv_function="misc_conv"; LIBPAM="$LIBPAM -lpam_misc"])
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "X$pam_conv_function$with_libpam" = "Xnoyes" ; then
|
if test "$pam_conv_function$with_libpam" = "noyes" ; then
|
||||||
AC_MSG_ERROR([PAM conversation function not found])
|
AC_MSG_ERROR(PAM conversation function not found)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pam_headers_found=no
|
pam_headers_found=no
|
||||||
AC_CHECK_HEADERS( [security/openpam.h security/pam_misc.h],
|
AC_CHECK_HEADERS( [security/openpam.h security/pam_misc.h],
|
||||||
[ pam_headers_found=yes ; break ], [],
|
[ pam_headers_found=yes ; break ], [],
|
||||||
[[#include <security/pam_appl.h>]] )
|
[ #include <security/pam_appl.h> ] )
|
||||||
if test "X$pam_headers_found$with_libpam" = "Xnoyes" ; then
|
if test "$pam_headers_found$with_libpam" = "noyes" ; then
|
||||||
AC_MSG_ERROR([PAM headers not found])
|
AC_MSG_ERROR(PAM headers not found)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "X$pam_lib$pam_headers_found" = "Xyesyes" && test "$pam_conv_function" != "no" ; then
|
if test "$pam_lib$pam_headers_found" = "yesyes" -a "$pam_conv_function" != "no" ; then
|
||||||
with_libpam="yes"
|
with_libpam="yes"
|
||||||
else
|
else
|
||||||
with_libpam="no"
|
with_libpam="no"
|
||||||
@@ -578,86 +632,87 @@ if test "$with_libpam" != "no"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
dnl Now with_libpam is either yes or no
|
dnl Now with_libpam is either yes or no
|
||||||
if test "X$with_libpam" = "Xyes"; then
|
if test "$with_libpam" = "yes"; then
|
||||||
AC_CHECK_DECLS([PAM_ESTABLISH_CRED,
|
AC_CHECK_DECLS([PAM_ESTABLISH_CRED,
|
||||||
PAM_DELETE_CRED,
|
PAM_DELETE_CRED,
|
||||||
PAM_NEW_AUTHTOK_REQD,
|
PAM_NEW_AUTHTOK_REQD,
|
||||||
PAM_DATA_SILENT],
|
PAM_DATA_SILENT],
|
||||||
[], [], [[#include <security/pam_appl.h>]])
|
[], [], [#include <security/pam_appl.h>])
|
||||||
|
|
||||||
|
|
||||||
save_libs=$LIBS
|
save_libs=$LIBS
|
||||||
LIBS="$LIBS $LIBPAM"
|
LIBS="$LIBS $LIBPAM"
|
||||||
# We do not use AC_CHECK_FUNCS to avoid duplicated definition with
|
# We do not use AC_CHECK_FUNCS to avoid duplicated definition with
|
||||||
# Linux PAM.
|
# Linux PAM.
|
||||||
AC_CHECK_FUNC([pam_fail_delay], [AC_DEFINE([HAS_PAM_FAIL_DELAY], [1], [Define to 1 if you have the declaration of 'pam_fail_delay'])])
|
AC_CHECK_FUNC(pam_fail_delay, [AC_DEFINE(HAS_PAM_FAIL_DELAY, 1, [Define to 1 if you have the declaration of 'pam_fail_delay'])])
|
||||||
LIBS=$save_libs
|
LIBS=$save_libs
|
||||||
|
|
||||||
AC_DEFINE([USE_PAM], [1], [Define to support Pluggable Authentication Modules])
|
AC_DEFINE(USE_PAM, 1, [Define to support Pluggable Authentication Modules])
|
||||||
AC_DEFINE_UNQUOTED([SHADOW_PAM_CONVERSATION], [$pam_conv_function],[PAM conversation to use])
|
AC_DEFINE_UNQUOTED(SHADOW_PAM_CONVERSATION, [$pam_conv_function],[PAM conversation to use])
|
||||||
|
AM_CONDITIONAL(USE_PAM, [true])
|
||||||
|
|
||||||
AC_MSG_CHECKING([use login and su access checking if PAM not used])
|
AC_MSG_CHECKING(use login and su access checking if PAM not used)
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT(no)
|
||||||
else
|
else
|
||||||
AC_DEFINE([SU_ACCESS], [1], [Define to support /etc/suauth su access control.])
|
AC_DEFINE(SU_ACCESS, 1, [Define to support /etc/suauth su access control.])
|
||||||
AC_MSG_CHECKING([use login and su access checking if PAM not used])
|
AM_CONDITIONAL(USE_PAM, [false])
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_CHECKING(use login and su access checking if PAM not used)
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([USE_PAM], [test "X$with_libpam" = "Xyes"])
|
|
||||||
|
|
||||||
if test "$enable_acct_tools_setuid" != "no"; then
|
if test "$enable_acct_tools_setuid" != "no"; then
|
||||||
if test "$with_libpam" != "yes"; then
|
if test "$with_libpam" != "yes"; then
|
||||||
if test "X$enable_acct_tools_setuid" = "Xyes"; then
|
if test "$enable_acct_tools_setuid" = "yes"; then
|
||||||
AC_MSG_ERROR([PAM support is required for --enable-account-tools-setuid])
|
AC_MSG_ERROR(PAM support is required for --enable-account-tools-setuid)
|
||||||
else
|
else
|
||||||
enable_acct_tools_setuid="no"
|
enable_acct_tools_setuid="no"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
enable_acct_tools_setuid="yes"
|
enable_acct_tools_setuid="yes"
|
||||||
fi
|
fi
|
||||||
if test "X$enable_acct_tools_setuid" = "Xyes"; then
|
if test "$enable_acct_tools_setuid" = "yes"; then
|
||||||
AC_DEFINE([ACCT_TOOLS_SETUID],
|
AC_DEFINE(ACCT_TOOLS_SETUID,
|
||||||
[1],
|
1,
|
||||||
[Define if account management tools should be installed setuid and authenticate the callers])
|
[Define if account management tools should be installed setuid and authenticate the callers])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([ACCT_TOOLS_SETUID], [test "x$enable_acct_tools_setuid" = "xyes"])
|
AM_CONDITIONAL(ACCT_TOOLS_SETUID, test "x$enable_acct_tools_setuid" = "xyes")
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([fcaps],
|
AC_ARG_WITH(fcaps,
|
||||||
[AS_HELP_STRING([--with-fcaps], [use file capabilities instead of suid binaries for newuidmap/newgidmap @<:@default=no@:>@])],
|
[AS_HELP_STRING([--with-fcaps], [use file capabilities instead of suid binaries for newuidmap/newgidmap @<:@default=no@:>@])],
|
||||||
[with_fcaps=$withval], [with_fcaps=no])
|
[with_fcaps=$withval], [with_fcaps=no])
|
||||||
AM_CONDITIONAL([FCAPS], [test "x$with_fcaps" = "xyes"])
|
AM_CONDITIONAL(FCAPS, test "x$with_fcaps" = "xyes")
|
||||||
|
|
||||||
if test "x$with_fcaps" = "xyes"; then
|
if test "x$with_fcaps" = "xyes"; then
|
||||||
AC_CHECK_PROGS([capcmd], ["setcap"])
|
AC_CHECK_PROGS(capcmd, "setcap")
|
||||||
if test "x$capcmd" = "x" ; then
|
if test "x$capcmd" = "x" ; then
|
||||||
AC_MSG_ERROR([setcap command not available])
|
AC_MSG_ERROR([setcap command not available])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST([LIBSKEY])
|
AC_SUBST(LIBSKEY)
|
||||||
AC_SUBST([LIBMD])
|
AC_SUBST(LIBMD)
|
||||||
if test "X$with_skey" = "Xyes"; then
|
if test "$with_skey" = "yes"; then
|
||||||
AC_CHECK_LIB([md], [MD5Init], [LIBMD=-lmd])
|
AC_CHECK_LIB(md, MD5Init, [LIBMD=-lmd])
|
||||||
AC_CHECK_LIB([skey], [skeychallenge], [LIBSKEY=-lskey],
|
AC_CHECK_LIB(skey, skeychallenge, [LIBSKEY=-lskey],
|
||||||
[AC_MSG_ERROR([libskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2])])
|
[AC_MSG_ERROR([liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2])])
|
||||||
AC_DEFINE([SKEY], [1], [Define to support S/Key logins.])
|
AC_DEFINE(SKEY, 1, [Define to support S/Key logins.])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <skey.h>
|
#include <skey.h>
|
||||||
]], [[
|
]], [[
|
||||||
skeychallenge((void*)0, (void*)0, (void*)0, 0);
|
skeychallenge((void*)0, (void*)0, (void*)0, 0);
|
||||||
]])],[AC_DEFINE([SKEY_BSD_STYLE], [1], [Define to support newer BSD S/Key API])],[])
|
]])],[AC_DEFINE(SKEY_BSD_STYLE, 1, [Define to support newer BSD S/Key API])],[])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_FUNC([fgetpwent_r], [AC_DEFINE([HAVE_FGETPWENT_R], [1], [Defined to 1 if you have the declaration of 'fgetpwent_r'])])
|
AC_CHECK_FUNC(fgetpwent_r, [AC_DEFINE(HAVE_FGETPWENT_R, 1, [Defined to 1 if you have the declaration of 'fgetpwent_r'])])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([SHELL], ["$SHELL"], [The default shell.])
|
AC_DEFINE_UNQUOTED(SHELL, ["$SHELL"], [The default shell.])
|
||||||
|
|
||||||
AM_GNU_GETTEXT_VERSION([0.19])
|
AM_GNU_GETTEXT_VERSION([0.19])
|
||||||
AM_GNU_GETTEXT([external], [need-ngettext])
|
AM_GNU_GETTEXT([external], [need-ngettext])
|
||||||
AM_CONDITIONAL([USE_NLS], [test "x$USE_NLS" = "xyes"])
|
AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
@@ -689,6 +744,7 @@ AC_CONFIG_FILES([
|
|||||||
libsubid/Makefile
|
libsubid/Makefile
|
||||||
libsubid/subid.h
|
libsubid/subid.h
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
contrib/Makefile
|
||||||
etc/Makefile
|
etc/Makefile
|
||||||
etc/pam.d/Makefile
|
etc/pam.d/Makefile
|
||||||
etc/shadow-maint/Makefile
|
etc/shadow-maint/Makefile
|
||||||
@@ -696,28 +752,30 @@ AC_CONFIG_FILES([
|
|||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
AC_MSG_NOTICE([shadow ${PACKAGE_VERSION} has been configured with the following features:
|
echo
|
||||||
|
echo "shadow will be compiled with the following features:"
|
||||||
auditing support: $with_audit
|
echo
|
||||||
PAM support: $with_libpam
|
echo " auditing support: $with_audit"
|
||||||
suid account management tools: $enable_acct_tools_setuid
|
echo " PAM support: $with_libpam"
|
||||||
SELinux support: $with_selinux
|
if test "$with_libpam" = "yes"; then
|
||||||
BtrFS support: $with_btrfs
|
echo " suid account management tools: $enable_acct_tools_setuid"
|
||||||
ACL support: $with_acl
|
fi
|
||||||
Extended Attributes support: $with_attr
|
echo " SELinux support: $with_selinux"
|
||||||
tcb support (incomplete): $with_tcb
|
echo " BtrFS support: $with_btrfs"
|
||||||
shadow group support: $enable_shadowgrp
|
echo " ACL support: $with_acl"
|
||||||
S/Key support: $with_skey
|
echo " Extended Attributes support: $with_attr"
|
||||||
SHA passwords encryption: $with_sha_crypt
|
echo " tcb support (incomplete): $with_tcb"
|
||||||
bcrypt passwords encryption: $with_bcrypt
|
echo " shadow group support: $enable_shadowgrp"
|
||||||
yescrypt passwords encryption: $with_yescrypt
|
echo " S/Key support: $with_skey"
|
||||||
nscd support: $with_nscd
|
echo " SHA passwords encryption: $with_sha_crypt"
|
||||||
sssd support: $with_sssd
|
echo " bcrypt passwords encryption: $with_bcrypt"
|
||||||
subordinate IDs support: $enable_subids
|
echo " yescrypt passwords encryption: $with_yescrypt"
|
||||||
enable lastlog: $enable_lastlog
|
echo " nscd support: $with_nscd"
|
||||||
enable logind: $enable_logind
|
echo " sssd support: $with_sssd"
|
||||||
use file caps: $with_fcaps
|
echo " subordinate IDs support: $enable_subids"
|
||||||
install su: $with_su
|
echo " enable lastlog: $enable_lastlog"
|
||||||
enabled vendor dir: $enable_vendordir
|
echo " enable logind: $enable_logind"
|
||||||
|
echo " use file caps: $with_fcaps"
|
||||||
])
|
echo " install su: $with_su"
|
||||||
|
echo " enabled vendor dir: $enable_vendordir"
|
||||||
|
echo
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# This is a dummy Makefile.am to get automake work flawlessly,
|
||||||
|
# and also cooperate to make a distribution for `make dist'
|
||||||
|
|
||||||
|
EXTRA_DIST = README adduser.c adduser.sh adduser2.sh
|
||||||
@@ -0,0 +1,508 @@
|
|||||||
|
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
# This is a dummy Makefile.am to get automake work flawlessly,
|
||||||
|
# and also cooperate to make a distribution for `make dist'
|
||||||
|
VPATH = @srcdir@
|
||||||
|
am__is_gnu_make = { \
|
||||||
|
if test -z '$(MAKELEVEL)'; then \
|
||||||
|
false; \
|
||||||
|
elif test -n '$(MAKE_HOST)'; then \
|
||||||
|
true; \
|
||||||
|
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||||
|
true; \
|
||||||
|
else \
|
||||||
|
false; \
|
||||||
|
fi; \
|
||||||
|
}
|
||||||
|
am__make_running_with_option = \
|
||||||
|
case $${target_option-} in \
|
||||||
|
?) ;; \
|
||||||
|
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||||
|
"target option '$${target_option-}' specified" >&2; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
has_opt=no; \
|
||||||
|
sane_makeflags=$$MAKEFLAGS; \
|
||||||
|
if $(am__is_gnu_make); then \
|
||||||
|
sane_makeflags=$$MFLAGS; \
|
||||||
|
else \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
bs=\\; \
|
||||||
|
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||||
|
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||||
|
esac; \
|
||||||
|
fi; \
|
||||||
|
skip_next=no; \
|
||||||
|
strip_trailopt () \
|
||||||
|
{ \
|
||||||
|
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||||
|
}; \
|
||||||
|
for flg in $$sane_makeflags; do \
|
||||||
|
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||||
|
case $$flg in \
|
||||||
|
*=*|--*) continue;; \
|
||||||
|
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||||
|
-*I?*) strip_trailopt 'I';; \
|
||||||
|
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||||
|
-*O?*) strip_trailopt 'O';; \
|
||||||
|
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||||
|
-*l?*) strip_trailopt 'l';; \
|
||||||
|
-[dEDm]) skip_next=yes;; \
|
||||||
|
-[JT]) skip_next=yes;; \
|
||||||
|
esac; \
|
||||||
|
case $$flg in \
|
||||||
|
*$$target_option*) has_opt=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
test $$has_opt = yes
|
||||||
|
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||||
|
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
subdir = contrib
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||||
|
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||||
|
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||||
|
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||||
|
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||||
|
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||||
|
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||||
|
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||||
|
mkinstalldirs = $(install_sh) -d
|
||||||
|
CONFIG_HEADER = $(top_builddir)/config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
|
AM_V_P = $(am__v_P_@AM_V@)
|
||||||
|
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||||
|
am__v_P_0 = false
|
||||||
|
am__v_P_1 = :
|
||||||
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
|
am__v_GEN_1 =
|
||||||
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
|
am__v_at_0 = @
|
||||||
|
am__v_at_1 =
|
||||||
|
SOURCES =
|
||||||
|
DIST_SOURCES =
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
|
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||||
|
am__DIST_COMMON = $(srcdir)/Makefile.in README
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
AR = @AR@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||||
|
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||||
|
CPP = @CPP@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CSCOPE = @CSCOPE@
|
||||||
|
CTAGS = @CTAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
ECONF_CPPFLAGS = @ECONF_CPPFLAGS@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
ETAGS = @ETAGS@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
FGREP = @FGREP@
|
||||||
|
FILECMD = @FILECMD@
|
||||||
|
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||||
|
GMSGFMT = @GMSGFMT@
|
||||||
|
GMSGFMT_015 = @GMSGFMT_015@
|
||||||
|
GREP = @GREP@
|
||||||
|
GROUP_NAME_MAX_LENGTH = @GROUP_NAME_MAX_LENGTH@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
INTLLIBS = @INTLLIBS@
|
||||||
|
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||||
|
LD = @LD@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBACL = @LIBACL@
|
||||||
|
LIBADD_DL = @LIBADD_DL@
|
||||||
|
LIBADD_DLD_LINK = @LIBADD_DLD_LINK@
|
||||||
|
LIBADD_DLOPEN = @LIBADD_DLOPEN@
|
||||||
|
LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
|
||||||
|
LIBATTR = @LIBATTR@
|
||||||
|
LIBAUDIT = @LIBAUDIT@
|
||||||
|
LIBBSD = @LIBBSD@
|
||||||
|
LIBBSD_CFLAGS = @LIBBSD_CFLAGS@
|
||||||
|
LIBBSD_LIBS = @LIBBSD_LIBS@
|
||||||
|
LIBCRYPT = @LIBCRYPT@
|
||||||
|
LIBECONF = @LIBECONF@
|
||||||
|
LIBICONV = @LIBICONV@
|
||||||
|
LIBINTL = @LIBINTL@
|
||||||
|
LIBMD = @LIBMD@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBPAM = @LIBPAM@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LIBSELINUX = @LIBSELINUX@
|
||||||
|
LIBSEMANAGE = @LIBSEMANAGE@
|
||||||
|
LIBSKEY = @LIBSKEY@
|
||||||
|
LIBSUBID_ABI = @LIBSUBID_ABI@
|
||||||
|
LIBSUBID_ABI_MAJOR = @LIBSUBID_ABI_MAJOR@
|
||||||
|
LIBSUBID_ABI_MICRO = @LIBSUBID_ABI_MICRO@
|
||||||
|
LIBSUBID_ABI_MINOR = @LIBSUBID_ABI_MINOR@
|
||||||
|
LIBSYSTEMD = @LIBSYSTEMD@
|
||||||
|
LIBTCB = @LIBTCB@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LIYESCRYPT = @LIYESCRYPT@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
LTLIBICONV = @LTLIBICONV@
|
||||||
|
LTLIBINTL = @LTLIBINTL@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
LT_DLLOADERS = @LT_DLLOADERS@
|
||||||
|
LT_DLPREOPEN = @LT_DLPREOPEN@
|
||||||
|
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
|
MKDIR_P = @MKDIR_P@
|
||||||
|
MSGFMT = @MSGFMT@
|
||||||
|
MSGFMT_015 = @MSGFMT_015@
|
||||||
|
MSGMERGE = @MSGMERGE@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_URL = @PACKAGE_URL@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PKG_CONFIG = @PKG_CONFIG@
|
||||||
|
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||||
|
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||||
|
POSUB = @POSUB@
|
||||||
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
USE_NLS = @USE_NLS@
|
||||||
|
VENDORDIR = @VENDORDIR@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
XGETTEXT = @XGETTEXT@
|
||||||
|
XGETTEXT_015 = @XGETTEXT_015@
|
||||||
|
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||||
|
XMLCATALOG = @XMLCATALOG@
|
||||||
|
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
||||||
|
XSLTPROC = @XSLTPROC@
|
||||||
|
YACC = @YACC@
|
||||||
|
YFLAGS = @YFLAGS@
|
||||||
|
abs_builddir = @abs_builddir@
|
||||||
|
abs_srcdir = @abs_srcdir@
|
||||||
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
builddir = @builddir@
|
||||||
|
capcmd = @capcmd@
|
||||||
|
datadir = @datadir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
docdir = @docdir@
|
||||||
|
dvidir = @dvidir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
|
htmldir = @htmldir@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localedir = @localedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
pdfdir = @pdfdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
psdir = @psdir@
|
||||||
|
runstatedir = @runstatedir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
EXTRA_DIST = README adduser.c adduser.sh adduser2.sh
|
||||||
|
all: all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||||
|
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
|
||||||
|
$(am__cd) $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --foreign contrib/Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||||
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
tags TAGS:
|
||||||
|
|
||||||
|
ctags CTAGS:
|
||||||
|
|
||||||
|
cscope cscopelist:
|
||||||
|
|
||||||
|
distdir: $(BUILT_SOURCES)
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||||
|
|
||||||
|
distdir-am: $(DISTFILES)
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||||
|
list='$(DISTFILES)'; \
|
||||||
|
dist_files=`for file in $$list; do echo $$file; done | \
|
||||||
|
sed -e "s|^$$srcdirstrip/||;t" \
|
||||||
|
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||||
|
case $$dist_files in \
|
||||||
|
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||||
|
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||||
|
sort -u` ;; \
|
||||||
|
esac; \
|
||||||
|
for file in $$dist_files; do \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test -d "$(distdir)/$$file"; then \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||||
|
fi; \
|
||||||
|
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f "$(distdir)/$$file" \
|
||||||
|
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile
|
||||||
|
installdirs:
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
if test -z '$(STRIP)'; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-generic
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
html-am:
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
|
||||||
|
install-dvi: install-dvi-am
|
||||||
|
|
||||||
|
install-dvi-am:
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
|
||||||
|
install-html: install-html-am
|
||||||
|
|
||||||
|
install-html-am:
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-info-am:
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
install-pdf: install-pdf-am
|
||||||
|
|
||||||
|
install-pdf-am:
|
||||||
|
|
||||||
|
install-ps: install-ps-am
|
||||||
|
|
||||||
|
install-ps-am:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am:
|
||||||
|
|
||||||
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
|
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||||
|
cscopelist-am ctags-am distclean distclean-generic \
|
||||||
|
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||||
|
install install-am install-data install-data-am install-dvi \
|
||||||
|
install-dvi-am install-exec install-exec-am install-html \
|
||||||
|
install-html-am install-info install-info-am install-man \
|
||||||
|
install-pdf install-pdf-am install-ps install-ps-am \
|
||||||
|
install-strip installcheck installcheck-am installdirs \
|
||||||
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||||
|
tags-am uninstall uninstall-am
|
||||||
|
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
People keep sending various adduser programs and scripts... They are
|
||||||
|
all in this directory. I haven't tested them, use at your own risk.
|
||||||
|
Anyway, the best one I've seen so far is adduser-3.x from Debian.
|
||||||
|
|
||||||
|
udbachk.tgz is a passwd/group/shadow file integrity checker.
|
||||||
|
|
||||||
|
--marekm
|
||||||
@@ -0,0 +1,502 @@
|
|||||||
|
/****
|
||||||
|
** 04/21/96
|
||||||
|
** hacked even more, replaced gets() with something slightly harder to buffer
|
||||||
|
** overflow. Added support for setting a default quota on new account, with
|
||||||
|
** edquota -p. Other cleanups for security, I let some users run adduser suid
|
||||||
|
** root to add new accounts. (overflow checks, clobber environment, valid
|
||||||
|
** shell checks, restrictions on gid + home dir settings).
|
||||||
|
|
||||||
|
** Added max. username length. Used syslog() a bit for important events.
|
||||||
|
** Support to immediately expire account with passwd -e.
|
||||||
|
|
||||||
|
** Called it version 2.0! Because I felt like it!
|
||||||
|
|
||||||
|
** -- Chris, chris@ferret.lmh.ox.ac.uk
|
||||||
|
|
||||||
|
** 03/17/96
|
||||||
|
** hacked a bit more, removed unused code, cleaned up for gcc -Wall.
|
||||||
|
** --marekm
|
||||||
|
**
|
||||||
|
** 02/26/96
|
||||||
|
** modified to call shadow utils (useradd,chage,passwd) on shadowed
|
||||||
|
** systems - Cristian Gafton, gafton@sorosis.ro
|
||||||
|
**
|
||||||
|
** 6/27/95
|
||||||
|
** shadow-adduser 1.4:
|
||||||
|
**
|
||||||
|
** now it copies the /etc/skel dir into the person's dir,
|
||||||
|
** makes the mail folders, changed some defaults and made a 'make
|
||||||
|
** install' just for the hell of it.
|
||||||
|
**
|
||||||
|
** Greg Gallagher
|
||||||
|
** CIN.Net
|
||||||
|
**
|
||||||
|
** 1/28/95
|
||||||
|
** shadow-adduser 1.3:
|
||||||
|
**
|
||||||
|
** Basically a bug-fix on my additions in 1.2. Thanks to Terry Stewart
|
||||||
|
** (stew@texas.net) for pointing out one of the many idiotic bugs I introduced.
|
||||||
|
** It was such a stupid bug that I would have never seen it myself.
|
||||||
|
**
|
||||||
|
** Brandon
|
||||||
|
*****
|
||||||
|
** 01/27/95
|
||||||
|
**
|
||||||
|
** shadow-adduser 1.2:
|
||||||
|
** I took the C source from adduser-shadow (credits are below) and made
|
||||||
|
** it a little more worthwhile. Many small changes... Here's
|
||||||
|
** the ones I can remember:
|
||||||
|
**
|
||||||
|
** Removed support for non-shadowed systems (if you don't have shadow,
|
||||||
|
** use the original adduser, don't get this shadow version!)
|
||||||
|
** Added support for the correct /etc/shadow fields (Min days before
|
||||||
|
** password change, max days before password change, Warning days,
|
||||||
|
** and how many days from expiry date does the account go invalid)
|
||||||
|
** The previous version just left all of those fields blank.
|
||||||
|
** There is still one field left (expiry date for the account, period)
|
||||||
|
** which I have left blank because I do not use it and didn't want to
|
||||||
|
** spend any more time on this. I'm sure someone will put it in and
|
||||||
|
** tack another plethora of credits on here. :)
|
||||||
|
** Added in the password date field, which should always reflect the last
|
||||||
|
** date the password was changed, for expiry purposes. "passwd" always
|
||||||
|
** updates this field, so the adduser program should set it up right
|
||||||
|
** initially (or a user could keep their initial password forever ;)
|
||||||
|
** The number is in days since Jan 1st, 1970.
|
||||||
|
**
|
||||||
|
** Have fun with it, and someone please make
|
||||||
|
** a real version(this is still just a hack)
|
||||||
|
** for us all to use (and Email it to me???)
|
||||||
|
**
|
||||||
|
** Brandon
|
||||||
|
** photon@usis.com
|
||||||
|
**
|
||||||
|
*****
|
||||||
|
** adduser 1.0: add a new user account (For systems not using shadow)
|
||||||
|
** With a nice little interface and a will to do all the work for you.
|
||||||
|
**
|
||||||
|
** Craig Hagan
|
||||||
|
** hagan@opine.cs.umass.edu
|
||||||
|
**
|
||||||
|
** Modified to really work, look clean, and find unused uid by Chris Cappuccio
|
||||||
|
** chris@slinky.cs.umass.edu
|
||||||
|
**
|
||||||
|
*****
|
||||||
|
**
|
||||||
|
** 01/19/95
|
||||||
|
**
|
||||||
|
** FURTHER modifications to enable shadow passwd support (kludged, but
|
||||||
|
** no more so than the original) by Dan Crowson - dcrowson@mo.net
|
||||||
|
**
|
||||||
|
** Search on DAN for all changes...
|
||||||
|
**
|
||||||
|
*****
|
||||||
|
**
|
||||||
|
** cc -O -o adduser adduser.c
|
||||||
|
** Use gcc if you have it... (political reasons beyond my control) (chris)
|
||||||
|
**
|
||||||
|
** I've gotten this program to work with success under Linux (without
|
||||||
|
** shadow) and SunOS 4.1.3. I would assume it should work pretty well
|
||||||
|
** on any system that uses no shadow. (chris)
|
||||||
|
**
|
||||||
|
** If you have no crypt() then try
|
||||||
|
** cc -DNO_CRYPT -O -o adduser adduser.c xfdes.c
|
||||||
|
** I'm not sure how login operates with no crypt()... I guess
|
||||||
|
** the same way we're doing it here.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <pwd.h>
|
||||||
|
#include <grp.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/timeb.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <syslog.h>
|
||||||
|
|
||||||
|
#define IMMEDIATE_CHANGE /* Expire newly created password, must be changed
|
||||||
|
* immediately upon next login */
|
||||||
|
#define HAVE_QUOTAS /* Obvious */
|
||||||
|
#define EXPIRE_VALS_SET /* If defined, 'normal' users can't change
|
||||||
|
* password expiry values (if running suid root) */
|
||||||
|
|
||||||
|
#define HAVE_GETUSERSHELL /* FIXME: Isn't this defined in config.h too? */
|
||||||
|
#define LOGGING /* If we want to log various things to syslog */
|
||||||
|
#define MAX_USRNAME 8 /* Longer usernames seem to work on my system....
|
||||||
|
* But they're probably a poor idea */
|
||||||
|
|
||||||
|
|
||||||
|
#define DEFAULT_SHELL "/bin/bash" /* because BASH is your friend */
|
||||||
|
#define DEFAULT_HOME "/home"
|
||||||
|
#define USERADD_PATH "/usr/sbin/useradd"
|
||||||
|
#define CHAGE_PATH "/usr/bin/chage"
|
||||||
|
#define PASSWD_PATH "/usr/bin/passwd"
|
||||||
|
#define EDQUOTA_PATH "/usr/sbin/edquota"
|
||||||
|
#define QUOTA_DEFAULT "defuser"
|
||||||
|
#define DEFAULT_GROUP 100
|
||||||
|
|
||||||
|
#define DEFAULT_MIN_PASS 0
|
||||||
|
#define DEFAULT_MAX_PASS 100
|
||||||
|
#define DEFAULT_WARN_PASS 14
|
||||||
|
#define DEFAULT_USER_DIE 366
|
||||||
|
|
||||||
|
void safeget (char *, int);
|
||||||
|
|
||||||
|
void
|
||||||
|
main (void)
|
||||||
|
{
|
||||||
|
char foo[32];
|
||||||
|
char usrname[32], person[32], dir[32], shell[32];
|
||||||
|
unsigned int group, min_pass, max_pass, warn_pass, user_die;
|
||||||
|
/* the group and uid of the new user */
|
||||||
|
int bad = 0, done = 0, correct = 0, olduid;
|
||||||
|
char cmd[255];
|
||||||
|
struct group *grp;
|
||||||
|
|
||||||
|
/* flags, in order:
|
||||||
|
* bad to see if the username is in /etc/passwd, or if strange stuff has
|
||||||
|
* been typed if the user might be put in group 0
|
||||||
|
* done allows the program to exit when a user has been added
|
||||||
|
* correct loops until a username is found that isn't in /etc/passwd
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* The real program starts HERE! */
|
||||||
|
|
||||||
|
if (geteuid () != 0)
|
||||||
|
{
|
||||||
|
printf ("It seems you don't have access to add a new user. Try\n");
|
||||||
|
printf ("logging in as root or su root to gain superuser access.\n");
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sanity checks
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef LOGGING
|
||||||
|
openlog ("adduser", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH);
|
||||||
|
syslog (LOG_INFO, "invoked by user %s\n", getpwuid (getuid ())->pw_name);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (!(grp = getgrgid (DEFAULT_GROUP)))
|
||||||
|
{
|
||||||
|
printf ("Error: the default group %d does not exist on this system!\n",
|
||||||
|
DEFAULT_GROUP);
|
||||||
|
printf ("adduser must be recompiled.\n");
|
||||||
|
#ifdef LOGGING
|
||||||
|
syslog (LOG_ERR, "warning: failed. no such default group\n");
|
||||||
|
closelog ();
|
||||||
|
#endif
|
||||||
|
exit (1);
|
||||||
|
};
|
||||||
|
|
||||||
|
while (!correct)
|
||||||
|
{ /* loop until a "good" usrname is chosen */
|
||||||
|
while (!done)
|
||||||
|
{
|
||||||
|
printf ("\nLogin to add (^C to quit): ");
|
||||||
|
fflush (stdout);
|
||||||
|
|
||||||
|
safeget (usrname, sizeof (usrname));
|
||||||
|
|
||||||
|
if (!strlen (usrname))
|
||||||
|
{
|
||||||
|
printf ("Empty input.\n");
|
||||||
|
done = 0;
|
||||||
|
continue;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* what I saw here before made me think maybe I was running DOS */
|
||||||
|
/* might this be a solution? (chris) */
|
||||||
|
if (strlen (usrname) > MAX_USRNAME)
|
||||||
|
{
|
||||||
|
printf ("That name is longer than the maximum of %d characters. Choose another.\n", MAX_USRNAME);
|
||||||
|
done = 0;
|
||||||
|
}
|
||||||
|
else if (getpwnam (usrname) != NULL)
|
||||||
|
{
|
||||||
|
printf ("That name is in use, choose another.\n");
|
||||||
|
done = 0;
|
||||||
|
}
|
||||||
|
else if (strchr (usrname, ' ') != NULL)
|
||||||
|
{
|
||||||
|
printf ("No spaces in username!!\n");
|
||||||
|
done = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
done = 1;
|
||||||
|
}; /* done, we have a valid new user name */
|
||||||
|
|
||||||
|
/* all set, get the rest of the stuff */
|
||||||
|
printf ("\nEditing information for new user [%s]\n", usrname);
|
||||||
|
|
||||||
|
printf ("\nFull Name [%s]: ", usrname);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (person, sizeof (person));
|
||||||
|
if (!strlen (person))
|
||||||
|
{
|
||||||
|
bzero (person, sizeof (person));
|
||||||
|
strcpy (person, usrname);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (getuid () == 0)
|
||||||
|
{
|
||||||
|
do
|
||||||
|
{
|
||||||
|
bad = 0;
|
||||||
|
printf ("GID [%d]: ", DEFAULT_GROUP);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (foo, sizeof (foo));
|
||||||
|
if (!strlen (foo))
|
||||||
|
group = DEFAULT_GROUP;
|
||||||
|
else if (isdigit (*foo))
|
||||||
|
{
|
||||||
|
group = atoi (foo);
|
||||||
|
if (!(grp = getgrgid (group)))
|
||||||
|
{
|
||||||
|
printf ("unknown gid %s\n", foo);
|
||||||
|
group = DEFAULT_GROUP;
|
||||||
|
bad = 1;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if ((grp = getgrnam (foo)))
|
||||||
|
group = grp->gr_gid;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf ("unknown group %s\n", foo);
|
||||||
|
group = DEFAULT_GROUP;
|
||||||
|
bad = 1;
|
||||||
|
}
|
||||||
|
if (group == 0)
|
||||||
|
{ /* You're not allowed to make root group users! */
|
||||||
|
printf ("Creation of root group users not allowed (must be done by hand)\n");
|
||||||
|
group = DEFAULT_GROUP;
|
||||||
|
bad = 1;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
while (bad);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf ("Group will be default of: %d\n", DEFAULT_GROUP);
|
||||||
|
group = DEFAULT_GROUP;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (getuid () == 0)
|
||||||
|
{
|
||||||
|
printf ("\nIf home dir ends with a / then '%s' will be appended to it\n", usrname);
|
||||||
|
printf ("Home Directory [%s/%s]: ", DEFAULT_HOME, usrname);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (dir, sizeof (dir));
|
||||||
|
if (!strlen (dir))
|
||||||
|
{ /* hit return */
|
||||||
|
sprintf (dir, "%s/%s", DEFAULT_HOME, usrname);
|
||||||
|
}
|
||||||
|
else if (dir[strlen (dir) - 1] == '/')
|
||||||
|
sprintf (dir+strlen(dir), "%s", usrname);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf ("\nHome directory will be %s/%s\n", DEFAULT_HOME, usrname);
|
||||||
|
sprintf (dir, "%s/%s", DEFAULT_HOME, usrname);
|
||||||
|
}
|
||||||
|
|
||||||
|
printf ("\nShell [%s]: ", DEFAULT_SHELL);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (shell, sizeof (shell));
|
||||||
|
if (!strlen (shell))
|
||||||
|
sprintf (shell, "%s", DEFAULT_SHELL);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
char *sh;
|
||||||
|
int ok = 0;
|
||||||
|
#ifdef HAVE_GETUSERSHELL
|
||||||
|
setusershell ();
|
||||||
|
while ((sh = getusershell ()) != NULL)
|
||||||
|
if (!strcmp (shell, sh))
|
||||||
|
ok = 1;
|
||||||
|
endusershell ();
|
||||||
|
#endif
|
||||||
|
if (!ok)
|
||||||
|
{
|
||||||
|
if (getuid () == 0)
|
||||||
|
printf ("Warning: root allowed non standard shell\n");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf ("Shell NOT in /etc/shells, DEFAULT used\n");
|
||||||
|
sprintf (shell, "%s", DEFAULT_SHELL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef EXPIRE_VALS_SET
|
||||||
|
if (getuid () == 0)
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
printf ("\nMin. Password Change Days [%d]: ", DEFAULT_MIN_PASS);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (foo, sizeof (foo));
|
||||||
|
if (strlen (foo) > 1)
|
||||||
|
min_pass = DEFAULT_MIN_PASS;
|
||||||
|
else
|
||||||
|
min_pass = atoi (foo);
|
||||||
|
|
||||||
|
printf ("Max. Password Change Days [%d]: ", DEFAULT_MAX_PASS);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (foo, sizeof (foo));
|
||||||
|
if (strlen (foo) > 1)
|
||||||
|
max_pass = atoi (foo);
|
||||||
|
else
|
||||||
|
max_pass = DEFAULT_MAX_PASS;
|
||||||
|
|
||||||
|
printf ("Password Warning Days [%d]: ", DEFAULT_WARN_PASS);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (foo, sizeof (foo));
|
||||||
|
warn_pass = atoi (foo);
|
||||||
|
if (warn_pass == 0)
|
||||||
|
|
||||||
|
warn_pass = DEFAULT_WARN_PASS;
|
||||||
|
|
||||||
|
printf ("Days after Password Expiry for Account Locking [%d]: ", DEFAULT_USER_DIE);
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (foo, sizeof (foo));
|
||||||
|
user_die = atoi (foo);
|
||||||
|
if (user_die == 0)
|
||||||
|
user_die = DEFAULT_USER_DIE;
|
||||||
|
|
||||||
|
#ifdef EXPIRE_VALS_SET
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf ("\nSorry, account expiry values are set.\n");
|
||||||
|
user_die = DEFAULT_USER_DIE;
|
||||||
|
warn_pass = DEFAULT_WARN_PASS;
|
||||||
|
max_pass = DEFAULT_MAX_PASS;
|
||||||
|
min_pass = DEFAULT_MIN_PASS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
printf ("\nInformation for new user [%s] [%s]:\n", usrname, person);
|
||||||
|
printf ("Home directory: [%s] Shell: [%s]\n", dir, shell);
|
||||||
|
printf ("GID: [%d]\n", group);
|
||||||
|
printf ("MinPass: [%d] MaxPass: [%d] WarnPass: [%d] UserExpire: [%d]\n",
|
||||||
|
min_pass, max_pass, warn_pass, user_die);
|
||||||
|
printf ("\nIs this correct? [y/N]: ");
|
||||||
|
fflush (stdout);
|
||||||
|
safeget (foo, sizeof (foo));
|
||||||
|
|
||||||
|
done = bad = correct = (foo[0] == 'y' || foo[0] == 'Y');
|
||||||
|
|
||||||
|
if (bad != 1)
|
||||||
|
printf ("\nUser [%s] not added\n", usrname);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clobber the environment, I run this suid root sometimes to let
|
||||||
|
* non root privileged accounts add users --chris */
|
||||||
|
|
||||||
|
*environ = NULL;
|
||||||
|
|
||||||
|
bzero (cmd, sizeof (cmd));
|
||||||
|
sprintf (cmd, "%s -g %d -d %s -s %s -c \"%s\" -m -k /etc/skel %s",
|
||||||
|
USERADD_PATH, group, dir, shell, person, usrname);
|
||||||
|
printf ("Calling useradd to add new user:\n%s\n", cmd);
|
||||||
|
if (system (cmd))
|
||||||
|
{
|
||||||
|
printf ("User add failed!\n");
|
||||||
|
#ifdef LOGGING
|
||||||
|
syslog (LOG_ERR, "could not add new user\n");
|
||||||
|
closelog ();
|
||||||
|
#endif
|
||||||
|
exit (errno);
|
||||||
|
};
|
||||||
|
|
||||||
|
olduid = getuid (); /* chage, passwd, edquota etc. require ruid = root
|
||||||
|
*/
|
||||||
|
setuid (0);
|
||||||
|
|
||||||
|
bzero (cmd, sizeof (cmd));
|
||||||
|
|
||||||
|
/* Chage runs suid root. => we need ruid root to run it with
|
||||||
|
* anything other than chage -l
|
||||||
|
*/
|
||||||
|
|
||||||
|
sprintf (cmd, "%s -m %d -M %d -W %d -I %d %s", CHAGE_PATH,
|
||||||
|
min_pass, max_pass, warn_pass, user_die, usrname);
|
||||||
|
printf ("%s\n", cmd);
|
||||||
|
if (system (cmd))
|
||||||
|
{
|
||||||
|
printf ("There was an error setting password expire values\n");
|
||||||
|
#ifdef LOGGING
|
||||||
|
syslog (LOG_ERR, "password expire values could not be set\n");
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
/* I want to add a user completely with one easy command --chris */
|
||||||
|
|
||||||
|
#ifdef HAVE_QUOTAS
|
||||||
|
bzero (cmd, sizeof (cmd));
|
||||||
|
sprintf (cmd, "%s -p %s -u %s", EDQUOTA_PATH, QUOTA_DEFAULT, usrname);
|
||||||
|
printf ("%s\n", cmd);
|
||||||
|
if (system (cmd))
|
||||||
|
{
|
||||||
|
printf ("\nWarning: error setting quota\n");
|
||||||
|
#ifdef LOGGING
|
||||||
|
syslog (LOG_ERR, "warning: account created but NO quotas set!\n");
|
||||||
|
#endif /* LOGGING */
|
||||||
|
}
|
||||||
|
else
|
||||||
|
printf ("\nDefault quota set.\n");
|
||||||
|
#endif /* HAVE_QUOTAS */
|
||||||
|
|
||||||
|
bzero (cmd, sizeof (cmd));
|
||||||
|
sprintf (cmd, "%s %s", PASSWD_PATH, usrname);
|
||||||
|
if (system (cmd))
|
||||||
|
{
|
||||||
|
printf ("\nWarning: error setting password\n");
|
||||||
|
#ifdef LOGGING
|
||||||
|
syslog (LOG_ERR, "warning: password set failed!\n");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#ifdef IMMEDIATE_CHANGE
|
||||||
|
bzero (cmd, sizeof (cmd));
|
||||||
|
sprintf (cmd, "%s -e %s", PASSWD_PATH, usrname);
|
||||||
|
if (system (cmd))
|
||||||
|
{
|
||||||
|
printf ("\nWarning: error expiring password\n");
|
||||||
|
#ifdef LOGGING
|
||||||
|
syslog (LOG_ERR, "warning: password expire failed!\n");
|
||||||
|
#endif /* LOGGING */
|
||||||
|
}
|
||||||
|
#endif /* IMMEDIATE_CHANGE */
|
||||||
|
|
||||||
|
setuid (olduid);
|
||||||
|
|
||||||
|
#ifdef LOGGING
|
||||||
|
closelog ();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
printf ("\nDone.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
safeget (char *buf, int maxlen)
|
||||||
|
{
|
||||||
|
int c, i = 0, bad = 0;
|
||||||
|
char *bstart = buf;
|
||||||
|
while ((c = getc (stdin)) != EOF && (c != '\n') && (++i < maxlen))
|
||||||
|
{
|
||||||
|
bad = (!isalnum (c) && (c != '_') && (c != ' '));
|
||||||
|
*(buf++) = c;
|
||||||
|
}
|
||||||
|
*buf = '\0';
|
||||||
|
|
||||||
|
if (bad)
|
||||||
|
{
|
||||||
|
printf ("\nString contained banned character. Please stick to alphanumerics.\n");
|
||||||
|
*bstart = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Executable
+90
@@ -0,0 +1,90 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# adduser script for use with shadow passwords and useradd command.
|
||||||
|
# by Hrvoje Dogan <hdogan@student.math.hr>, Dec 1995.
|
||||||
|
|
||||||
|
echo -n "Login name for new user []:"
|
||||||
|
read LOGIN
|
||||||
|
if [ -z $LOGIN ]
|
||||||
|
then echo "Come on, man, you can't leave the login field empty...";exit
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo -n "User id for $LOGIN [ defaults to next available]:"
|
||||||
|
read ID
|
||||||
|
GUID="-u $ID"
|
||||||
|
if [ -z $ID ]
|
||||||
|
then GUID=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -n "Initial group for $LOGIN [users]:"
|
||||||
|
read GID
|
||||||
|
GGID="-g $GID"
|
||||||
|
if [ -z $GID ]
|
||||||
|
then GGID=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -n "Additional groups for $LOGIN []:"
|
||||||
|
read AGID
|
||||||
|
GAGID="-G $AGID"
|
||||||
|
if [ -z $AGID ]
|
||||||
|
then GAGID=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -n "$LOGIN's home directory [/home/$LOGIN]:"
|
||||||
|
read HME
|
||||||
|
GHME="-d $HME"
|
||||||
|
if [ -z $HME ]
|
||||||
|
then GHME=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -n "$LOGIN's shell [/bin/bash]:"
|
||||||
|
read SHL
|
||||||
|
GSHL="-s $SHL"
|
||||||
|
if [ -z $SHL ]
|
||||||
|
then GSHL=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -n "$LOGIN's account expiry date (MM/DD/YY) []:"
|
||||||
|
read EXP
|
||||||
|
GEXP="-e $EXP"
|
||||||
|
if [ -z $EXP ]
|
||||||
|
then GEXP=""
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo OK, I'm about to make a new account. Here's what you entered so far:
|
||||||
|
echo New login name: $LOGIN
|
||||||
|
if [ -z $GUID ]
|
||||||
|
then echo New UID: [Next available]
|
||||||
|
else echo New UID: $UID
|
||||||
|
fi
|
||||||
|
if [ -z $GGID ]
|
||||||
|
then echo Initial group: users
|
||||||
|
else echo Initial group: $GID
|
||||||
|
fi
|
||||||
|
if [ -z $GAGID ]
|
||||||
|
then echo Additional groups: [none]
|
||||||
|
else echo Additional groups: $AGID
|
||||||
|
fi
|
||||||
|
if [ -z $GHME ]
|
||||||
|
then echo Home directory: /home/$LOGIN
|
||||||
|
else echo Home directory: $HME
|
||||||
|
fi
|
||||||
|
if [ -z $GSHL ]
|
||||||
|
then echo Shell: /bin/bash
|
||||||
|
else echo Shell: $SHL
|
||||||
|
fi
|
||||||
|
if [ -z $GEXP ]
|
||||||
|
then echo Expiry date: [no expiration]
|
||||||
|
else echo Expiry date: $EXP
|
||||||
|
fi
|
||||||
|
echo "This is it... if you want to bail out, you'd better do it now."
|
||||||
|
read FOO
|
||||||
|
echo Making new account...
|
||||||
|
/usr/sbin/useradd $GHME -m $GEXP $GGID $GAGID $GSHL $GUID $LOGIN
|
||||||
|
/usr/bin/chfn $LOGIN
|
||||||
|
/usr/bin/passwd $LOGIN
|
||||||
|
echo "Done..."
|
||||||
Executable
+743
@@ -0,0 +1,743 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# adduser Interactive user adding program.
|
||||||
|
#
|
||||||
|
# Copyright (C) 1996 Petri Mattila, Prihateam Networks
|
||||||
|
# petri@prihateam.fi
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# Changes:
|
||||||
|
# 220496 v0.01 Initial version
|
||||||
|
# 230496 v0.02 More checks, embolden summary
|
||||||
|
# 240496 Even more checks
|
||||||
|
# 250496 Help with ?
|
||||||
|
# 040596 v0.03 Cleanups
|
||||||
|
# 050596 v0.04 Bug fixes, expire date checks
|
||||||
|
# 070596 v0.05 Iso-latin-1 names
|
||||||
|
#
|
||||||
|
|
||||||
|
## Defaults
|
||||||
|
|
||||||
|
# default groups
|
||||||
|
def_group="users"
|
||||||
|
def_other_groups=""
|
||||||
|
|
||||||
|
# default home directory
|
||||||
|
def_home_dir=/home/users
|
||||||
|
|
||||||
|
# default shell
|
||||||
|
def_shell=/bin/tcsh
|
||||||
|
|
||||||
|
# Default expiration date (mm/dd/yy)
|
||||||
|
def_expire=""
|
||||||
|
|
||||||
|
# default dates
|
||||||
|
def_pwd_min=0
|
||||||
|
def_pwd_max=90
|
||||||
|
def_pwd_warn=14
|
||||||
|
def_pwd_iact=14
|
||||||
|
|
||||||
|
|
||||||
|
# possible UIDs
|
||||||
|
uid_low=1000
|
||||||
|
uid_high=64000
|
||||||
|
|
||||||
|
# skel directory
|
||||||
|
skel=/etc/skel
|
||||||
|
|
||||||
|
# default mode for home directory
|
||||||
|
def_mode=711
|
||||||
|
|
||||||
|
# Regex, that the login name must meet, only ANSI characters
|
||||||
|
login_regex='^[0-9a-zA-Z_-]*$'
|
||||||
|
|
||||||
|
# Regex, that the user name must meet
|
||||||
|
# ANSI version
|
||||||
|
##name_regex='^[0-9a-zA-Z_-\ ]*$'
|
||||||
|
# ISO-LATIN-1 version
|
||||||
|
name_regex='^[0-9a-zA-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöùúûüýþÿ_-\ ]*$'
|
||||||
|
|
||||||
|
# set PATH
|
||||||
|
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
||||||
|
|
||||||
|
# Some special characters
|
||||||
|
case "$TERM" in
|
||||||
|
vt*|ansi*|con*|xterm*|linux*)
|
||||||
|
S='[1m' # start embolden
|
||||||
|
E='[m' # end embolden
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
S=''
|
||||||
|
E=''
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
check_root() {
|
||||||
|
if test "$EUID" -ne 0
|
||||||
|
then
|
||||||
|
echo "You must be root to run this program."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
check_user() {
|
||||||
|
local usr pwd uid gid name home sh
|
||||||
|
|
||||||
|
cat /etc/passwd | (
|
||||||
|
while IFS=":" read usr pwd uid gid name home sh
|
||||||
|
do
|
||||||
|
if test "$1" = "${usr}"
|
||||||
|
then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
return 0
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
check_group() {
|
||||||
|
local read grp pwd gid members
|
||||||
|
|
||||||
|
cat /etc/group | (
|
||||||
|
while IFS=":" read grp pwd gid members
|
||||||
|
do
|
||||||
|
if test "$1" = "${grp}"
|
||||||
|
then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
return 0
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
check_other_groups() {
|
||||||
|
local grp check IFS
|
||||||
|
|
||||||
|
check="$1"
|
||||||
|
IFS=","
|
||||||
|
|
||||||
|
set ${check}
|
||||||
|
for grp
|
||||||
|
do
|
||||||
|
if check_group "${grp}"
|
||||||
|
then
|
||||||
|
echo "Group ${grp} does not exist."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
check_uid() {
|
||||||
|
local usr pwd uid gid name home sh
|
||||||
|
|
||||||
|
cat /etc/passwd | (
|
||||||
|
while IFS=":" read usr pwd uid gid name home sh
|
||||||
|
do
|
||||||
|
if test "$1" = "${uid}"
|
||||||
|
then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
return 0
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
read_yn() {
|
||||||
|
local ans ynd
|
||||||
|
|
||||||
|
ynd="$1"
|
||||||
|
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
read ans
|
||||||
|
case "${ans}" in
|
||||||
|
"") return ${ynd} ;;
|
||||||
|
[nN]) return 1 ;;
|
||||||
|
[yY]) return 0 ;;
|
||||||
|
*) echo -n "Y or N, please ? " ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_login() {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "Login: ${def_login:+[${def_login}] }"
|
||||||
|
read login
|
||||||
|
|
||||||
|
if test "${login}" = '?'
|
||||||
|
then
|
||||||
|
less /etc/passwd
|
||||||
|
echo
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "${login}" -a -n "${def_login}"
|
||||||
|
then
|
||||||
|
login="${def_login}"
|
||||||
|
echo "Using ${login}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${#login}" -gt 8
|
||||||
|
then
|
||||||
|
echo "Login must be at most 8 characters long"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${#login}" -lt 2
|
||||||
|
then
|
||||||
|
echo "Login must be at least 2 characters long"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${login}" : "${login_regex}" &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use letters, numbers and special characters _-,."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! check_user "${login}"
|
||||||
|
then
|
||||||
|
echo "Username ${login} is already in use"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_login="${login}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_name () {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "Real name: ${def_name:+[${def_name}] }"
|
||||||
|
read name
|
||||||
|
|
||||||
|
if test "${name}" = '?'
|
||||||
|
then
|
||||||
|
less /etc/passwd
|
||||||
|
echo
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "${name}" -a -n "${def_name}"
|
||||||
|
then
|
||||||
|
name="${def_name}"
|
||||||
|
echo "Using ${name}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${#name}" -gt 32
|
||||||
|
then
|
||||||
|
echo "Name should be at most 32 characters long"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${name}" : "${name_regex}" &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use letters, numbers, spaces and special characters ,._-"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_name="${name}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_home() {
|
||||||
|
local x
|
||||||
|
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "Home Directory: [${def_home_dir}/${login}] "
|
||||||
|
read home
|
||||||
|
|
||||||
|
if test -z "${home}"
|
||||||
|
then
|
||||||
|
home="${def_home_dir}/${login}"
|
||||||
|
echo "Using ${home}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${home}" : '^[0-9a-zA-Z,._-\/]*$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use letters, numbers, spaces and special characters ,._-/"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
x="$(basename ${home})"
|
||||||
|
if test "${x}" != "${login}"
|
||||||
|
then
|
||||||
|
echo "Warning: you are about to use different login name and home directory."
|
||||||
|
fi
|
||||||
|
|
||||||
|
x="$(dirname ${home})"
|
||||||
|
if ! test -d "${x}"
|
||||||
|
then
|
||||||
|
echo "Directory ${x} does not exist."
|
||||||
|
echo "If you still want to use it, please make it manually."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_home_dir="${x}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_shell () {
|
||||||
|
local x
|
||||||
|
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "Shell: [${def_shell}] "
|
||||||
|
read shell
|
||||||
|
|
||||||
|
if test -z "${shell}"
|
||||||
|
then
|
||||||
|
shell="${def_shell}"
|
||||||
|
echo "Using ${shell}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for x in $(cat /etc/shells)
|
||||||
|
do
|
||||||
|
if test "${x}" = "${shell}"
|
||||||
|
then
|
||||||
|
def_shell="${shell}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Possible shells are:"
|
||||||
|
cat /etc/shells
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_group () {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "Group: [${def_group}] "
|
||||||
|
read group
|
||||||
|
|
||||||
|
if test -z "${group}"
|
||||||
|
then
|
||||||
|
group="${def_group}"
|
||||||
|
echo "Using ${group}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${group}" = '?'
|
||||||
|
then
|
||||||
|
less /etc/group
|
||||||
|
echo
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_group "${group}"
|
||||||
|
then
|
||||||
|
echo "Group ${group} does not exist."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_group="${group}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_other_groups () {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "Other groups: [${def_og:-none}] "
|
||||||
|
read other_groups
|
||||||
|
|
||||||
|
if test "${other_groups}" = '?'
|
||||||
|
then
|
||||||
|
less /etc/group
|
||||||
|
echo
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "${other_groups}"
|
||||||
|
then
|
||||||
|
if test -n "${def_og}"
|
||||||
|
then
|
||||||
|
other_groups="${def_og}"
|
||||||
|
echo "Using ${other_groups}"
|
||||||
|
else
|
||||||
|
echo "No other groups"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if ! check_other_groups "${other_groups}"
|
||||||
|
then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_og="${other_groups}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_uid () {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -n "uid: [first free] "
|
||||||
|
read uid
|
||||||
|
|
||||||
|
if test -z "${uid}"
|
||||||
|
then
|
||||||
|
echo "Using first free UID."
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${uid}" = '?'
|
||||||
|
then
|
||||||
|
less /etc/passwd
|
||||||
|
echo
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${uid}" : '^[0-9]+$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use numbers only."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test "${uid}" -lt "${uid_low}"
|
||||||
|
then
|
||||||
|
echo "UID must be greater than ${uid_low}"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test "${uid}" -gt "${uid_high}"
|
||||||
|
then
|
||||||
|
echo "UID must be smaller than ${uid_high}"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if ! check_uid "${uid}"
|
||||||
|
then
|
||||||
|
echo "UID ${uid} is already in use"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_max_valid_days() {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -en "Maximum days between password changes: [${def_pwd_max}] "
|
||||||
|
read max_days
|
||||||
|
|
||||||
|
if test -z "${max_days}"
|
||||||
|
then
|
||||||
|
max_days="${def_pwd_max}"
|
||||||
|
echo "Using ${max_days}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${max_days}" : '^[0-9]+$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use numbers only."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test "${max_days}" -lt 7
|
||||||
|
then
|
||||||
|
echo "Warning: you are using a value shorter than a week."
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_pwd_max="${max_days}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_min_valid_days() {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -en "Minimum days between password changes: [${def_pwd_min}] "
|
||||||
|
read min_days
|
||||||
|
|
||||||
|
if test -z "${min_days}"
|
||||||
|
then
|
||||||
|
min_days="${def_pwd_min}"
|
||||||
|
echo "Using ${min_days}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${min_days}" : '^[0-9]+$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use numbers only."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test "${min_days}" -gt 7
|
||||||
|
then
|
||||||
|
echo "Warning: you are using a value longer than a week."
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_pwd_min="${min_days}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_warning_days() {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -en "Number of warning days before password expires: [${def_pwd_warn}] "
|
||||||
|
read warn_days
|
||||||
|
|
||||||
|
if test -z "${warn_days}"
|
||||||
|
then
|
||||||
|
warn_days="${def_pwd_warn}"
|
||||||
|
echo "Using ${warn_days}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${warn_days}" : '^[0-9]+$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use numbers only."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test "${warn_days}" -gt 14
|
||||||
|
then
|
||||||
|
echo "Warning: you are using a value longer than two week."
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_pwd_warn="${warn_days}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
read_inactive_days() {
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -en "Number of usable days after expiration: [${def_pwd_iact}] "
|
||||||
|
read iact_days
|
||||||
|
|
||||||
|
if test -z "${iact_days}"
|
||||||
|
then
|
||||||
|
iact_days="${def_pwd_iact}"
|
||||||
|
echo "Using ${iact_days}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if ! expr "${iact_days}" : '^[0-9]+$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use numbers only."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test "${iact_days}" -gt 14
|
||||||
|
then
|
||||||
|
echo "Warning: you are using a value that is more than two weeks."
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_pwd_iact="${iact_days}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_expire_date() {
|
||||||
|
local ans
|
||||||
|
|
||||||
|
echo
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
echo -en "Expire date of this account (mm/dd/yy): [${def_expire:-never}] "
|
||||||
|
read ans
|
||||||
|
|
||||||
|
if test -z "${ans}"
|
||||||
|
then
|
||||||
|
if test -z "${def_expire}"
|
||||||
|
then
|
||||||
|
ans="never"
|
||||||
|
else
|
||||||
|
ans="${def_expire}"
|
||||||
|
echo "Using ${def_expire}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "${ans}" = "never"
|
||||||
|
then
|
||||||
|
echo "Account will never expire."
|
||||||
|
def_expire=""
|
||||||
|
expire=""
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expr "${ans}" : '^[0-9][0-9]/[0-9][0-9]/[0-9][0-9]$' &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Please use format mm/dd/yy"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! expire_date="$(date -d ${ans} '+%A, %B %d %Y')"
|
||||||
|
then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
def_expire="${expire}"
|
||||||
|
return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
read_passwd_yn() {
|
||||||
|
echo -en "\nDo you want to set password [Y/n] ? "
|
||||||
|
if read_yn 0
|
||||||
|
then
|
||||||
|
set_pwd="YES"
|
||||||
|
else
|
||||||
|
set_pwd=""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
print_values() {
|
||||||
|
|
||||||
|
clear
|
||||||
|
cat << EOM
|
||||||
|
|
||||||
|
Login: ${S}${login}${E}
|
||||||
|
Group: ${S}${group}${E}
|
||||||
|
Other groups: ${S}${other_groups:-[none]}${E}
|
||||||
|
|
||||||
|
Real Name: ${S}${name}${E}
|
||||||
|
|
||||||
|
uid: ${S}${uid:-[first free]}${E}
|
||||||
|
home: ${S}${home}${E}
|
||||||
|
shell: ${S}${shell}${E}
|
||||||
|
|
||||||
|
Account expiration date: ${S}${expire_date:-never}${E}
|
||||||
|
Minimum days between password changes: ${S}${min_days}${E}
|
||||||
|
Maximum days between password changes: ${S}${max_days}${E}
|
||||||
|
Number of usable days after expiration: ${S}${iact_days}${E}
|
||||||
|
Number of warning days before expiration: ${S}${warn_days}${E}
|
||||||
|
|
||||||
|
${S}${set_pwd:+Set password for this account.}${E}
|
||||||
|
|
||||||
|
EOM
|
||||||
|
}
|
||||||
|
|
||||||
|
set_user() {
|
||||||
|
if ! useradd \
|
||||||
|
-c "${name}" \
|
||||||
|
-d "${home}" \
|
||||||
|
-g "${group}" \
|
||||||
|
-s "${shell}" \
|
||||||
|
${expire:+-e ${expire}} \
|
||||||
|
${uid:+-u ${uid}} \
|
||||||
|
${other_groups:+-G ${other_groups}} \
|
||||||
|
${login}
|
||||||
|
then
|
||||||
|
echo "Error ($?) in useradd...exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
set_aging() {
|
||||||
|
if ! passwd \
|
||||||
|
-x ${max_days} \
|
||||||
|
-n ${min_days} \
|
||||||
|
-w ${warn_days} \
|
||||||
|
-i ${iact_days} \
|
||||||
|
${login}
|
||||||
|
then
|
||||||
|
echo "Error ($?) in setting password aging...exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
set_password() {
|
||||||
|
if test -n "${set_pwd}"
|
||||||
|
then
|
||||||
|
echo
|
||||||
|
passwd ${login}
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
set_system() {
|
||||||
|
if test -d "${home}"
|
||||||
|
then
|
||||||
|
echo "Directory ${home} already exists."
|
||||||
|
echo "Skeleton files not copied."
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -n "Copying skeleton files..."
|
||||||
|
(
|
||||||
|
mkdir ${home}
|
||||||
|
cd ${skel} && cp -af . ${home}
|
||||||
|
chmod ${def_mode} ${home}
|
||||||
|
chown -R ${login}:${group} ${home}
|
||||||
|
)
|
||||||
|
echo "done."
|
||||||
|
|
||||||
|
## Add your own stuff here:
|
||||||
|
echo -n "Setting up other files..."
|
||||||
|
(
|
||||||
|
mailbox="/var/spool/mail/${login}"
|
||||||
|
touch ${mailbox}
|
||||||
|
chown "${login}:mail" ${mailbox}
|
||||||
|
chmod 600 ${mailbox}
|
||||||
|
)
|
||||||
|
echo "done."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
read_values() {
|
||||||
|
clear
|
||||||
|
echo -e "\nPlease answer the following questions about the new user to be added."
|
||||||
|
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
read_login
|
||||||
|
read_name
|
||||||
|
read_group
|
||||||
|
read_other_groups
|
||||||
|
read_home
|
||||||
|
read_shell
|
||||||
|
read_uid
|
||||||
|
read_expire_date
|
||||||
|
read_max_valid_days
|
||||||
|
read_min_valid_days
|
||||||
|
read_warning_days
|
||||||
|
read_inactive_days
|
||||||
|
read_passwd_yn
|
||||||
|
|
||||||
|
print_values
|
||||||
|
|
||||||
|
echo -n "Is this correct [N/y] ? "
|
||||||
|
read_yn 1 && return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
main() {
|
||||||
|
check_root
|
||||||
|
read_values
|
||||||
|
set_user
|
||||||
|
set_aging
|
||||||
|
set_system
|
||||||
|
set_password
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
## Run it 8-)
|
||||||
|
main
|
||||||
|
|
||||||
|
# End.
|
||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
PKG=shadow
|
||||||
|
SITE=ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/
|
||||||
|
|
||||||
|
deb:: check_cheese
|
||||||
|
|
||||||
|
include /usr/share/quilt/quilt.debbuild.mk
|
||||||
|
|
||||||
|
check_cheese:
|
||||||
|
@dpkg-parsechangelog | grep -q "\* The \".*\".* release\." || { \
|
||||||
|
echo ""; \
|
||||||
|
echo " ** **"; \
|
||||||
|
echo " ** Warning: not a cheesy release! **"; \
|
||||||
|
echo " ** **"; \
|
||||||
|
echo ""; \
|
||||||
|
exit 1; \
|
||||||
|
}
|
||||||
Vendored
+62
@@ -0,0 +1,62 @@
|
|||||||
|
shadow (1:4.13+dfsg1-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
The previous entry falsely states that PREVENT_NO_AUTH in /etc/login.defs
|
||||||
|
affects authentication. The historical default of letting all users with
|
||||||
|
empty password field in without authentication is still in effect.
|
||||||
|
|
||||||
|
-- Balint Reczey <balint@balintreczey.hu> Mon, 25 Sep 2023 17:04:09 +0200
|
||||||
|
|
||||||
|
shadow (1:4.11.1+dfsg1-0exp1) experimental; urgency=medium
|
||||||
|
|
||||||
|
Login now prevents an empty password field to be interpreted as
|
||||||
|
"no authentication required" for UID 0 (root account).
|
||||||
|
The historical default of letting all users with empty password field
|
||||||
|
in without authentication can be restored in /etc/login.defs setting
|
||||||
|
PREVENT_NO_AUTH to "no".
|
||||||
|
|
||||||
|
-- Balint Reczey <balint@balintreczey.hu> Sun, 07 Nov 2021 21:51:46 +0100
|
||||||
|
|
||||||
|
shadow (1:4.7-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* /etc/securetty is no longer shipped by this package and it is no longer
|
||||||
|
honored in login's PAM configuration by default. Please see #731656 for the
|
||||||
|
details.
|
||||||
|
|
||||||
|
-- Balint Reczey <rbalint@ubuntu.com> Thu, 20 Jun 2019 13:46:52 +0200
|
||||||
|
|
||||||
|
shadow (1:4.0.15-5) unstable; urgency=low
|
||||||
|
|
||||||
|
* commands passed in argument to su must use su's -c option and must quote
|
||||||
|
the command if it contains a space, as in:
|
||||||
|
su - root -c "ls -l /"
|
||||||
|
The following commands won't work anymore:
|
||||||
|
su - root -c ls -l /
|
||||||
|
su - root "ls -l /"
|
||||||
|
su - root ls -l /
|
||||||
|
|
||||||
|
-- Christian Perrier <bubulle@debian.org> Sat, 8 Apr 2006 20:11:38 +0200
|
||||||
|
|
||||||
|
shadow (1:4.0.14-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* passwd does not support the -f, -s, and -g options anymore. You should use
|
||||||
|
the chfn, chsh and gpasswd utilities instead.
|
||||||
|
* login now distributes the nologin utility, which can be used as a shell
|
||||||
|
to politely refuse a login
|
||||||
|
|
||||||
|
-- Christian Perrier <bubulle@debian.org> Thu, 5 Jan 2006 08:47:44 +0100
|
||||||
|
|
||||||
|
shadow (1:4.0.12-1) unstable; urgency=low
|
||||||
|
|
||||||
|
CLOSE_SESSIONS and other variables are not used anymore in
|
||||||
|
/etc/login/defs.
|
||||||
|
As shadow utilities which use this file now warn about unknown
|
||||||
|
entries there, administrators should remove such unknown entries.
|
||||||
|
The supplied login.defs file does not include them anymore.
|
||||||
|
|
||||||
|
dpasswd is no more distributed by upstream. Login do not support
|
||||||
|
dialup password anymore. Re-introducing this functionality in
|
||||||
|
upstream is not trivial.
|
||||||
|
|
||||||
|
|
||||||
|
-- Christian Perrier <bubulle@debian.org> Thu, 25 Aug 2005 08:38:47 +0200
|
||||||
|
|
||||||
Vendored
+62
@@ -0,0 +1,62 @@
|
|||||||
|
Read this file first for a brief overview of the new versions of login
|
||||||
|
and passwd.
|
||||||
|
|
||||||
|
|
||||||
|
---Shadow passwords
|
||||||
|
|
||||||
|
The command `shadowconfig on' will turn on shadow password support.
|
||||||
|
`shadowconfig off' will turn it back off. If you turn on shadow
|
||||||
|
password support, you'll gain the ability to set password ages and
|
||||||
|
expirations with chage(1).
|
||||||
|
|
||||||
|
NOTE: If you use the nscd package, you may have problems with a
|
||||||
|
slight delay in updating the password information. You may notice
|
||||||
|
this during upgrades of certain packages that try to add a system
|
||||||
|
user and then access the users information immediately afterwards.
|
||||||
|
To avoid this, it is suggested that you stop the nscd daemon before
|
||||||
|
upgrades, then restart it again.
|
||||||
|
|
||||||
|
---General configuration
|
||||||
|
|
||||||
|
Most of the configuration for the shadow utilities is in
|
||||||
|
/etc/login.defs. See login.defs(5). The defaults are quite
|
||||||
|
reasonable.
|
||||||
|
|
||||||
|
Also see the /etc/pam.d/* files for each program to configure the PAM
|
||||||
|
support. PAM documentation is available in several formats in the
|
||||||
|
libpam-doc package.
|
||||||
|
|
||||||
|
|
||||||
|
---MD5 Encryption
|
||||||
|
|
||||||
|
This is enabled now using the /etc/pam.d/* files. Examples are given.
|
||||||
|
|
||||||
|
|
||||||
|
---Adding users and groups
|
||||||
|
|
||||||
|
Though you may add users and groups with the SysV type commands,
|
||||||
|
useradd and groupadd, I recommend you add them with Debian adduser
|
||||||
|
version 3+. adduser gives you more configuration and conforms to the
|
||||||
|
Debian UID and GID allocation.
|
||||||
|
|
||||||
|
Editing user and group parameters can be done with usermod and
|
||||||
|
groupmod. Removing users and groups can be done with userdel and
|
||||||
|
groupdel.
|
||||||
|
|
||||||
|
|
||||||
|
--- Group administration
|
||||||
|
|
||||||
|
Local group allocation is much easier. With gpasswd(1) you can
|
||||||
|
designate users to administer groups. They can then securely add or
|
||||||
|
remove users from the group.
|
||||||
|
|
||||||
|
|
||||||
|
--- What to read next?
|
||||||
|
|
||||||
|
Read the manpages, the other files in this directory, and the Shadow
|
||||||
|
Password HOWTO (included in the doc-linux package). A large portion
|
||||||
|
of these files deals with getting shadow installed. You can, of
|
||||||
|
course, ignore those parts.
|
||||||
|
|
||||||
|
Also, the libpam-doc package will go a long way to allowing you to take
|
||||||
|
full advantage of the PAM authentication scheme.
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
If you update the translation of upsteam files (thank you for that!) please
|
||||||
|
submit a pull request upstream instead of filing a bug in the Debian BTS
|
||||||
|
to get it reviewed and accepted faster.
|
||||||
|
|
||||||
|
A testsuite is also available. Instruction on how to run this testsuite
|
||||||
|
are available in tests/README
|
||||||
|
|
||||||
|
-- Balint Reczey <balint@balintreczey.hu>, Mon, 31 Jan 2022 14:07:11 +0100
|
||||||
Vendored
+19
@@ -0,0 +1,19 @@
|
|||||||
|
Things that should be done:
|
||||||
|
* Verify the files left in debian/tmp
|
||||||
|
+ e.g. /etc/default/adduser should be installed
|
||||||
|
* Check the build system: rebuilding the package twoce in the same tree
|
||||||
|
doubles the size of the diff.gz file
|
||||||
|
|
||||||
|
Other points (not related to the release of a syncronized shadow):
|
||||||
|
* compare the source with the usages and man pages
|
||||||
|
+ probably add a sentence to chsh/chfn's manpages about authentication
|
||||||
|
required for ordinary users
|
||||||
|
* do something (a tool) for the variables in login.defs
|
||||||
|
In Debian, some tools are not compiled with the PAM support, so upstream
|
||||||
|
getdef.c won't be OK.
|
||||||
|
It should be nice to see in each man page the set of variables used.
|
||||||
|
The Debian package can now compile (export DEB_BUILD_OPTIONS='nostrip debug')
|
||||||
|
with the debugging informations. This may be used to extract the set of
|
||||||
|
variables used in Debian/for each tools.
|
||||||
|
* verify all the patches around (I've found patches for at least RedHat,
|
||||||
|
OWL, LFS, Mandriva, Gentoo; are they already applied?)
|
||||||
Vendored
+25
@@ -0,0 +1,25 @@
|
|||||||
|
This described the usertags used by the team.
|
||||||
|
|
||||||
|
For usertags documentation, see
|
||||||
|
http://lists.debian.org/debian-devel-announce/2005/09/msg00002.html
|
||||||
|
|
||||||
|
All bugs tagged by team members must be tagged with
|
||||||
|
"user pkg-shadow-devel@lists.alioth.debian.org"
|
||||||
|
|
||||||
|
Tags list
|
||||||
|
---------
|
||||||
|
|
||||||
|
toclose: This bug has been announced to be closed in case no more news
|
||||||
|
or information is received from the bug submitter or someone
|
||||||
|
else until the delay specified in the limits_YYYYMMDD tag
|
||||||
|
|
||||||
|
limits-YYYYMMDD: combine it with "toclose". Specifies the date after which
|
||||||
|
bugs can be closed without other action in case no news
|
||||||
|
is received
|
||||||
|
|
||||||
|
manpages-replace A bug reported angainst a manpages-xx package to indicate
|
||||||
|
conflicting man pages. This tag can be used to tune the
|
||||||
|
Replaces fields.
|
||||||
|
|
||||||
|
su-transition: This bug is related to the su transition (#276419)
|
||||||
|
|
||||||
Vendored
+4195
File diff suppressed because it is too large
Load Diff
Vendored
+102
@@ -0,0 +1,102 @@
|
|||||||
|
Source: shadow
|
||||||
|
Maintainer: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Uploaders:
|
||||||
|
Serge Hallyn <serge@hallyn.com>,
|
||||||
|
Chris Hofstaedtler <zeha@debian.org>
|
||||||
|
Section: admin
|
||||||
|
Priority: required
|
||||||
|
Build-Depends:
|
||||||
|
bison,
|
||||||
|
debhelper-compat (= 13),
|
||||||
|
dh-package-notes,
|
||||||
|
dh-sequence-zz-debputy-rrr (>= 0.1.23~),
|
||||||
|
docbook-xml <!nodoc>,
|
||||||
|
docbook-xsl <!nodoc>,
|
||||||
|
gettext,
|
||||||
|
itstool <!nodoc>,
|
||||||
|
libacl1-dev,
|
||||||
|
libattr1-dev,
|
||||||
|
libaudit-dev [linux-any],
|
||||||
|
libbsd-dev,
|
||||||
|
libcrypt-dev,
|
||||||
|
libcmocka-dev <!nocheck>,
|
||||||
|
libltdl-dev,
|
||||||
|
libpam0g-dev,
|
||||||
|
libselinux1-dev [linux-any],
|
||||||
|
libsemanage-dev [linux-any],
|
||||||
|
libsystemd-dev [linux-any],
|
||||||
|
libxml2-utils <!nodoc>,
|
||||||
|
pkgconf,
|
||||||
|
quilt,
|
||||||
|
systemd-dev [linux-any],
|
||||||
|
xsltproc <!nodoc>
|
||||||
|
Standards-Version: 4.7.0
|
||||||
|
Vcs-Git: https://salsa.debian.org/debian/shadow.git -b master
|
||||||
|
Vcs-Browser: https://salsa.debian.org/debian/shadow
|
||||||
|
Homepage: https://github.com/shadow-maint/shadow
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
|
Package: passwd
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: foreign
|
||||||
|
Depends:
|
||||||
|
base-passwd (>= 3.6.4),
|
||||||
|
libpam-modules,
|
||||||
|
login
|
||||||
|
Recommends:
|
||||||
|
sensible-utils
|
||||||
|
Description: change and administer password and group data
|
||||||
|
This package includes passwd, chsh, chfn, and many other programs to
|
||||||
|
maintain password and group data.
|
||||||
|
.
|
||||||
|
Shadow passwords are supported. See /usr/share/doc/passwd/README.Debian
|
||||||
|
|
||||||
|
Package: login
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: foreign
|
||||||
|
Protected: yes
|
||||||
|
Depends:
|
||||||
|
libpam-modules,
|
||||||
|
libpam-runtime
|
||||||
|
Breaks:
|
||||||
|
hurd (<< 20140206~) [hurd-any]
|
||||||
|
Conflicts:
|
||||||
|
python-4suite (<< 0.99cvs20060405-1)
|
||||||
|
Replaces:
|
||||||
|
hurd (<< 20140206~) [hurd-any]
|
||||||
|
Description: system login tools
|
||||||
|
This package provides support for console-based logins and for
|
||||||
|
changing effective user or group IDs, including:
|
||||||
|
* login, the program that invokes a user shell on a virtual terminal;
|
||||||
|
* nologin, a dummy shell for disabled user accounts;
|
||||||
|
|
||||||
|
Package: uidmap
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: foreign
|
||||||
|
Priority: optional
|
||||||
|
Description: programs to help use subuids
|
||||||
|
These programs help unprivileged users to create uid and gid mappings in
|
||||||
|
user namespaces.
|
||||||
|
|
||||||
|
Package: libsubid4
|
||||||
|
Section: libs
|
||||||
|
Priority: optional
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
|
Description: subordinate id handling library -- shared library
|
||||||
|
The library provides an interface for querying, granding and ungranting
|
||||||
|
subordinate user and group ids.
|
||||||
|
|
||||||
|
Package: libsubid-dev
|
||||||
|
Section: libdevel
|
||||||
|
Priority: optional
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
|
Depends:
|
||||||
|
libsubid4 (= ${binary:Version})
|
||||||
|
Description: subordinate id handling library -- shared library
|
||||||
|
The library provides an interface for querying, granding and ungranting
|
||||||
|
subordinate user and group ids.
|
||||||
|
.
|
||||||
|
This package contains the C header files that are
|
||||||
|
needed for applications to use the libsubid4 library.
|
||||||
Vendored
+191
@@ -0,0 +1,191 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: Shadow
|
||||||
|
Source: https://github.com/shadow-maint/shadow
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 1989-1994, Julianne Frances Haugh
|
||||||
|
2016-2022, Serge Hallyn <serge@hallyn.com>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/po/da.po
|
||||||
|
man/po/de.po
|
||||||
|
man/tr/man1/su.1
|
||||||
|
po/da.po
|
||||||
|
po/de.po
|
||||||
|
po/es.po
|
||||||
|
po/eu.po
|
||||||
|
po/fi.po
|
||||||
|
po/gl.po
|
||||||
|
po/it.po
|
||||||
|
po/kk.po
|
||||||
|
po/nb.po
|
||||||
|
po/nl.po
|
||||||
|
po/nn.po
|
||||||
|
po/pl.po
|
||||||
|
po/pt_BR.po
|
||||||
|
po/ru.po
|
||||||
|
po/sq.po
|
||||||
|
po/sv.po
|
||||||
|
po/vi.po
|
||||||
|
Copyright: 1999-2015, Free Software Foundation, Inc
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/fi/man1/chfn.1
|
||||||
|
man/id/man1/*
|
||||||
|
man/ko/man1/chfn.1
|
||||||
|
man/ko/man1/chsh.1
|
||||||
|
man/tr/man1/chfn.1
|
||||||
|
man/zh_TW/man1/chfn.1
|
||||||
|
man/zh_TW/man1/chsh.1
|
||||||
|
Copyright: 1994, salvatore valente <svalente@athena.mit.edu>
|
||||||
|
License: GPL-1
|
||||||
|
|
||||||
|
Files: man/pt_BR/man8/*
|
||||||
|
man/zh_TW/man8/usermod.8
|
||||||
|
Copyright: 1991-1994, Julianne Frances Haugh
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/hu/man1/gpasswd.1
|
||||||
|
man/ja/man1/gpasswd.1
|
||||||
|
man/pt_BR/man1/*
|
||||||
|
Copyright: 1996, Rafal Maszkowski <rzm@pdi.net>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/id/man1/login.1
|
||||||
|
man/ko/man1/login.1
|
||||||
|
man/tr/man1/login.1
|
||||||
|
Copyright: 1993, Rickard E. Faith <faith@cs.unc.edu>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/ja/man1/groups.1
|
||||||
|
man/ja/man5/limits.5
|
||||||
|
man/ja/man8/vipw.8
|
||||||
|
Copyright: 2001, Maki KURODA
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/pt_BR/man5/passwd.5
|
||||||
|
man/tr/man5/passwd.5
|
||||||
|
Copyright: 1993, Michael Haardt <michael@moria.de>
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: man/ja/man1/chage.1
|
||||||
|
man/ja/man5/suauth.5
|
||||||
|
Copyright: 1997, Kazuyoshi Furutaka
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/po/fr.po
|
||||||
|
po/fr.po
|
||||||
|
Copyright: 2011-2013, Debian French l10n team <debian-l10n-french@lists.debian.org>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/zh_TW/man5/*
|
||||||
|
Copyright: 1993, Michael Haardt <michael@moria.de>
|
||||||
|
1993, Scorpio, www.linuxforum.net
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: man/hu/man5/*
|
||||||
|
Copyright: 1993, Michael Haardt <u31b3hs@pool.informatik.rwth-aachen.de>
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: contrib/adduser2.sh
|
||||||
|
Copyright: 1996, Petri Mattila, Prihateam Networks <petri@prihateam.fi>
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: lib/subordinateio.h
|
||||||
|
Copyright: 2012, Eric W. Biederman
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/hu/man1/su.1
|
||||||
|
Copyright: 1999, Ragnar Hojland Espinosa <ragnar@macula.net>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/ja/man1/id.1
|
||||||
|
Copyright: 2000, ISHIKAWA Keisuke
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: man/ja/man8/pwconv.8
|
||||||
|
Copyright: 2001, Yuichi SATO
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: src/login_nopam.c
|
||||||
|
Copyright: 1995, Wietse Venema
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: src/su.c
|
||||||
|
Copyright: 1989 - 1994, Julianne Frances Haugh
|
||||||
|
1996 - 2000, Marek Michałkiewicz
|
||||||
|
2000 - 2006, Tomasz Kłoczko
|
||||||
|
2007 - 2013, Nicolas François
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: src/vipw.c
|
||||||
|
Copyright: 1997, Guy Maor <maor@ece.utexas.edu>
|
||||||
|
1999 - 2000, Marek Michałkiewicz
|
||||||
|
2002 - 2006, Tomasz Kłoczko
|
||||||
|
2007 - 2013, Nicolas François
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: man/ko/man5/*
|
||||||
|
Copyright: 2000, ASPLINUX <man@asp-linux.co.kr>
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 1999-2001, Ben Collins <bcollins@debian.org>
|
||||||
|
2001-2004 Karl Ramm <kcr@debian.org>
|
||||||
|
2004-2014 Christian Perrier <bubulle@debian.org>
|
||||||
|
2006-2012 Nicolas Francois (Nekral) <nicolas.francois@centraliens.net>
|
||||||
|
2017-2022 Balint Reczey <balint@balintreczey.hu>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: debian/patches/cppw-Add-tool.patch
|
||||||
|
Copyright: 1997, Guy Maor <maor@ece.utexas.edu>
|
||||||
|
1999, Stephen Frost <sfrost@snowman.net>
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: debian/passwd.expire.cron
|
||||||
|
Copyright: 1999, Ben Collins <bcollins@debian.org>
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
License: BSD-3-clause
|
||||||
|
All rights reserved.
|
||||||
|
.
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the University nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
.
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
License: GPL-1
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; version 1
|
||||||
|
.
|
||||||
|
On Debian systems, the complete text of version 1 of the GNU General
|
||||||
|
Public License can be found in '/usr/share/common-licenses/GPL-1'.
|
||||||
|
|
||||||
|
License: GPL-2+
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; version 2 dated June, 1991, or (at
|
||||||
|
your option) any later version.
|
||||||
|
.
|
||||||
|
On Debian systems, the complete text of version 2 of the GNU General
|
||||||
|
Public License can be found in '/usr/share/common-licenses/GPL-2'.
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
.so man8/cppw.8
|
||||||
Vendored
+27
@@ -0,0 +1,27 @@
|
|||||||
|
.TH CPPW 8 "7 Apr 2005"
|
||||||
|
.SH NAME
|
||||||
|
cppw, cpgr \- copy with locking the given file to the password or group file
|
||||||
|
.SH SYNOPSIS
|
||||||
|
\fBcppw\fR [\fB\-h\fR] [\fB\-s\fR] password_file
|
||||||
|
.br
|
||||||
|
\fBcpgr\fR [\fB\-h\fR] [\fB\-s\fR] group_file
|
||||||
|
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.BR cppw " and " cpgr
|
||||||
|
will copy, with locking, the given file to
|
||||||
|
.IR /etc/passwd " and " /etc/group ", respectively."
|
||||||
|
With the \fB\-s\fR flag, they will copy the shadow versions of those files,
|
||||||
|
.IR /etc/shadow " and " /etc/gshadow ", respectively."
|
||||||
|
|
||||||
|
With the \fB\-h\fR flag, the commands display a short help message and exit
|
||||||
|
silently.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR vipw (8),
|
||||||
|
.BR vigr (8),
|
||||||
|
.BR group (5),
|
||||||
|
.BR passwd (5),
|
||||||
|
.BR shadow (5),
|
||||||
|
.BR gshadow (5)
|
||||||
|
.SH AUTHOR
|
||||||
|
\fBcppw\fR and \fBcpgr\fR were written by Stephen Frost, based on
|
||||||
|
\fBvipw\fR and \fBvigr\fR written by Guy Maor.
|
||||||
Vendored
+37
@@ -0,0 +1,37 @@
|
|||||||
|
manifest-version: '0.1'
|
||||||
|
packages:
|
||||||
|
passwd:
|
||||||
|
transformations:
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/chfn
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/chsh
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/gpasswd
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/passwd
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/chage
|
||||||
|
group: "shadow"
|
||||||
|
mode: "u=rwx,go=rxs"
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/expiry
|
||||||
|
group: "shadow"
|
||||||
|
mode: "u=rwx,go=rxs"
|
||||||
|
login:
|
||||||
|
transformations:
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/newgrp
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
|
uidmap:
|
||||||
|
transformations:
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/newgidmap
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
|
- path-metadata:
|
||||||
|
path: usr/bin/newuidmap
|
||||||
|
mode: "u=rwxs,go=rx"
|
||||||
+8
-11
@@ -2,10 +2,10 @@
|
|||||||
#
|
#
|
||||||
# The SHELL variable specifies the default login shell on your
|
# The SHELL variable specifies the default login shell on your
|
||||||
# system.
|
# system.
|
||||||
# Similar to DHSELL in adduser. However, we use "sh" here because
|
# Similar to DSHELL in adduser. However, we use "sh" here because
|
||||||
# useradd is a low level utility and should be as general
|
# useradd is a low level utility and should be as general
|
||||||
# as possible
|
# as possible
|
||||||
SHELL=/bin/foobar
|
SHELL=/bin/sh
|
||||||
#
|
#
|
||||||
# The default group for users
|
# The default group for users
|
||||||
# 100=users on Debian systems
|
# 100=users on Debian systems
|
||||||
@@ -14,21 +14,17 @@ SHELL=/bin/foobar
|
|||||||
# The default behavior (when -n and -g are not specified) is to create a
|
# The default behavior (when -n and -g are not specified) is to create a
|
||||||
# primary user group with the same name as the user being added to the
|
# primary user group with the same name as the user being added to the
|
||||||
# system.
|
# system.
|
||||||
GROUP=10
|
# GROUP=100
|
||||||
#
|
|
||||||
# Addional supplementary groups for users
|
|
||||||
GROUPS=bin,adm,man,cdrom
|
|
||||||
#
|
#
|
||||||
# The default home directory. Same as DHOME for adduser
|
# The default home directory. Same as DHOME for adduser
|
||||||
#
|
# HOME=/home
|
||||||
HOME=/tmp
|
|
||||||
#
|
#
|
||||||
# The number of days after a password expires until the account
|
# The number of days after a password expires until the account
|
||||||
# is permanently disabled
|
# is permanently disabled
|
||||||
INACTIVE=12
|
# INACTIVE=-1
|
||||||
#
|
#
|
||||||
# The default expire date
|
# The default expire date
|
||||||
EXPIRE=2007-12-02
|
# EXPIRE=
|
||||||
#
|
#
|
||||||
# The SKEL variable specifies the directory containing "skeletal" user
|
# The SKEL variable specifies the directory containing "skeletal" user
|
||||||
# files; in other words, files such as a sample .profile that will be
|
# files; in other words, files such as a sample .profile that will be
|
||||||
@@ -37,4 +33,5 @@ EXPIRE=2007-12-02
|
|||||||
#
|
#
|
||||||
# Defines whether the mail spool should be created while
|
# Defines whether the mail spool should be created while
|
||||||
# creating the account
|
# creating the account
|
||||||
# CREATE_MAIL_SPOOL=yes
|
# CREATE_MAIL_SPOOL=no
|
||||||
|
|
||||||
Vendored
+94
@@ -0,0 +1,94 @@
|
|||||||
|
Build-Depends:
|
||||||
|
==============
|
||||||
|
* autoconf
|
||||||
|
* automake1.9
|
||||||
|
works with 1.7 or 1.9 (at least)
|
||||||
|
* libtool
|
||||||
|
* gettext
|
||||||
|
POT, PO, GMO regenerated?
|
||||||
|
* libpam0g-dev
|
||||||
|
OK
|
||||||
|
* debhelper (>= 4.1.16)
|
||||||
|
* po-debconf
|
||||||
|
OK
|
||||||
|
* quilt
|
||||||
|
patch system
|
||||||
|
* dpkg-dev (>= 1.13.5)
|
||||||
|
* xsltproc
|
||||||
|
used to generate the manpages
|
||||||
|
* docbook-xsl
|
||||||
|
needed for /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
|
||||||
|
* docbook-xml
|
||||||
|
manpages/docbook.xsl includes html/docbook.xsl
|
||||||
|
(But it is not strictly needed. The generated manpages are identical.
|
||||||
|
Without it, a warning is generated.)
|
||||||
|
Needed by JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN], [DocBook XML DTD V4.1.2], [], enable_man=no)
|
||||||
|
* libxml2-utils
|
||||||
|
needed by the JH_CHECK_XML_CATALOG macros
|
||||||
|
* cdbs
|
||||||
|
used in debian/rules
|
||||||
|
* libselinux1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
|
||||||
|
* gnome-doc-utils (>= 0.4.3-1)
|
||||||
|
xml2po, 0.4.3-1 needed for the -l switch.
|
||||||
|
|
||||||
|
passwd Depends:
|
||||||
|
===============
|
||||||
|
* ${shlibs:Depends}
|
||||||
|
OK
|
||||||
|
* ${loginpam}
|
||||||
|
- hurd
|
||||||
|
login
|
||||||
|
libpam-modules (>= 0.72-5)
|
||||||
|
- other archs
|
||||||
|
+ login (>= 970502-1)
|
||||||
|
login is needed because some passwd utils need /etc/login.defs
|
||||||
|
login is Essential, so this is just to enforce the version
|
||||||
|
+ libpam-modules (>= 0.72-5)
|
||||||
|
* debianutils (>= 2.15.2)
|
||||||
|
After 1:4.0.12-6, {add,remove}-shell are distributed in debianutils (2.15)
|
||||||
|
/etc/shell was forgotten and introduced in debianutils in 2.15.2
|
||||||
|
|
||||||
|
passwd Conflicts:
|
||||||
|
=================
|
||||||
|
|
||||||
|
passwd Replaces:
|
||||||
|
================
|
||||||
|
Some of the passwd man pages are also distributed in some manpages* packages.
|
||||||
|
Look at the debian/02/run test to optimize these dependencies.
|
||||||
|
NOTE: Not all maintainers have been notified.
|
||||||
|
* manpages-de (<< 0.4-9), manpages-fi (<< 0.2-4), manpages-fr (<<1.64.0-1), manpages-hu (<< 20010119-5), manpages-it (<< 0.3.4-3), manpages-ja (<< 0.5.0.0.20050915-1), manpages-ko (<< 20050219-2), manpages-es (<< 1.55-4), manpages-es-extra (<< 0.8a-15), manpages-ru (<< 0.98-3)
|
||||||
|
All those packages have been updated during sarge->etch. So these Replaces
|
||||||
|
should be removed after lenny release
|
||||||
|
* manpages-tr, manpages-zh
|
||||||
|
Those packages are still in etch, so the Replaces should be kept even
|
||||||
|
after lenny release
|
||||||
|
|
||||||
|
login Pre-Depends:
|
||||||
|
==================
|
||||||
|
* ${shlibs:Depends}
|
||||||
|
* libpam-runtime (>= 0.76-14)
|
||||||
|
sarge contained 0.76-22
|
||||||
|
|
||||||
|
Why Pre-Depends? (because it's an essential package?)
|
||||||
|
|
||||||
|
login Depends:
|
||||||
|
==============
|
||||||
|
* libpam-modules (>= 0.72-5)
|
||||||
|
libpam-modules is needed.
|
||||||
|
potato contained 0.72-9
|
||||||
|
|
||||||
|
login Conflicts:
|
||||||
|
================
|
||||||
|
|
||||||
|
login Replaces:
|
||||||
|
===============
|
||||||
|
* Some of the login man pages are also distributed in some manpages* packages.
|
||||||
|
Look at the debian/02/run test to optimize these dependencies.
|
||||||
|
NOTE: Not all maintainers have been notified.
|
||||||
|
- manpages-fi, manpages-fr (<<1.64.0-1), manpages-hu, manpages-it, manpages-ko, manpages-ja (<< 0.5.0.0.20050915-1), manpages-de (<< 0.4-10), manpages-es-extra (<<0.8a-15)
|
||||||
|
Those are packages that have been updated during sarge->etch. These
|
||||||
|
Replaces should be removed after lenny
|
||||||
|
- manpages-tr, manpages-zh
|
||||||
|
Those packages are still in etch, so the Replaces should be kept even
|
||||||
|
after lenny release
|
||||||
|
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
variables:
|
||||||
|
RELEASE: 'unstable'
|
||||||
|
# workaround for https://salsa.debian.org/salsa-ci-team/pipeline/-/issues/259
|
||||||
|
SALSA_CI_REPROTEST_ARGS: --vary=domain_host.use_sudo=1
|
||||||
|
include:
|
||||||
|
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
|
||||||
|
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
usr/include/*
|
||||||
|
usr/lib/*/libsubid.a
|
||||||
|
usr/lib/*/libsubid.so
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/*/libsubid.so.*
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
libsubid.so.4 libsubid4 #MINVER#
|
||||||
|
subid_get_gid_owners@Base 1:4.11.1
|
||||||
|
subid_get_gid_ranges@Base 1:4.11.1
|
||||||
|
subid_get_uid_owners@Base 1:4.11.1
|
||||||
|
subid_get_uid_ranges@Base 1:4.11.1
|
||||||
|
subid_grant_gid_range@Base 1:4.11.1
|
||||||
|
subid_grant_uid_range@Base 1:4.11.1
|
||||||
|
subid_init@Base 1:4.11.1
|
||||||
|
subid_ungrant_gid_range@Base 1:4.11.1
|
||||||
|
subid_ungrant_uid_range@Base 1:4.11.1
|
||||||
Vendored
+324
@@ -0,0 +1,324 @@
|
|||||||
|
#
|
||||||
|
# /etc/login.defs - Configuration control definitions for the login package.
|
||||||
|
#
|
||||||
|
# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
|
||||||
|
# If unspecified, some arbitrary (and possibly incorrect) value will
|
||||||
|
# be assumed. All other items are optional - if not specified then
|
||||||
|
# the described action or option will be inhibited.
|
||||||
|
#
|
||||||
|
# Comment lines (lines beginning with "#") and blank lines are ignored.
|
||||||
|
#
|
||||||
|
# Modified for Linux. --marekm
|
||||||
|
|
||||||
|
# REQUIRED for useradd/userdel/usermod
|
||||||
|
# Directory where mailboxes reside, _or_ name of file, relative to the
|
||||||
|
# home directory. If you _do_ define MAIL_DIR and MAIL_FILE,
|
||||||
|
# MAIL_DIR takes precedence.
|
||||||
|
#
|
||||||
|
# Essentially:
|
||||||
|
# - MAIL_DIR defines the location of users mail spool files
|
||||||
|
# (for mbox use) by appending the username to MAIL_DIR as defined
|
||||||
|
# below.
|
||||||
|
# - MAIL_FILE defines the location of the users mail spool files as the
|
||||||
|
# fully-qualified filename obtained by prepending the user home
|
||||||
|
# directory before $MAIL_FILE
|
||||||
|
#
|
||||||
|
# NOTE: This is no more used for setting up users MAIL environment variable
|
||||||
|
# which is, starting from shadow 4.0.12-1 in Debian, entirely the
|
||||||
|
# job of the pam_mail PAM modules
|
||||||
|
# See default PAM configuration files provided for
|
||||||
|
# login, su, etc.
|
||||||
|
#
|
||||||
|
# This is a temporary situation: setting these variables will soon
|
||||||
|
# move to /etc/default/useradd and the variables will then be
|
||||||
|
# no more supported
|
||||||
|
MAIL_DIR /var/mail
|
||||||
|
#MAIL_FILE .mail
|
||||||
|
|
||||||
|
#
|
||||||
|
# Enable display of unknown usernames when login failures are recorded.
|
||||||
|
#
|
||||||
|
# WARNING: Unknown usernames may become world readable.
|
||||||
|
# See #290803 and #298773 for details about how this could become a security
|
||||||
|
# concern
|
||||||
|
LOG_UNKFAIL_ENAB no
|
||||||
|
|
||||||
|
#
|
||||||
|
# Enable logging of successful logins
|
||||||
|
#
|
||||||
|
LOG_OK_LOGINS no
|
||||||
|
|
||||||
|
#
|
||||||
|
# Enable "syslog" logging of su activity - in addition to sulog file logging.
|
||||||
|
# SYSLOG_SG_ENAB does the same for newgrp and sg.
|
||||||
|
#
|
||||||
|
SYSLOG_SU_ENAB yes
|
||||||
|
SYSLOG_SG_ENAB yes
|
||||||
|
|
||||||
|
#
|
||||||
|
# If defined, all su activity is logged to this file.
|
||||||
|
#
|
||||||
|
#SULOG_FILE /var/log/sulog
|
||||||
|
|
||||||
|
#
|
||||||
|
# If defined, file which maps tty line to TERM environment parameter.
|
||||||
|
# Each line of the file is in a format something like "vt100 tty01".
|
||||||
|
#
|
||||||
|
#TTYTYPE_FILE /etc/ttytype
|
||||||
|
|
||||||
|
#
|
||||||
|
# If defined, the command name to display when running "su -". For
|
||||||
|
# example, if this is defined as "su" then a "ps" will display the
|
||||||
|
# command is "-su". If not defined, then "ps" would display the
|
||||||
|
# name of the shell actually being run, e.g. something like "-sh".
|
||||||
|
#
|
||||||
|
SU_NAME su
|
||||||
|
|
||||||
|
#
|
||||||
|
# If defined, file which inhibits all the usual chatter during the login
|
||||||
|
# sequence. If a full pathname, then hushed mode will be enabled if the
|
||||||
|
# user's name or shell are found in the file. If not a full pathname, then
|
||||||
|
# hushed mode will be enabled if the file exists in the user's home directory.
|
||||||
|
#
|
||||||
|
HUSHLOGIN_FILE .hushlogin
|
||||||
|
#HUSHLOGIN_FILE /etc/hushlogins
|
||||||
|
|
||||||
|
#
|
||||||
|
# *REQUIRED* The default PATH settings, for superuser and normal users.
|
||||||
|
#
|
||||||
|
# (they are minimal, add the rest in the shell startup files)
|
||||||
|
ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
|
||||||
|
|
||||||
|
#
|
||||||
|
# Terminal permissions
|
||||||
|
#
|
||||||
|
# TTYGROUP Login tty will be assigned this group ownership.
|
||||||
|
# TTYPERM Login tty will be set to this permission.
|
||||||
|
#
|
||||||
|
# If you have a "write" program which is "setgid" to a special group
|
||||||
|
# which owns the terminals, define TTYGROUP to the group number and
|
||||||
|
# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
|
||||||
|
# TTYPERM to either 622 or 600.
|
||||||
|
#
|
||||||
|
# In Debian /usr/bin/bsd-write or similar programs are setgid tty
|
||||||
|
# However, the default and recommended value for TTYPERM is still 0600
|
||||||
|
# to not allow anyone to write to anyone else console or terminal
|
||||||
|
|
||||||
|
# Users can still allow other people to write them by issuing
|
||||||
|
# the "mesg y" command.
|
||||||
|
|
||||||
|
TTYGROUP tty
|
||||||
|
TTYPERM 0600
|
||||||
|
|
||||||
|
#
|
||||||
|
# Login configuration initializations:
|
||||||
|
#
|
||||||
|
# ERASECHAR Terminal ERASE character ('\010' = backspace).
|
||||||
|
# KILLCHAR Terminal KILL character ('\025' = CTRL/U).
|
||||||
|
#
|
||||||
|
# The ERASECHAR and KILLCHAR are used only on System V machines.
|
||||||
|
#
|
||||||
|
ERASECHAR 0177
|
||||||
|
KILLCHAR 025
|
||||||
|
|
||||||
|
# HOME_MODE is used by useradd(8) and newusers(8) to set the mode for new
|
||||||
|
# home directories.
|
||||||
|
HOME_MODE 0700
|
||||||
|
|
||||||
|
#
|
||||||
|
# Password aging controls:
|
||||||
|
#
|
||||||
|
# PASS_MAX_DAYS Maximum number of days a password may be used.
|
||||||
|
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
|
||||||
|
# PASS_WARN_AGE Number of days warning given before a password expires.
|
||||||
|
#
|
||||||
|
PASS_MAX_DAYS 99999
|
||||||
|
PASS_MIN_DAYS 0
|
||||||
|
PASS_WARN_AGE 7
|
||||||
|
|
||||||
|
#
|
||||||
|
# Min/max values for automatic uid selection in useradd
|
||||||
|
#
|
||||||
|
UID_MIN 1000
|
||||||
|
UID_MAX 60000
|
||||||
|
# System accounts
|
||||||
|
#SYS_UID_MIN 100
|
||||||
|
#SYS_UID_MAX 999
|
||||||
|
# Extra per user uids
|
||||||
|
SUB_UID_MIN 100000
|
||||||
|
SUB_UID_MAX 600100000
|
||||||
|
SUB_UID_COUNT 65536
|
||||||
|
|
||||||
|
#
|
||||||
|
# Min/max values for automatic gid selection in groupadd
|
||||||
|
#
|
||||||
|
GID_MIN 1000
|
||||||
|
GID_MAX 60000
|
||||||
|
# System accounts
|
||||||
|
#SYS_GID_MIN 100
|
||||||
|
#SYS_GID_MAX 999
|
||||||
|
# Extra per user group ids
|
||||||
|
SUB_GID_MIN 100000
|
||||||
|
SUB_GID_MAX 600100000
|
||||||
|
SUB_GID_COUNT 65536
|
||||||
|
|
||||||
|
#
|
||||||
|
# Max number of login retries if password is bad. This will most likely be
|
||||||
|
# overriden by PAM, since the default pam_unix module has it's own built
|
||||||
|
# in of 3 retries. However, this is a safe fallback in case you are using
|
||||||
|
# an authentication module that does not enforce PAM_MAXTRIES.
|
||||||
|
#
|
||||||
|
LOGIN_RETRIES 5
|
||||||
|
|
||||||
|
#
|
||||||
|
# Max time in seconds for login
|
||||||
|
#
|
||||||
|
LOGIN_TIMEOUT 60
|
||||||
|
|
||||||
|
#
|
||||||
|
# Which fields may be changed by regular users using chfn - use
|
||||||
|
# any combination of letters "frwh" (full name, room number, work
|
||||||
|
# phone, home phone). If not defined, no changes are allowed.
|
||||||
|
# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
|
||||||
|
#
|
||||||
|
CHFN_RESTRICT rwh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Should login be allowed if we can't cd to the home directory?
|
||||||
|
# Default is no.
|
||||||
|
#
|
||||||
|
DEFAULT_HOME yes
|
||||||
|
|
||||||
|
#
|
||||||
|
# If defined, this command is run when removing a user.
|
||||||
|
# It should remove any at/cron/print jobs etc. owned by
|
||||||
|
# the user to be removed (passed as the first argument).
|
||||||
|
#
|
||||||
|
#USERDEL_CMD /usr/sbin/userdel_local
|
||||||
|
|
||||||
|
#
|
||||||
|
# If set to yes, userdel will remove the user's group if it contains no
|
||||||
|
# more members, and useradd will create by default a group with the name
|
||||||
|
# of the user.
|
||||||
|
#
|
||||||
|
# Other former uses of this variable such as setting the umask when
|
||||||
|
# user==primary group are not used in PAM environments, such as Debian
|
||||||
|
#
|
||||||
|
USERGROUPS_ENAB yes
|
||||||
|
|
||||||
|
#
|
||||||
|
# Instead of the real user shell, the program specified by this parameter
|
||||||
|
# will be launched, although its visible name (argv[0]) will be the shell's.
|
||||||
|
# The program may do whatever it wants (logging, additional authentification,
|
||||||
|
# banner, ...) before running the actual shell.
|
||||||
|
#
|
||||||
|
# FAKE_SHELL /bin/fakeshell
|
||||||
|
|
||||||
|
#
|
||||||
|
# If defined, either full pathname of a file containing device names or
|
||||||
|
# a ":" delimited list of device names. Root logins will be allowed only
|
||||||
|
# upon these devices.
|
||||||
|
#
|
||||||
|
# This variable is used by login and su.
|
||||||
|
#
|
||||||
|
#CONSOLE /etc/consoles
|
||||||
|
#CONSOLE console:tty01:tty02:tty03:tty04
|
||||||
|
|
||||||
|
#
|
||||||
|
# List of groups to add to the user's supplementary group set
|
||||||
|
# when logging in on the console (as determined by the CONSOLE
|
||||||
|
# setting). Default is none.
|
||||||
|
#
|
||||||
|
# Use with caution - it is possible for users to gain permanent
|
||||||
|
# access to these groups, even when not logged in on the console.
|
||||||
|
# How to do it is left as an exercise for the reader...
|
||||||
|
#
|
||||||
|
# This variable is used by login and su.
|
||||||
|
#
|
||||||
|
#CONSOLE_GROUPS floppy:audio:cdrom
|
||||||
|
|
||||||
|
#
|
||||||
|
# If set to MD5, MD5-based algorithm will be used for encrypting password
|
||||||
|
# If set to SHA256, SHA256-based algorithm will be used for encrypting password
|
||||||
|
# If set to SHA512, SHA512-based algorithm will be used for encrypting password
|
||||||
|
# If set to BCRYPT, BCRYPT-based algorithm will be used for encrypting password
|
||||||
|
# If set to YESCRYPT, YESCRYPT-based algorithm will be used for encrypting password
|
||||||
|
# If set to DES, DES-based algorithm will be used for encrypting password (default)
|
||||||
|
# MD5 and DES should not be used for new hashes, see crypt(5) for recommendations.
|
||||||
|
# Overrides the MD5_CRYPT_ENAB option
|
||||||
|
#
|
||||||
|
# Note: It is recommended to use a value consistent with
|
||||||
|
# the PAM modules configuration.
|
||||||
|
#
|
||||||
|
ENCRYPT_METHOD YESCRYPT
|
||||||
|
|
||||||
|
#
|
||||||
|
# The pwck(8) utility emits a warning for any system account with a home
|
||||||
|
# directory that does not exist. Some system accounts intentionally do
|
||||||
|
# not have a home directory. Such accounts may have this string as
|
||||||
|
# their home directory in /etc/passwd to avoid a spurious warning.
|
||||||
|
#
|
||||||
|
NONEXISTENT /nonexistent
|
||||||
|
|
||||||
|
#
|
||||||
|
# Allow newuidmap and newgidmap when running under an alternative
|
||||||
|
# primary group.
|
||||||
|
#
|
||||||
|
#GRANT_AUX_GROUP_SUBIDS yes
|
||||||
|
|
||||||
|
#
|
||||||
|
# Select the HMAC cryptography algorithm.
|
||||||
|
# Used in pam_timestamp module to calculate the keyed-hash message
|
||||||
|
# authentication code.
|
||||||
|
#
|
||||||
|
# Note: It is recommended to check hmac(3) to see the possible algorithms
|
||||||
|
# that are available in your system.
|
||||||
|
#
|
||||||
|
#HMAC_CRYPTO_ALGO SHA512
|
||||||
|
|
||||||
|
################# OBSOLETED BY PAM ##############
|
||||||
|
# #
|
||||||
|
# These options are now handled by PAM. Please #
|
||||||
|
# edit the appropriate file in /etc/pam.d/ to #
|
||||||
|
# enable the equivelants of them.
|
||||||
|
#
|
||||||
|
###############
|
||||||
|
|
||||||
|
#MOTD_FILE
|
||||||
|
#DIALUPS_CHECK_ENAB
|
||||||
|
#LASTLOG_ENAB
|
||||||
|
#MAIL_CHECK_ENAB
|
||||||
|
#OBSCURE_CHECKS_ENAB
|
||||||
|
#PORTTIME_CHECKS_ENAB
|
||||||
|
#SU_WHEEL_ONLY
|
||||||
|
#CRACKLIB_DICTPATH
|
||||||
|
#PASS_CHANGE_TRIES
|
||||||
|
#PASS_ALWAYS_WARN
|
||||||
|
#ENVIRON_FILE
|
||||||
|
#NOLOGINS_FILE
|
||||||
|
#ISSUE_FILE
|
||||||
|
#PASS_MIN_LEN
|
||||||
|
#PASS_MAX_LEN
|
||||||
|
#ULIMIT
|
||||||
|
#ENV_HZ
|
||||||
|
#CHFN_AUTH
|
||||||
|
#CHSH_AUTH
|
||||||
|
#FAIL_DELAY
|
||||||
|
|
||||||
|
################# OBSOLETED #######################
|
||||||
|
# #
|
||||||
|
# These options are no more handled by shadow. #
|
||||||
|
# #
|
||||||
|
# Shadow utilities will display a warning if they #
|
||||||
|
# still appear. #
|
||||||
|
# #
|
||||||
|
###################################################
|
||||||
|
|
||||||
|
# CLOSE_SESSIONS
|
||||||
|
# LOGIN_STRING
|
||||||
|
# NO_PASSWORD_CONSOLE
|
||||||
|
# QMAIL_DIR
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/share/lintian/overrides
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
bin/login usr/bin
|
||||||
|
debian/login.defs etc
|
||||||
|
sbin/nologin usr/sbin
|
||||||
|
usr/bin/newgrp
|
||||||
|
usr/share/locale/*/LC_MESSAGES/shadow.mo
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/bin/newgrp usr/bin/sg
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
login: elevated-privileges 4755 root/root [usr/bin/newgrp]
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
rm_conffile /etc/securetty 1:4.7-1~
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
usr/share/man/*/man1/login.1
|
||||||
|
usr/share/man/*/man1/newgrp.1
|
||||||
|
usr/share/man/*/man1/sg.1
|
||||||
|
usr/share/man/*/man5/login.defs.5
|
||||||
|
usr/share/man/*/man8/nologin.8
|
||||||
|
usr/share/man/man1/login.1
|
||||||
|
usr/share/man/man1/newgrp.1
|
||||||
|
usr/share/man/man1/sg.1
|
||||||
|
usr/share/man/man5/login.defs.5
|
||||||
|
usr/share/man/man8/nologin.8
|
||||||
Vendored
+96
@@ -0,0 +1,96 @@
|
|||||||
|
#
|
||||||
|
# The PAM configuration file for the Shadow `login' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# Enforce a minimal delay in case of failure (in microseconds).
|
||||||
|
# (Replaces the `FAIL_DELAY' setting from login.defs)
|
||||||
|
# Note that other modules may require another minimal delay. (for example,
|
||||||
|
# to disable any delay, you should add the nodelay option to pam_unix)
|
||||||
|
auth optional pam_faildelay.so delay=3000000
|
||||||
|
|
||||||
|
# Outputs an issue file prior to each login prompt (Replaces the
|
||||||
|
# ISSUE_FILE option from login.defs). Uncomment for use
|
||||||
|
# auth required pam_issue.so issue=/etc/issue
|
||||||
|
|
||||||
|
# Disallows other than root logins when /etc/nologin exists
|
||||||
|
# (Replaces the `NOLOGINS_FILE' option from login.defs)
|
||||||
|
auth requisite pam_nologin.so
|
||||||
|
|
||||||
|
# SELinux needs to be the first session rule. This ensures that any
|
||||||
|
# lingering context has been cleared. Without this it is possible
|
||||||
|
# that a module could execute code in the wrong domain.
|
||||||
|
# When the module is present, "required" would be sufficient (When SELinux
|
||||||
|
# is disabled, this returns success.)
|
||||||
|
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
|
||||||
|
|
||||||
|
# Sets the loginuid process attribute
|
||||||
|
session required pam_loginuid.so
|
||||||
|
|
||||||
|
# Prints the message of the day upon successful login.
|
||||||
|
# (Replaces the `MOTD_FILE' option in login.defs)
|
||||||
|
# This includes a dynamically generated part from /run/motd.dynamic
|
||||||
|
# and a static (admin-editable) part from /etc/motd.
|
||||||
|
session optional pam_motd.so motd=/run/motd.dynamic
|
||||||
|
session optional pam_motd.so noupdate
|
||||||
|
|
||||||
|
# SELinux needs to intervene at login time to ensure that the process
|
||||||
|
# starts in the proper default security context. Only sessions which are
|
||||||
|
# intended to run in the user's context should be run after this.
|
||||||
|
# pam_selinux.so changes the SELinux context of the used TTY and configures
|
||||||
|
# SELinux in order to transition to the user context with the next execve()
|
||||||
|
# call.
|
||||||
|
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
|
||||||
|
# When the module is present, "required" would be sufficient (When SELinux
|
||||||
|
# is disabled, this returns success.)
|
||||||
|
|
||||||
|
# This module parses environment configuration file(s)
|
||||||
|
# and also allows you to use an extended config
|
||||||
|
# file /etc/security/pam_env.conf.
|
||||||
|
#
|
||||||
|
# parsing /etc/environment needs "readenv=1"
|
||||||
|
session required pam_env.so readenv=1
|
||||||
|
# locale variables can also be set in /etc/default/locale
|
||||||
|
# reading this file *in addition to /etc/environment* does not hurt
|
||||||
|
session required pam_env.so readenv=1 envfile=/etc/default/locale
|
||||||
|
|
||||||
|
# Standard Un*x authentication.
|
||||||
|
@include common-auth
|
||||||
|
|
||||||
|
# This allows certain extra groups to be granted to a user
|
||||||
|
# based on things like time of day, tty, service, and user.
|
||||||
|
# Please edit /etc/security/group.conf to fit your needs
|
||||||
|
# (Replaces the `CONSOLE_GROUPS' option in login.defs)
|
||||||
|
auth optional pam_group.so
|
||||||
|
|
||||||
|
# Uncomment and edit /etc/security/time.conf if you need to set
|
||||||
|
# time restraint on logins.
|
||||||
|
# (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
|
||||||
|
# as well as /etc/porttime)
|
||||||
|
# account requisite pam_time.so
|
||||||
|
|
||||||
|
# Uncomment and edit /etc/security/access.conf if you need to
|
||||||
|
# set access limits.
|
||||||
|
# (Replaces /etc/login.access file)
|
||||||
|
# account required pam_access.so
|
||||||
|
|
||||||
|
# Sets up user limits according to /etc/security/limits.conf
|
||||||
|
# (Replaces the use of /etc/limits in old login)
|
||||||
|
session required pam_limits.so
|
||||||
|
|
||||||
|
# Prints the status of the user's mailbox upon successful login
|
||||||
|
# (Replaces the `MAIL_CHECK_ENAB' option from login.defs).
|
||||||
|
#
|
||||||
|
# This also defines the MAIL environment variable
|
||||||
|
# However, userdel also needs MAIL_DIR and MAIL_FILE variables
|
||||||
|
# in /etc/login.defs to make sure that removing a user
|
||||||
|
# also removes the user's mail spool file.
|
||||||
|
# See comments in /etc/login.defs
|
||||||
|
session optional pam_mail.so standard
|
||||||
|
|
||||||
|
# Create a new session keyring.
|
||||||
|
session optional pam_keyinit.so force revoke
|
||||||
|
|
||||||
|
# Standard Un*x account and session
|
||||||
|
@include common-account
|
||||||
|
@include common-session
|
||||||
|
@include common-password
|
||||||
Vendored
+40
@@ -0,0 +1,40 @@
|
|||||||
|
bin/groups
|
||||||
|
etc/login.defs
|
||||||
|
etc/pam.d/chfn
|
||||||
|
etc/pam.d/chage
|
||||||
|
etc/pam.d/chpasswd
|
||||||
|
etc/pam.d/chsh
|
||||||
|
etc/pam.d/groupadd
|
||||||
|
etc/pam.d/groupdel
|
||||||
|
etc/pam.d/groupmems
|
||||||
|
etc/pam.d/groupmod
|
||||||
|
etc/pam.d/login
|
||||||
|
etc/pam.d/newusers
|
||||||
|
etc/pam.d/passwd
|
||||||
|
etc/pam.d/useradd
|
||||||
|
etc/pam.d/userdel
|
||||||
|
etc/pam.d/usermod
|
||||||
|
usr/bin/faillog
|
||||||
|
usr/bin/sg
|
||||||
|
usr/lib/*/libsubid.la
|
||||||
|
usr/sbin/logoutd
|
||||||
|
usr/sbin/vigr
|
||||||
|
usr/share/man/*/man1/groups.1
|
||||||
|
usr/share/man/*/man1/logoutd.1
|
||||||
|
usr/share/man/*/man1/su.1
|
||||||
|
usr/share/man/*/man3/getspnam.3
|
||||||
|
usr/share/man/*/man3/shadow.3
|
||||||
|
usr/share/man/*/man5/faillog.5
|
||||||
|
usr/share/man/*/man5/suauth.5
|
||||||
|
usr/share/man/*/man8/faillog.8
|
||||||
|
usr/share/man/*/man8/logoutd.8
|
||||||
|
usr/share/man/man1/groups.1
|
||||||
|
usr/share/man/man1/logoutd.1
|
||||||
|
usr/share/man/man1/su.1
|
||||||
|
usr/share/man/man3/getspnam.3
|
||||||
|
usr/share/man/man3/shadow.3
|
||||||
|
usr/share/man/man5/faillog.5
|
||||||
|
usr/share/man/man5/suauth.5
|
||||||
|
usr/share/man/man8/faillog.8
|
||||||
|
usr/share/man/man8/logoutd.8
|
||||||
|
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'chage' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to change password aging being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# The PAM configuration file for the Shadow `chfn' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to change user infomation without being
|
||||||
|
# prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# The standard Unix authentication modules, used with
|
||||||
|
# NIS (man nsswitch) as well as normal /etc/passwd and
|
||||||
|
# /etc/shadow entries.
|
||||||
|
@include common-auth
|
||||||
|
@include common-account
|
||||||
|
@include common-session
|
||||||
|
|
||||||
|
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'chpasswd' service
|
||||||
|
#
|
||||||
|
|
||||||
|
@include common-password
|
||||||
|
|
||||||
Vendored
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#
|
||||||
|
# The PAM configuration file for the Shadow `chsh' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This will not allow a user to change their shell unless
|
||||||
|
# their current one is listed in /etc/shells. This keeps
|
||||||
|
# accounts with special shells from changing them.
|
||||||
|
auth required pam_shells.so
|
||||||
|
|
||||||
|
# This allows root to change user shell without being
|
||||||
|
# prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# The standard Unix authentication modules, used with
|
||||||
|
# NIS (man nsswitch) as well as normal /etc/passwd and
|
||||||
|
# /etc/shadow entries.
|
||||||
|
@include common-auth
|
||||||
|
@include common-account
|
||||||
|
@include common-session
|
||||||
|
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
etc/default
|
||||||
|
usr/share/lintian/overrides
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
debian/passwd.expire.cron
|
||||||
Vendored
+57
@@ -0,0 +1,57 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
#
|
||||||
|
# passwd.expire.cron: sample expiry notification script for use as a cronjob
|
||||||
|
#
|
||||||
|
# Copyright 1999 by Ben Collins <bcollins@debian.org>, complete rights granted
|
||||||
|
# for use, distribution, modification, etc.
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# edit the listed options, including the actual email, then rename to
|
||||||
|
# /etc/cron.daily/passwd
|
||||||
|
#
|
||||||
|
# If your users don't have a valid login shell (ie. they are ftp or mail
|
||||||
|
# users only), they will need some other way to change their password
|
||||||
|
# (telnet will work since login will handle password aging, or a poppasswd
|
||||||
|
# program, if they are mail users).
|
||||||
|
|
||||||
|
# <CONFIG> #
|
||||||
|
|
||||||
|
# should be same as /etc/adduser.conf
|
||||||
|
$LOW_UID=1000;
|
||||||
|
$HIGH_UID=29999;
|
||||||
|
|
||||||
|
# this let's the MTA handle the domain,
|
||||||
|
# set it manually if you want. Make sure
|
||||||
|
# you also add the @ like "\@domain.com"
|
||||||
|
$MAIL_DOM="";
|
||||||
|
|
||||||
|
# </CONFIG> #
|
||||||
|
|
||||||
|
# Set the current day reference
|
||||||
|
$curdays = int(time() / (60 * 60 * 24));
|
||||||
|
|
||||||
|
# Now go through the list
|
||||||
|
|
||||||
|
open(SH, "< /etc/shadow");
|
||||||
|
while (<SH>) {
|
||||||
|
@shent = split(':', $_);
|
||||||
|
@userent = getpwnam($shent[0]);
|
||||||
|
if ($userent[2] >= $LOW_UID && $userent[2] <= $HIGH_UID) {
|
||||||
|
if ($curdays > $shent[2] + $shent[4] - $shent[5] &&
|
||||||
|
$shent[4] != -1 && $shent[4] != 0 &&
|
||||||
|
$shent[5] != -1 && $shent[5] != 0) {
|
||||||
|
$daysleft = ($shent[2] + $shent[4]) - $curdays;
|
||||||
|
if ($daysleft == 1) { $days = "day"; } else {$days = "days"; }
|
||||||
|
if ($daysleft < 0) { next; }
|
||||||
|
open (MAIL, "| mail -s '[WARNING] account will expire in $daysleft $days' $shent[0]${MAIL_DOM}");
|
||||||
|
print MAIL <<EOF;
|
||||||
|
Your account will expire in $daysleft $days. Please change your password before
|
||||||
|
then or your account will expire
|
||||||
|
EOF
|
||||||
|
close (MAIL);
|
||||||
|
# This makes sure we also get a list of almost expired users
|
||||||
|
print "$shent[0]'s account will expire in $daysleft days\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@userent = getpwent();
|
||||||
|
}
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'groupadd' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to add groups without being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'groupdel' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to remove groups without being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'groupmod' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to modify groups without being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
Vendored
+26
@@ -0,0 +1,26 @@
|
|||||||
|
debian/default/useradd etc/default
|
||||||
|
debian/shadowconfig usr/sbin
|
||||||
|
usr/bin/chage
|
||||||
|
usr/bin/chfn
|
||||||
|
usr/bin/chsh
|
||||||
|
usr/bin/expiry
|
||||||
|
usr/bin/gpasswd
|
||||||
|
usr/bin/passwd
|
||||||
|
usr/sbin/chgpasswd
|
||||||
|
usr/sbin/chpasswd
|
||||||
|
usr/sbin/cppw
|
||||||
|
usr/sbin/groupadd
|
||||||
|
usr/sbin/groupdel
|
||||||
|
usr/sbin/groupmems
|
||||||
|
usr/sbin/groupmod
|
||||||
|
usr/sbin/grpck
|
||||||
|
usr/sbin/grpconv
|
||||||
|
usr/sbin/grpunconv
|
||||||
|
usr/sbin/newusers
|
||||||
|
usr/sbin/pwck
|
||||||
|
usr/sbin/pwconv
|
||||||
|
usr/sbin/pwunconv
|
||||||
|
usr/sbin/useradd
|
||||||
|
usr/sbin/userdel
|
||||||
|
usr/sbin/usermod
|
||||||
|
usr/sbin/vipw
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
usr/sbin/cppw usr/sbin/cpgr
|
||||||
|
usr/sbin/vipw usr/sbin/vigr
|
||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
passwd: elevated-privileges 2755 root/shadow [usr/bin/chage]
|
||||||
|
passwd: elevated-privileges 4755 root/root [usr/bin/chfn]
|
||||||
|
passwd: elevated-privileges 4755 root/root [usr/bin/chsh]
|
||||||
|
passwd: elevated-privileges 2755 root/shadow [usr/bin/expiry]
|
||||||
|
passwd: elevated-privileges 4755 root/root [usr/bin/gpasswd]
|
||||||
|
passwd: elevated-privileges 4755 root/root [usr/bin/passwd]
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
rm_conffile /etc/cron.daily/passwd 1:4.7-2~
|
||||||
Vendored
+62
@@ -0,0 +1,62 @@
|
|||||||
|
debian/cpgr.8
|
||||||
|
debian/cppw.8
|
||||||
|
usr/share/man/*/man1/chage.1
|
||||||
|
usr/share/man/*/man1/chfn.1
|
||||||
|
usr/share/man/*/man1/chsh.1
|
||||||
|
usr/share/man/*/man1/expiry.1
|
||||||
|
usr/share/man/*/man1/gpasswd.1
|
||||||
|
usr/share/man/*/man1/passwd.1
|
||||||
|
usr/share/man/*/man5/gshadow.5
|
||||||
|
usr/share/man/*/man5/passwd.5
|
||||||
|
usr/share/man/*/man5/shadow.5
|
||||||
|
usr/share/man/*/man5/subgid.5
|
||||||
|
usr/share/man/*/man5/subuid.5
|
||||||
|
usr/share/man/*/man8/chgpasswd.8
|
||||||
|
usr/share/man/*/man8/chpasswd.8
|
||||||
|
usr/share/man/*/man8/groupadd.8
|
||||||
|
usr/share/man/*/man8/groupdel.8
|
||||||
|
usr/share/man/*/man8/groupmems.8
|
||||||
|
usr/share/man/*/man8/groupmod.8
|
||||||
|
usr/share/man/*/man8/grpck.8
|
||||||
|
usr/share/man/*/man8/grpconv.8
|
||||||
|
usr/share/man/*/man8/grpunconv.8
|
||||||
|
usr/share/man/*/man8/newusers.8
|
||||||
|
usr/share/man/*/man8/pwck.8
|
||||||
|
usr/share/man/*/man8/pwconv.8
|
||||||
|
usr/share/man/*/man8/pwunconv.8
|
||||||
|
usr/share/man/*/man8/shadowconfig.8
|
||||||
|
usr/share/man/*/man8/useradd.8
|
||||||
|
usr/share/man/*/man8/userdel.8
|
||||||
|
usr/share/man/*/man8/usermod.8
|
||||||
|
usr/share/man/*/man8/vigr.8
|
||||||
|
usr/share/man/*/man8/vipw.8
|
||||||
|
usr/share/man/man1/chage.1
|
||||||
|
usr/share/man/man1/chfn.1
|
||||||
|
usr/share/man/man1/chsh.1
|
||||||
|
usr/share/man/man1/expiry.1
|
||||||
|
usr/share/man/man1/gpasswd.1
|
||||||
|
usr/share/man/man1/passwd.1
|
||||||
|
usr/share/man/man5/gshadow.5
|
||||||
|
usr/share/man/man5/passwd.5
|
||||||
|
usr/share/man/man5/shadow.5
|
||||||
|
usr/share/man/man5/subgid.5
|
||||||
|
usr/share/man/man5/subuid.5
|
||||||
|
usr/share/man/man8/chgpasswd.8
|
||||||
|
usr/share/man/man8/chpasswd.8
|
||||||
|
usr/share/man/man8/groupadd.8
|
||||||
|
usr/share/man/man8/groupdel.8
|
||||||
|
usr/share/man/man8/groupmems.8
|
||||||
|
usr/share/man/man8/groupmod.8
|
||||||
|
usr/share/man/man8/grpck.8
|
||||||
|
usr/share/man/man8/grpconv.8
|
||||||
|
usr/share/man/man8/grpunconv.8
|
||||||
|
usr/share/man/man8/newusers.8
|
||||||
|
usr/share/man/man8/pwck.8
|
||||||
|
usr/share/man/man8/pwconv.8
|
||||||
|
usr/share/man/man8/pwunconv.8
|
||||||
|
usr/share/man/man8/shadowconfig.8
|
||||||
|
usr/share/man/man8/useradd.8
|
||||||
|
usr/share/man/man8/userdel.8
|
||||||
|
usr/share/man/man8/usermod.8
|
||||||
|
usr/share/man/man8/vigr.8
|
||||||
|
usr/share/man/man8/vipw.8
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'newusers' service
|
||||||
|
#
|
||||||
|
|
||||||
|
@include common-password
|
||||||
|
|
||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# The PAM configuration file for the Shadow `passwd' service
|
||||||
|
#
|
||||||
|
|
||||||
|
@include common-password
|
||||||
|
|
||||||
Vendored
+30
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure)
|
||||||
|
if ! getent group shadow | grep -q '^shadow:[^:]*:42'
|
||||||
|
then
|
||||||
|
groupadd -g 42 shadow || (
|
||||||
|
cat <<EOF
|
||||||
|
Group ID 42 has been allocated for the shadow group. You have either
|
||||||
|
used 42 yourself or created a shadow group with a different ID.
|
||||||
|
Please correct this problem and reconfigure with ``dpkg --configure passwd''.
|
||||||
|
|
||||||
|
Note that both user and group IDs in the range 0-99 are globally
|
||||||
|
allocated by the Debian project and must be the same on every Debian
|
||||||
|
system.
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Run shadowconfig only on new installs
|
||||||
|
[ -z "$2" ] && shadowconfig on
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# If a password operation is in progress and we lose power, stale lockfiles
|
||||||
|
# can be left behind. Clear them on boot.
|
||||||
|
r! /etc/gshadow.lock
|
||||||
|
r! /etc/shadow.lock
|
||||||
|
r! /etc/passwd.lock
|
||||||
|
r! /etc/group.lock
|
||||||
|
r! /etc/subuid.lock
|
||||||
|
r! /etc/subgid.lock
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'useradd' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to add users without being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'userdel' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to remove users without being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# The PAM configuration file for the Shadow 'groupdel' service
|
||||||
|
#
|
||||||
|
|
||||||
|
# This allows root to remove groups without being prompted for a password
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
|
||||||
|
# checks for account validity
|
||||||
|
account required pam_permit.so
|
||||||
@@ -0,0 +1,280 @@
|
|||||||
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: Document the shadowconfig utility
|
||||||
|
|
||||||
|
Status wrt upstream: The shadowconfig utility is debian specific.
|
||||||
|
Its man page also (but it used to be distributed)
|
||||||
|
---
|
||||||
|
man/Makefile.am | 2 ++
|
||||||
|
man/fr/Makefile.am | 1 +
|
||||||
|
man/fr/man8/shadowconfig.8 | 26 +++++++++++++++++++++++
|
||||||
|
man/ja/Makefile.am | 1 +
|
||||||
|
man/ja/man8/shadowconfig.8 | 25 ++++++++++++++++++++++
|
||||||
|
man/pl/Makefile.am | 1 +
|
||||||
|
man/pl/man8/shadowconfig.8 | 27 ++++++++++++++++++++++++
|
||||||
|
man/shadowconfig.8 | 41 ++++++++++++++++++++++++++++++++++++
|
||||||
|
man/shadowconfig.8.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
9 files changed, 176 insertions(+)
|
||||||
|
create mode 100644 man/fr/man8/shadowconfig.8
|
||||||
|
create mode 100644 man/ja/man8/shadowconfig.8
|
||||||
|
create mode 100644 man/pl/man8/shadowconfig.8
|
||||||
|
create mode 100644 man/shadowconfig.8
|
||||||
|
create mode 100644 man/shadowconfig.8.xml
|
||||||
|
|
||||||
|
diff --git a/man/Makefile.am b/man/Makefile.am
|
||||||
|
index 83b1d68..dab98f4 100644
|
||||||
|
--- a/man/Makefile.am
|
||||||
|
+++ b/man/Makefile.am
|
||||||
|
@@ -37,6 +37,7 @@ man_MANS = \
|
||||||
|
man8/pwck.8 \
|
||||||
|
man8/pwconv.8 \
|
||||||
|
man8/pwunconv.8 \
|
||||||
|
+ man8/shadowconfig.8 \
|
||||||
|
man1/sg.1 \
|
||||||
|
man3/shadow.3 \
|
||||||
|
man5/shadow.5 \
|
||||||
|
@@ -108,6 +109,7 @@ man_XMANS = \
|
||||||
|
porttime.5.xml \
|
||||||
|
pwck.8.xml \
|
||||||
|
pwconv.8.xml \
|
||||||
|
+ shadowconfig.8.xml \
|
||||||
|
shadow.3.xml \
|
||||||
|
shadow.5.xml \
|
||||||
|
sg.1.xml \
|
||||||
|
diff --git a/man/fr/Makefile.am b/man/fr/Makefile.am
|
||||||
|
index 335e029..78aee9a 100644
|
||||||
|
--- a/man/fr/Makefile.am
|
||||||
|
+++ b/man/fr/Makefile.am
|
||||||
|
@@ -32,6 +32,7 @@ man_MANS = \
|
||||||
|
man8/pwck.8 \
|
||||||
|
man8/pwconv.8 \
|
||||||
|
man8/pwunconv.8 \
|
||||||
|
+ man8/shadowconfig.8 \
|
||||||
|
man1/sg.1 \
|
||||||
|
man3/shadow.3 \
|
||||||
|
man5/shadow.5 \
|
||||||
|
diff --git a/man/fr/man8/shadowconfig.8 b/man/fr/man8/shadowconfig.8
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..784da70
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/man/fr/man8/shadowconfig.8
|
||||||
|
@@ -0,0 +1,26 @@
|
||||||
|
+.\" This file was generated with po4a. Translate the source file.
|
||||||
|
+.\"
|
||||||
|
+.\"$Id: shadowconfig.8,v 1.4 2001/08/23 23:10:48 kloczek Exp $
|
||||||
|
+.TH SHADOWCONFIG 8 "19 avril 1997" "Debian GNU/Linux"
|
||||||
|
+.SH NOM
|
||||||
|
+shadowconfig \- active ou désactive les mots de passe cachés
|
||||||
|
+.SH SYNOPSIS
|
||||||
|
+\fBshadowconfig\fP \fIon\fP | \fIoff\fP
|
||||||
|
+.SH DESCRIPTION
|
||||||
|
+.PP
|
||||||
|
+\fBshadowconfig on\fP active les mots de passe cachés («\ shadow passwords\ »)\ ; \fBshadowconfig off\fP les désactive. \fBShadowconfig\fP affiche un message
|
||||||
|
+d'erreur et quitte avec une valeur de retour non nulle s'il rencontre
|
||||||
|
+quelque chose d'inattendu. Dans ce cas, vous devrez corriger l'erreur avant
|
||||||
|
+de recommencer.
|
||||||
|
+
|
||||||
|
+Activer les mots de passe cachés lorsqu'ils sont déjà activés, ou les
|
||||||
|
+désactiver lorsqu'ils ne sont pas actifs est sans effet.
|
||||||
|
+
|
||||||
|
+Lisez \fI/usr/share/doc/passwd/README.Debian\fP pour une brève introduction aux
|
||||||
|
+mots de passe cachés et à leurs fonctionnalités.
|
||||||
|
+
|
||||||
|
+Notez que désactiver puis réactiver les mots de passe cachés aura pour
|
||||||
|
+conséquence la perte des informations d'âge sur les mots de passe.
|
||||||
|
+.SH TRADUCTION
|
||||||
|
+Nicolas FRANÇOIS, 2004.
|
||||||
|
+Veuillez signaler toute erreur à <\fIdebian\-l10\-french@lists.debian.org\fR>.
|
||||||
|
diff --git a/man/ja/Makefile.am b/man/ja/Makefile.am
|
||||||
|
index 13f18da..c72097f 100644
|
||||||
|
--- a/man/ja/Makefile.am
|
||||||
|
+++ b/man/ja/Makefile.am
|
||||||
|
@@ -27,6 +27,7 @@ man_MANS = \
|
||||||
|
man8/pwck.8 \
|
||||||
|
man8/pwconv.8 \
|
||||||
|
man8/pwunconv.8 \
|
||||||
|
+ man8/shadowconfig.8 \
|
||||||
|
man1/sg.1 \
|
||||||
|
man5/shadow.5 \
|
||||||
|
man1/su.1 \
|
||||||
|
diff --git a/man/ja/man8/shadowconfig.8 b/man/ja/man8/shadowconfig.8
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..a75c6f7
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/man/ja/man8/shadowconfig.8
|
||||||
|
@@ -0,0 +1,25 @@
|
||||||
|
+.\" all right reserved,
|
||||||
|
+.\" Translated Tue Oct 30 11:59:11 JST 2001
|
||||||
|
+.\" by Maki KURODA <mkuroda@aisys-jp.com>
|
||||||
|
+.\"
|
||||||
|
+.TH SHADOWCONFIG 8 "19 Apr 1997" "Debian GNU/Linux"
|
||||||
|
+.SH 名前
|
||||||
|
+shadowconfig \- shadow パスワードの設定をオン及びオフに切替える
|
||||||
|
+.SH 書式
|
||||||
|
+.B "shadowconfig"
|
||||||
|
+.IR on " | " off
|
||||||
|
+.SH 説明
|
||||||
|
+.PP
|
||||||
|
+.B shadowconfig on
|
||||||
|
+は shadow パスワードを有効にする。
|
||||||
|
+.B shadowconfig off
|
||||||
|
+は shadow パスワードを無効にする。
|
||||||
|
+.B shadowconfig
|
||||||
|
+は何らかの間違いがあると、エラーメッセージを表示し、
|
||||||
|
+ゼロではない返り値を返す。
|
||||||
|
+もしそのようなことが起こった場合、エラーを修正し、再度実行しなければならない。
|
||||||
|
+shadow パスワードの設定がすでにオンの場合にオンに設定したり、
|
||||||
|
+すでにオフの場合にオフに設定しても、何の影響もない。
|
||||||
|
+
|
||||||
|
+.I /usr/share/doc/passwd/README.debian.gz
|
||||||
|
+には shadow パスワードとそれに関する特徴の簡単な紹介が書かれている。
|
||||||
|
diff --git a/man/pl/Makefile.am b/man/pl/Makefile.am
|
||||||
|
index b2f096f..aa79af2 100644
|
||||||
|
--- a/man/pl/Makefile.am
|
||||||
|
+++ b/man/pl/Makefile.am
|
||||||
|
@@ -18,6 +18,7 @@ man_MANS = \
|
||||||
|
man8/logoutd.8 \
|
||||||
|
man1/newgrp.1 \
|
||||||
|
man1/sg.1 \
|
||||||
|
+ man8/shadowconfig.8 \
|
||||||
|
man3/shadow.3 \
|
||||||
|
man8/userdel.8 \
|
||||||
|
man8/usermod.8 \
|
||||||
|
diff --git a/man/pl/man8/shadowconfig.8 b/man/pl/man8/shadowconfig.8
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..2016c9f
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/man/pl/man8/shadowconfig.8
|
||||||
|
@@ -0,0 +1,27 @@
|
||||||
|
+.\" $Id: shadowconfig.8,v 1.3 2001/08/23 23:10:51 kloczek Exp $
|
||||||
|
+.\" {PTM/WK/1999-09-14}
|
||||||
|
+.TH SHADOWCONFIG 8 "19 kwietnia 1997" "Debian GNU/Linux"
|
||||||
|
+.SH NAZWA
|
||||||
|
+shadowconfig - przełącza ochronę haseł i grup przez pliki shadow
|
||||||
|
+.SH SKŁADNIA
|
||||||
|
+.B "shadowconfig"
|
||||||
|
+.IR on " | " off
|
||||||
|
+.SH OPIS
|
||||||
|
+.PP
|
||||||
|
+.B shadowconfig on
|
||||||
|
+włącza ochronę haseł i grup przez dodatkowe, przesłaniane pliki (shadow);
|
||||||
|
+.B shadowconfig off
|
||||||
|
+wyłącza dodatkowe pliki haseł i grup.
|
||||||
|
+.B shadowconfig
|
||||||
|
+wyświetla komunikat o błędzie i kończy pracę z niezerowym kodem jeśli
|
||||||
|
+znajdzie coś nieprawidłowego. W takim wypadku powinieneś poprawić błąd
|
||||||
|
+.\" if it finds anything awry.
|
||||||
|
+i uruchomić program ponownie.
|
||||||
|
+
|
||||||
|
+Włączenie ochrony haseł, gdy jest ona już włączona lub jej wyłączenie,
|
||||||
|
+gdy jest wyłączona jest nieszkodliwe.
|
||||||
|
+
|
||||||
|
+Przeczytaj
|
||||||
|
+.IR /usr/share/doc/passwd/README.debian.gz ,
|
||||||
|
+gdzie znajdziesz krótkie wprowadzenie do ochrony haseł z użyciem dodatkowych
|
||||||
|
+plików haseł przesłanianych (shadow passwords) i związanych tematów.
|
||||||
|
diff --git a/man/shadowconfig.8 b/man/shadowconfig.8
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..c0ee0af
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/man/shadowconfig.8
|
||||||
|
@@ -0,0 +1,41 @@
|
||||||
|
+.\"Generated by db2man.xsl. Don't modify this, modify the source.
|
||||||
|
+.de Sh \" Subsection
|
||||||
|
+.br
|
||||||
|
+.if t .Sp
|
||||||
|
+.ne 5
|
||||||
|
+.PP
|
||||||
|
+\fB\\$1\fR
|
||||||
|
+.PP
|
||||||
|
+..
|
||||||
|
+.de Sp \" Vertical space (when we can't use .PP)
|
||||||
|
+.if t .sp .5v
|
||||||
|
+.if n .sp
|
||||||
|
+..
|
||||||
|
+.de Ip \" List item
|
||||||
|
+.br
|
||||||
|
+.ie \\n(.$>=3 .ne \\$3
|
||||||
|
+.el .ne 3
|
||||||
|
+.IP "\\$1" \\$2
|
||||||
|
+..
|
||||||
|
+.TH "SHADOWCONFIG" 8 "19 Apr 1997" "" ""
|
||||||
|
+.SH NAME
|
||||||
|
+shadowconfig \- toggle shadow passwords on and off
|
||||||
|
+.SH "SYNOPSIS"
|
||||||
|
+.ad l
|
||||||
|
+.hy 0
|
||||||
|
+.HP 13
|
||||||
|
+\fBshadowconfig\fR \fB\fIon\fR\fR | \fB\fIoff\fR\fR
|
||||||
|
+.ad
|
||||||
|
+.hy
|
||||||
|
+
|
||||||
|
+.SH "DESCRIPTION"
|
||||||
|
+
|
||||||
|
+.PP
|
||||||
|
+\fBshadowconfig\fR on will turn shadow passwords on; \fIshadowconfig off\fR will turn shadow passwords off\&. \fBshadowconfig\fR will print an error message and exit with a nonzero code if it finds anything awry\&. If that happens, you should correct the error and run it again\&. Turning shadow passwords on when they are already on, or off when they are already off, is harmless\&.
|
||||||
|
+
|
||||||
|
+.PP
|
||||||
|
+Read \fI/usr/share/doc/passwd/README\&.Debian\fR for a brief introduction to shadow passwords and related features\&.
|
||||||
|
+
|
||||||
|
+.PP
|
||||||
|
+Note that turning shadow passwords off and on again will lose all password aging information\&.
|
||||||
|
+
|
||||||
|
diff --git a/man/shadowconfig.8.xml b/man/shadowconfig.8.xml
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..b4080ea
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/man/shadowconfig.8.xml
|
||||||
|
@@ -0,0 +1,52 @@
|
||||||
|
+<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
||||||
|
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
|
||||||
|
+<refentry id='shadowconfig.8'>
|
||||||
|
+ <!-- $Id: shadowconfig.8.xml,v 1.6 2005/06/15 12:39:27 kloczek Exp $ -->
|
||||||
|
+ <refentryinfo>
|
||||||
|
+ <date>19 Apr 1997</date>
|
||||||
|
+ </refentryinfo>
|
||||||
|
+ <refmeta>
|
||||||
|
+ <refentrytitle>shadowconfig</refentrytitle>
|
||||||
|
+ <manvolnum>8</manvolnum>
|
||||||
|
+ <refmiscinfo class='date'>19 Apr 1997</refmiscinfo>
|
||||||
|
+ <refmiscinfo class='source'>Debian GNU/Linux</refmiscinfo>
|
||||||
|
+ </refmeta>
|
||||||
|
+ <refnamediv id='name'>
|
||||||
|
+ <refname>shadowconfig</refname>
|
||||||
|
+ <refpurpose>toggle shadow passwords on and off</refpurpose>
|
||||||
|
+ </refnamediv>
|
||||||
|
+
|
||||||
|
+ <refsynopsisdiv id='synopsis'>
|
||||||
|
+ <cmdsynopsis>
|
||||||
|
+ <command>shadowconfig</command>
|
||||||
|
+ <group choice='plain'>
|
||||||
|
+ <arg choice='plain'><replaceable>on</replaceable></arg>
|
||||||
|
+ <arg choice='plain'><replaceable>off</replaceable></arg>
|
||||||
|
+ </group>
|
||||||
|
+ </cmdsynopsis>
|
||||||
|
+ </refsynopsisdiv>
|
||||||
|
+
|
||||||
|
+ <refsect1 id='description'>
|
||||||
|
+ <title>DESCRIPTION</title>
|
||||||
|
+ <para><command>shadowconfig</command> on will turn shadow passwords on;
|
||||||
|
+ <emphasis remap='B'>shadowconfig off</emphasis> will turn shadow
|
||||||
|
+ passwords off. <command>shadowconfig</command> will print an error
|
||||||
|
+ message and exit with a nonzero code if it finds anything awry. If
|
||||||
|
+ that happens, you should correct the error and run it again. Turning
|
||||||
|
+ shadow passwords on when they are already on, or off when they are
|
||||||
|
+ already off, is harmless.
|
||||||
|
+ </para>
|
||||||
|
+
|
||||||
|
+ <para>
|
||||||
|
+ Read <filename>/usr/share/doc/passwd/README.Debian</filename> for a
|
||||||
|
+ brief introduction
|
||||||
|
+ to shadow passwords and related features.
|
||||||
|
+ </para>
|
||||||
|
+
|
||||||
|
+ <para>Note that turning shadow passwords off and on again will lose all
|
||||||
|
+ password
|
||||||
|
+ aging information.
|
||||||
|
+ </para>
|
||||||
|
+ </refsect1>
|
||||||
|
+</refentry>
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
From: Balint Reczey <balint@balintreczey.hu>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: Keep using Debian's adduser defaults
|
||||||
|
|
||||||
|
Bug: https://github.com/shadow-maint/shadow/issues/501
|
||||||
|
Bug-Debian: https://bugs.debian.org/1004710
|
||||||
|
Forwarded: not-needed
|
||||||
|
|
||||||
|
Upstream's bbf4b79bc49fd1826eb41f6629669ef0b647267b commit
|
||||||
|
in 4.9 merged those values from upstream's default configuration file
|
||||||
|
which is not shipped in Debian.
|
||||||
|
This patch keeps the program's compiled in defaults in sync with the
|
||||||
|
configuration files shipped in Debian (debian/default/useradd).
|
||||||
|
---
|
||||||
|
man/useradd.8.xml | 2 +-
|
||||||
|
src/useradd.c | 4 ++--
|
||||||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/man/useradd.8.xml b/man/useradd.8.xml
|
||||||
|
index 001e7d1..4888100 100644
|
||||||
|
--- a/man/useradd.8.xml
|
||||||
|
+++ b/man/useradd.8.xml
|
||||||
|
@@ -248,7 +248,7 @@
|
||||||
|
command line), useradd will set the primary group of the new
|
||||||
|
user to the value specified by the <option>GROUP</option>
|
||||||
|
variable in <filename>/etc/default/useradd</filename>, or
|
||||||
|
- 1000 by default.
|
||||||
|
+ 100 by default.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
diff --git a/src/useradd.c b/src/useradd.c
|
||||||
|
index 347334a..ac43edd 100644
|
||||||
|
--- a/src/useradd.c
|
||||||
|
+++ b/src/useradd.c
|
||||||
|
@@ -91,14 +91,14 @@ static const char Prog[] = "useradd";
|
||||||
|
/*
|
||||||
|
* These defaults are used if there is no defaults file.
|
||||||
|
*/
|
||||||
|
-static gid_t def_group = 1000;
|
||||||
|
+static gid_t def_group = 100;
|
||||||
|
static const char *def_groups = "";
|
||||||
|
static const char *def_gname = "other";
|
||||||
|
static const char *def_home = "/home";
|
||||||
|
static const char *def_shell = "/bin/bash";
|
||||||
|
static const char *def_template = SKEL_DIR;
|
||||||
|
static const char *def_usrtemplate = USRSKELDIR;
|
||||||
|
-static const char *def_create_mail_spool = "yes";
|
||||||
|
+static const char *def_create_mail_spool = "no";
|
||||||
|
static const char *def_log_init = "yes";
|
||||||
|
|
||||||
|
static long def_inactive = -1;
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: Let pam_unix handle login failure delays
|
||||||
|
|
||||||
|
Fixes: #87648
|
||||||
|
|
||||||
|
Status wrt upstream: Forwarded but not applied yet
|
||||||
|
|
||||||
|
Note: If removed, FAIL_DELAY must be re-added to /etc/login.defs
|
||||||
|
---
|
||||||
|
lib/getdef.c | 1 -
|
||||||
|
src/login.c | 19 +++++--------------
|
||||||
|
2 files changed, 5 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/getdef.c b/lib/getdef.c
|
||||||
|
index 30f54ba..21307bb 100644
|
||||||
|
--- a/lib/getdef.c
|
||||||
|
+++ b/lib/getdef.c
|
||||||
|
@@ -84,7 +84,6 @@ static struct itemdef def_table[] = {
|
||||||
|
{"ENV_PATH", NULL},
|
||||||
|
{"ENV_SUPATH", NULL},
|
||||||
|
{"ERASECHAR", NULL},
|
||||||
|
- {"FAIL_DELAY", NULL},
|
||||||
|
{"FAKE_SHELL", NULL},
|
||||||
|
{"GID_MAX", NULL},
|
||||||
|
{"GID_MIN", NULL},
|
||||||
|
diff --git a/src/login.c b/src/login.c
|
||||||
|
index 9fed7b3..a5512d1 100644
|
||||||
|
--- a/src/login.c
|
||||||
|
+++ b/src/login.c
|
||||||
|
@@ -490,7 +490,6 @@ int main (int argc, char **argv)
|
||||||
|
const char *tmptty;
|
||||||
|
const char *cp;
|
||||||
|
const char *tmp;
|
||||||
|
- unsigned int delay;
|
||||||
|
unsigned int retries;
|
||||||
|
unsigned int timeout;
|
||||||
|
struct passwd *pwd = NULL;
|
||||||
|
@@ -500,6 +499,7 @@ int main (int argc, char **argv)
|
||||||
|
char *pam_user = NULL;
|
||||||
|
pid_t child;
|
||||||
|
#else
|
||||||
|
+ unsigned int delay;
|
||||||
|
bool is_console;
|
||||||
|
struct spwd *spwd = NULL;
|
||||||
|
# if defined(ENABLE_LASTLOG)
|
||||||
|
@@ -669,7 +669,6 @@ int main (int argc, char **argv)
|
||||||
|
}
|
||||||
|
|
||||||
|
environ = newenvp; /* make new environment active */
|
||||||
|
- delay = getdef_unum ("FAIL_DELAY", 1);
|
||||||
|
retries = getdef_unum ("LOGIN_RETRIES", RETRIES);
|
||||||
|
|
||||||
|
#ifdef USE_PAM
|
||||||
|
@@ -685,8 +684,7 @@ int main (int argc, char **argv)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* hostname & tty are either set to NULL or their correct values,
|
||||||
|
- * depending on how much we know. We also set PAM's fail delay to
|
||||||
|
- * ours.
|
||||||
|
+ * depending on how much we know.
|
||||||
|
*
|
||||||
|
* PAM_RHOST and PAM_TTY are used for authentication, only use
|
||||||
|
* information coming from login or from the caller (e.g. no utmp)
|
||||||
|
@@ -695,10 +693,6 @@ int main (int argc, char **argv)
|
||||||
|
PAM_FAIL_CHECK;
|
||||||
|
retcode = pam_set_item (pamh, PAM_TTY, tty);
|
||||||
|
PAM_FAIL_CHECK;
|
||||||
|
-#ifdef HAS_PAM_FAIL_DELAY
|
||||||
|
- retcode = pam_fail_delay (pamh, 1000000 * delay);
|
||||||
|
- PAM_FAIL_CHECK;
|
||||||
|
-#endif
|
||||||
|
/* if fflg, then the user has already been authenticated */
|
||||||
|
if (!fflg) {
|
||||||
|
char hostn[256];
|
||||||
|
@@ -736,12 +730,6 @@ int main (int argc, char **argv)
|
||||||
|
bool failed = false;
|
||||||
|
|
||||||
|
failcount++;
|
||||||
|
-#ifdef HAS_PAM_FAIL_DELAY
|
||||||
|
- if (delay > 0) {
|
||||||
|
- retcode = pam_fail_delay(pamh, 1000000*delay);
|
||||||
|
- PAM_FAIL_CHECK;
|
||||||
|
- }
|
||||||
|
-#endif
|
||||||
|
|
||||||
|
retcode = pam_authenticate (pamh, 0);
|
||||||
|
|
||||||
|
@@ -1032,14 +1020,17 @@ int main (int argc, char **argv)
|
||||||
|
free (username);
|
||||||
|
username = NULL;
|
||||||
|
|
||||||
|
+#ifndef USE_PAM
|
||||||
|
/*
|
||||||
|
* Wait a while (a la SVR4 /usr/bin/login) before attempting
|
||||||
|
* to login the user again. If the earlier alarm occurs
|
||||||
|
* before the sleep() below completes, login will exit.
|
||||||
|
*/
|
||||||
|
+ delay = getdef_unum ("FAIL_DELAY", 1);
|
||||||
|
if (delay > 0) {
|
||||||
|
(void) sleep (delay);
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
(void) puts (_("Login incorrect"));
|
||||||
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: Recommend using adduser and deluser
|
||||||
|
|
||||||
|
Fixes: #406046
|
||||||
|
|
||||||
|
Status wrt upstream: Debian specific patch.
|
||||||
|
---
|
||||||
|
man/useradd.8.xml | 6 ++++++
|
||||||
|
man/userdel.8.xml | 6 ++++++
|
||||||
|
2 files changed, 12 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/man/useradd.8.xml b/man/useradd.8.xml
|
||||||
|
index 4888100..17987a6 100644
|
||||||
|
--- a/man/useradd.8.xml
|
||||||
|
+++ b/man/useradd.8.xml
|
||||||
|
@@ -82,6 +82,12 @@
|
||||||
|
|
||||||
|
<refsect1 id='description'>
|
||||||
|
<title>DESCRIPTION</title>
|
||||||
|
+ <para>
|
||||||
|
+ <command>useradd</command> is a low level utility for adding
|
||||||
|
+ users. On Debian, administrators should usually use
|
||||||
|
+ <citerefentry><refentrytitle>adduser</refentrytitle>
|
||||||
|
+ <manvolnum>8</manvolnum></citerefentry> instead.
|
||||||
|
+ </para>
|
||||||
|
<para>
|
||||||
|
When invoked without the <option>-D</option> option, the
|
||||||
|
<command>useradd</command> command creates a new user account using
|
||||||
|
diff --git a/man/userdel.8.xml b/man/userdel.8.xml
|
||||||
|
index 5bd2981..384cc86 100644
|
||||||
|
--- a/man/userdel.8.xml
|
||||||
|
+++ b/man/userdel.8.xml
|
||||||
|
@@ -58,6 +58,12 @@
|
||||||
|
|
||||||
|
<refsect1 id='description'>
|
||||||
|
<title>DESCRIPTION</title>
|
||||||
|
+ <para>
|
||||||
|
+ <command>userdel</command> is a low level utility for removing
|
||||||
|
+ users. On Debian, administrators should usually use
|
||||||
|
+ <citerefentry><refentrytitle>deluser</refentrytitle>
|
||||||
|
+ <manvolnum>8</manvolnum></citerefentry> instead.
|
||||||
|
+ </para>
|
||||||
|
<para>
|
||||||
|
The <command>userdel</command> command modifies the system account
|
||||||
|
files, deleting all entries that refer to the user name <emphasis
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: Relax usernames/groupnames checking
|
||||||
|
|
||||||
|
Allows any non-empty user/grounames that don't contain ':', ',' or '\n'
|
||||||
|
characters and don't start with '-', '+', or '~'. This patch is more
|
||||||
|
restrictive than original Karl's version. closes: #264879
|
||||||
|
Also closes: #377844
|
||||||
|
|
||||||
|
Comments from Karl Ramm (shadow 1:4.0.3-9, 20 Aug 2003 02:06:50 -0400):
|
||||||
|
|
||||||
|
I can't come up with a good justification as to why characters other
|
||||||
|
than ':'s and '\0's should be disallowed in group and usernames (other
|
||||||
|
than '-' as the leading character). Thus, the maintenance tools don't
|
||||||
|
anymore. closes: #79682, #166798, #171179
|
||||||
|
|
||||||
|
Status wrt upstream: Debian specific. Not to be used upstream
|
||||||
|
---
|
||||||
|
lib/chkname.c | 47 +++++++++++++++--------------------------------
|
||||||
|
man/groupadd.8.xml | 6 ++++++
|
||||||
|
man/useradd.8.xml | 8 ++++++++
|
||||||
|
3 files changed, 29 insertions(+), 32 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/chkname.c b/lib/chkname.c
|
||||||
|
index 995562f..d9678c6 100644
|
||||||
|
--- a/lib/chkname.c
|
||||||
|
+++ b/lib/chkname.c
|
||||||
|
@@ -54,44 +54,27 @@ static bool is_valid_name (const char *name)
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
- * User/group names must match BRE regex:
|
||||||
|
- * [a-zA-Z0-9_.][a-zA-Z0-9_.-]*$\?
|
||||||
|
- *
|
||||||
|
- * as a non-POSIX, extension, allow "$" as the last char for
|
||||||
|
- * sake of Samba 3.x "add machine script"
|
||||||
|
- *
|
||||||
|
- * Also do not allow fully numeric names or just "." or "..".
|
||||||
|
- */
|
||||||
|
- int numeric;
|
||||||
|
-
|
||||||
|
- if ('\0' == *name ||
|
||||||
|
- ('.' == *name && (('.' == name[1] && '\0' == name[2]) ||
|
||||||
|
- '\0' == name[1])) ||
|
||||||
|
- !((*name >= 'a' && *name <= 'z') ||
|
||||||
|
- (*name >= 'A' && *name <= 'Z') ||
|
||||||
|
- (*name >= '0' && *name <= '9') ||
|
||||||
|
- *name == '_' ||
|
||||||
|
- *name == '.')) {
|
||||||
|
+ * POSIX indicate that usernames are composed of characters from the
|
||||||
|
+ * portable filename character set [A-Za-z0-9._-], and that the hyphen
|
||||||
|
+ * should not be used as the first character of a portable user name.
|
||||||
|
+ *
|
||||||
|
+ * Allow more relaxed user/group names in Debian -- ^[^-~+:,\s][^:,\s]*$
|
||||||
|
+ */
|
||||||
|
+ if ( ('\0' == *name)
|
||||||
|
+ || ('-' == *name)
|
||||||
|
+ || ('~' == *name)
|
||||||
|
+ || ('+' == *name)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
- numeric = isdigit(*name);
|
||||||
|
-
|
||||||
|
- while ('\0' != *++name) {
|
||||||
|
- if (!((*name >= 'a' && *name <= 'z') ||
|
||||||
|
- (*name >= 'A' && *name <= 'Z') ||
|
||||||
|
- (*name >= '0' && *name <= '9') ||
|
||||||
|
- *name == '_' ||
|
||||||
|
- *name == '.' ||
|
||||||
|
- *name == '-' ||
|
||||||
|
- (*name == '$' && name[1] == '\0')
|
||||||
|
- )) {
|
||||||
|
+ do {
|
||||||
|
+ if ((':' == *name) || (',' == *name) || isspace(*name)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
- numeric &= isdigit(*name);
|
||||||
|
- }
|
||||||
|
+ name++;
|
||||||
|
+ } while ('\0' != *name);
|
||||||
|
|
||||||
|
- return !numeric;
|
||||||
|
+ return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/man/groupadd.8.xml b/man/groupadd.8.xml
|
||||||
|
index 61a548f..d472bd0 100644
|
||||||
|
--- a/man/groupadd.8.xml
|
||||||
|
+++ b/man/groupadd.8.xml
|
||||||
|
@@ -71,6 +71,12 @@
|
||||||
|
Fully numeric groupnames and groupnames . or .. are
|
||||||
|
also disallowed.
|
||||||
|
</para>
|
||||||
|
+ <para>
|
||||||
|
+ On Debian, the only constraints are that groupnames must neither start
|
||||||
|
+ with a dash ('-') nor plus ('+') nor tilde ('~') nor contain a
|
||||||
|
+ colon (':'), a comma (','), or a whitespace (space:' ',
|
||||||
|
+ end of line: '\n', tabulation: '\t', etc.).
|
||||||
|
+ </para>
|
||||||
|
<para>
|
||||||
|
Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long.
|
||||||
|
</para>
|
||||||
|
diff --git a/man/useradd.8.xml b/man/useradd.8.xml
|
||||||
|
index 17987a6..c98b214 100644
|
||||||
|
--- a/man/useradd.8.xml
|
||||||
|
+++ b/man/useradd.8.xml
|
||||||
|
@@ -735,6 +735,14 @@
|
||||||
|
<para>
|
||||||
|
Usernames may only be up to 256 characters long.
|
||||||
|
</para>
|
||||||
|
+ <para>
|
||||||
|
+ On Debian, the only constraints are that usernames must neither start
|
||||||
|
+ with a dash ('-') nor plus ('+') nor tilde ('~') nor contain a
|
||||||
|
+ colon (':'), a comma (','), or a whitespace (space: ' ',
|
||||||
|
+ end of line: '\n', tabulation: '\t', etc.). Note that using a slash
|
||||||
|
+ ('/') may break the default algorithm for the definition of the
|
||||||
|
+ user's home directory.
|
||||||
|
+ </para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1 id='configuration'>
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: Set group and mode for [g]shadow files
|
||||||
|
|
||||||
|
Set group 'shadow' and mode 0400.
|
||||||
|
|
||||||
|
Fixes: #166793
|
||||||
|
---
|
||||||
|
lib/commonio.c | 12 ++++++++++++
|
||||||
|
lib/sgroupio.c | 2 +-
|
||||||
|
lib/shadowio.c | 2 +-
|
||||||
|
3 files changed, 14 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/commonio.c b/lib/commonio.c
|
||||||
|
index 01a26c9..72e53b0 100644
|
||||||
|
--- a/lib/commonio.c
|
||||||
|
+++ b/lib/commonio.c
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <signal.h>
|
||||||
|
+#include <grp.h>
|
||||||
|
|
||||||
|
#include "alloc.h"
|
||||||
|
#include "memzero.h"
|
||||||
|
@@ -956,12 +957,23 @@ int commonio_close (struct commonio_db *db)
|
||||||
|
if (errors != 0)
|
||||||
|
goto fail;
|
||||||
|
} else {
|
||||||
|
+ struct group *grp;
|
||||||
|
/*
|
||||||
|
* Default permissions for new [g]shadow files.
|
||||||
|
*/
|
||||||
|
sb.st_mode = db->st_mode;
|
||||||
|
sb.st_uid = db->st_uid;
|
||||||
|
sb.st_gid = db->st_gid;
|
||||||
|
+
|
||||||
|
+ /*
|
||||||
|
+ * Try to retrieve the shadow's GID, and fall back to GID 0.
|
||||||
|
+ */
|
||||||
|
+ if (sb.st_gid == 0) {
|
||||||
|
+ if ((grp = getgrnam("shadow")) != NULL)
|
||||||
|
+ sb.st_gid = grp->gr_gid;
|
||||||
|
+ else
|
||||||
|
+ sb.st_gid = 0;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (SNPRINTF(buf, "%s+", db->filename) == -1)
|
||||||
|
diff --git a/lib/sgroupio.c b/lib/sgroupio.c
|
||||||
|
index 0297df4..107b1e5 100644
|
||||||
|
--- a/lib/sgroupio.c
|
||||||
|
+++ b/lib/sgroupio.c
|
||||||
|
@@ -209,7 +209,7 @@ static struct commonio_db gshadow_db = {
|
||||||
|
#ifdef WITH_SELINUX
|
||||||
|
NULL, /* scontext */
|
||||||
|
#endif
|
||||||
|
- 0400, /* st_mode */
|
||||||
|
+ 0440, /* st_mode */
|
||||||
|
0, /* st_uid */
|
||||||
|
0, /* st_gid */
|
||||||
|
NULL, /* head */
|
||||||
|
diff --git a/lib/shadowio.c b/lib/shadowio.c
|
||||||
|
index d2c3b47..53dac0b 100644
|
||||||
|
--- a/lib/shadowio.c
|
||||||
|
+++ b/lib/shadowio.c
|
||||||
|
@@ -85,7 +85,7 @@ static struct commonio_db shadow_db = {
|
||||||
|
#ifdef WITH_SELINUX
|
||||||
|
NULL, /* scontext */
|
||||||
|
#endif /* WITH_SELINUX */
|
||||||
|
- 0400, /* st_mode */
|
||||||
|
+ 0440, /* st_mode */
|
||||||
|
0, /* st_uid */
|
||||||
|
0, /* st_gid */
|
||||||
|
NULL, /* head */
|
||||||
+287
@@ -0,0 +1,287 @@
|
|||||||
|
From: Nicolas FRANCOIS <nicolas.francois@centraliens.net>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: cppw: Add tool
|
||||||
|
|
||||||
|
---
|
||||||
|
po/POTFILES.in | 1 +
|
||||||
|
src/Makefile.am | 2 +
|
||||||
|
src/cppw.c | 238 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
3 files changed, 241 insertions(+)
|
||||||
|
create mode 100644 src/cppw.c
|
||||||
|
|
||||||
|
diff --git a/po/POTFILES.in b/po/POTFILES.in
|
||||||
|
index 9ff6100..a60c93e 100644
|
||||||
|
--- a/po/POTFILES.in
|
||||||
|
+++ b/po/POTFILES.in
|
||||||
|
@@ -86,6 +86,7 @@ src/chfn.c
|
||||||
|
src/chgpasswd.c
|
||||||
|
src/chpasswd.c
|
||||||
|
src/chsh.c
|
||||||
|
+src/cppw.c
|
||||||
|
src/expiry.c
|
||||||
|
src/faillog.c
|
||||||
|
src/gpasswd.c
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index b6cb09e..c86ba52 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -39,6 +39,7 @@ if WITH_SU
|
||||||
|
bin_PROGRAMS += su
|
||||||
|
endif
|
||||||
|
usbin_PROGRAMS = \
|
||||||
|
+ cppw \
|
||||||
|
chgpasswd \
|
||||||
|
chpasswd \
|
||||||
|
groupadd \
|
||||||
|
@@ -104,6 +105,7 @@ newuidmap_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBCAP) $(LIBECONF) -l
|
||||||
|
newgidmap_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBCAP) $(LIBECONF) -ldl
|
||||||
|
chfn_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT_NOPAM) $(LIBSKEY) $(LIBMD) $(LIBECONF)
|
||||||
|
chgpasswd_LDADD = $(LDADD) $(LIBPAM_SUID) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT) $(LIBECONF)
|
||||||
|
+cppw_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX)
|
||||||
|
chsh_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT_NOPAM) $(LIBSKEY) $(LIBMD) $(LIBECONF)
|
||||||
|
chpasswd_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT) $(LIBECONF) -ldl
|
||||||
|
expiry_LDADD = $(LDADD) $(LIBECONF)
|
||||||
|
diff --git a/src/cppw.c b/src/cppw.c
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..beb4c36
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/cppw.c
|
||||||
|
@@ -0,0 +1,238 @@
|
||||||
|
+/*
|
||||||
|
+ cppw, cpgr copy with locking given file over the password or group file
|
||||||
|
+ with -s will copy with locking given file over shadow or gshadow file
|
||||||
|
+
|
||||||
|
+ Copyright (C) 1999 Stephen Frost <sfrost@snowman.net>
|
||||||
|
+
|
||||||
|
+ Based on vipw, vigr by:
|
||||||
|
+ Copyright (C) 1997 Guy Maor <maor@ece.utexas.edu>
|
||||||
|
+
|
||||||
|
+ This program is free software; you can redistribute it and/or modify
|
||||||
|
+ it under the terms of the GNU General Public License as published by
|
||||||
|
+ the Free Software Foundation; either version 2 of the License, or
|
||||||
|
+ (at your option) any later version.
|
||||||
|
+
|
||||||
|
+ This program is distributed in the hope that it will be useful, but
|
||||||
|
+ WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
+ General Public License for more details.
|
||||||
|
+
|
||||||
|
+ You should have received a copy of the GNU General Public License
|
||||||
|
+ along with this program; if not, write to the Free Software
|
||||||
|
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
+
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#include <config.h>
|
||||||
|
+#include "defines.h"
|
||||||
|
+
|
||||||
|
+#include <errno.h>
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
+#include <stdio.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
+#include <sys/types.h>
|
||||||
|
+#include <signal.h>
|
||||||
|
+#include <utime.h>
|
||||||
|
+#include "exitcodes.h"
|
||||||
|
+#include "prototypes.h"
|
||||||
|
+#include "pwio.h"
|
||||||
|
+#include "shadowio.h"
|
||||||
|
+#include "groupio.h"
|
||||||
|
+#include "sgroupio.h"
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+const char *Prog;
|
||||||
|
+
|
||||||
|
+const char *filename, *filenewname;
|
||||||
|
+static bool filelocked = false;
|
||||||
|
+static int (*unlock) (void);
|
||||||
|
+
|
||||||
|
+/* local function prototypes */
|
||||||
|
+static int create_copy (FILE *fp, const char *dest, struct stat *sb);
|
||||||
|
+static void cppwexit (const char *msg, int syserr, int ret);
|
||||||
|
+static void cppwcopy (const char *file,
|
||||||
|
+ const char *in_file,
|
||||||
|
+ int (*file_lock) (void),
|
||||||
|
+ int (*file_unlock) (void));
|
||||||
|
+
|
||||||
|
+static int create_copy (FILE *fp, const char *dest, struct stat *sb)
|
||||||
|
+{
|
||||||
|
+ struct utimbuf ub;
|
||||||
|
+ FILE *bkfp;
|
||||||
|
+ int c;
|
||||||
|
+ mode_t mask;
|
||||||
|
+
|
||||||
|
+ mask = umask (077);
|
||||||
|
+ bkfp = fopen (dest, "w");
|
||||||
|
+ (void) umask (mask);
|
||||||
|
+ if (NULL == bkfp) {
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ rewind (fp);
|
||||||
|
+ while ((c = getc (fp)) != EOF) {
|
||||||
|
+ if (putc (c, bkfp) == EOF) {
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if ( (c != EOF)
|
||||||
|
+ || (fflush (bkfp) != 0)) {
|
||||||
|
+ (void) fclose (bkfp);
|
||||||
|
+ (void) unlink (dest);
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+ if ( (fsync (fileno (bkfp)) != 0)
|
||||||
|
+ || (fclose (bkfp) != 0)) {
|
||||||
|
+ (void) unlink (dest);
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ ub.actime = sb->st_atime;
|
||||||
|
+ ub.modtime = sb->st_mtime;
|
||||||
|
+ if ( (utime (dest, &ub) != 0)
|
||||||
|
+ || (chmod (dest, sb->st_mode) != 0)
|
||||||
|
+ || (chown (dest, sb->st_uid, sb->st_gid) != 0)) {
|
||||||
|
+ (void) unlink (dest);
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static void cppwexit (const char *msg, int syserr, int ret)
|
||||||
|
+{
|
||||||
|
+ int err = errno;
|
||||||
|
+ if (filelocked) {
|
||||||
|
+ (*unlock) ();
|
||||||
|
+ }
|
||||||
|
+ if (NULL != msg) {
|
||||||
|
+ fprintf (stderr, "%s: %s", Prog, msg);
|
||||||
|
+ if (0 != syserr) {
|
||||||
|
+ fprintf (stderr, ": %s", strerror (err));
|
||||||
|
+ }
|
||||||
|
+ (void) fputs ("\n", stderr);
|
||||||
|
+ }
|
||||||
|
+ if (NULL != filename) {
|
||||||
|
+ fprintf (stderr, _("%s: %s is unchanged\n"), Prog, filename);
|
||||||
|
+ } else {
|
||||||
|
+ fprintf (stderr, _("%s: no changes\n"), Prog);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ exit (ret);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static void cppwcopy (const char *file,
|
||||||
|
+ const char *in_file,
|
||||||
|
+ int (*file_lock) (void),
|
||||||
|
+ int (*file_unlock) (void))
|
||||||
|
+{
|
||||||
|
+ struct stat st1;
|
||||||
|
+ FILE *f;
|
||||||
|
+ char filenew[1024];
|
||||||
|
+
|
||||||
|
+ snprintf (filenew, sizeof filenew, "%s.new", file);
|
||||||
|
+ unlock = file_unlock;
|
||||||
|
+ filename = file;
|
||||||
|
+ filenewname = filenew;
|
||||||
|
+
|
||||||
|
+ if (access (file, F_OK) != 0) {
|
||||||
|
+ cppwexit (file, 1, 1);
|
||||||
|
+ }
|
||||||
|
+ if (file_lock () == 0) {
|
||||||
|
+ cppwexit (_("Couldn't lock file"), 0, 5);
|
||||||
|
+ }
|
||||||
|
+ filelocked = true;
|
||||||
|
+
|
||||||
|
+ /* file to copy has same owners, perm */
|
||||||
|
+ if (stat (file, &st1) != 0) {
|
||||||
|
+ cppwexit (file, 1, 1);
|
||||||
|
+ }
|
||||||
|
+ f = fopen (in_file, "r");
|
||||||
|
+ if (NULL == f) {
|
||||||
|
+ cppwexit (in_file, 1, 1);
|
||||||
|
+ }
|
||||||
|
+ if (create_copy (f, filenew, &st1) != 0) {
|
||||||
|
+ cppwexit (_("Couldn't make copy"), errno, 1);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ /* XXX - here we should check filenew for errors; if there are any,
|
||||||
|
+ * fail w/ an appropriate error code and let the user manually fix
|
||||||
|
+ * it. Use pwck or grpck to do the check. - Stephen (Shamelessly
|
||||||
|
+ * stolen from '--marekm's comment) */
|
||||||
|
+
|
||||||
|
+ if (rename (filenew, file) != 0) {
|
||||||
|
+ fprintf (stderr, _("%s: can't copy %s: %s)\n"),
|
||||||
|
+ Prog, filenew, strerror (errno));
|
||||||
|
+ cppwexit (NULL,0,1);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ (*file_unlock) ();
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+int main (int argc, char **argv)
|
||||||
|
+{
|
||||||
|
+ int flag;
|
||||||
|
+ bool cpshadow = false;
|
||||||
|
+ char *in_file;
|
||||||
|
+ int e = E_USAGE;
|
||||||
|
+ bool do_cppw = true;
|
||||||
|
+
|
||||||
|
+ (void) setlocale (LC_ALL, "");
|
||||||
|
+ (void) bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
|
+ (void) textdomain (PACKAGE);
|
||||||
|
+
|
||||||
|
+ Prog = Basename (argv[0]);
|
||||||
|
+ if (strcmp (Prog, "cpgr") == 0) {
|
||||||
|
+ do_cppw = false;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ while ((flag = getopt (argc, argv, "ghps")) != EOF) {
|
||||||
|
+ switch (flag) {
|
||||||
|
+ case 'p':
|
||||||
|
+ do_cppw = true;
|
||||||
|
+ break;
|
||||||
|
+ case 'g':
|
||||||
|
+ do_cppw = false;
|
||||||
|
+ break;
|
||||||
|
+ case 's':
|
||||||
|
+ cpshadow = true;
|
||||||
|
+ break;
|
||||||
|
+ case 'h':
|
||||||
|
+ e = E_SUCCESS;
|
||||||
|
+ /*pass through*/
|
||||||
|
+ default:
|
||||||
|
+ (void) fputs (_("Usage:\n\
|
||||||
|
+`cppw <file>' copys over /etc/passwd `cppw -s <file>' copys over /etc/shadow\n\
|
||||||
|
+`cpgr <file>' copys over /etc/group `cpgr -s <file>' copys over /etc/gshadow\n\
|
||||||
|
+"), (E_SUCCESS != e) ? stderr : stdout);
|
||||||
|
+ exit (e);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (argc != optind + 1) {
|
||||||
|
+ cppwexit (_("wrong number of arguments, -h for usage"),0,1);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ in_file = argv[optind];
|
||||||
|
+
|
||||||
|
+ if (do_cppw) {
|
||||||
|
+ if (cpshadow) {
|
||||||
|
+ cppwcopy (SHADOW_FILE, in_file, spw_lock, spw_unlock);
|
||||||
|
+ } else {
|
||||||
|
+ cppwcopy (PASSWD_FILE, in_file, pw_lock, pw_unlock);
|
||||||
|
+ }
|
||||||
|
+ } else {
|
||||||
|
+#ifdef SHADOWGRP
|
||||||
|
+ if (cpshadow) {
|
||||||
|
+ cppwcopy (SGROUP_FILE, in_file, sgr_lock, sgr_unlock);
|
||||||
|
+ } else
|
||||||
|
+#endif /* SHADOWGRP */
|
||||||
|
+ {
|
||||||
|
+ cppwcopy (GROUP_FILE, in_file, gr_lock, gr_unlock);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
|
||||||
|
Date: Sat, 22 Jun 2024 17:39:41 +0200
|
||||||
|
Subject: cppw: add selinux support
|
||||||
|
|
||||||
|
Status wrt upstream: cppw is not available upstream.
|
||||||
|
Needs to be reviewed by an SE-Linux aware person.
|
||||||
|
---
|
||||||
|
src/cppw.c | 28 ++++++++++++++++++++++++++++
|
||||||
|
1 file changed, 28 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/cppw.c b/src/cppw.c
|
||||||
|
index beb4c36..2cbbbc0 100644
|
||||||
|
--- a/src/cppw.c
|
||||||
|
+++ b/src/cppw.c
|
||||||
|
@@ -34,6 +34,9 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <utime.h>
|
||||||
|
+#ifdef WITH_SELINUX
|
||||||
|
+#include <selinux/selinux.h>
|
||||||
|
+#endif /* WITH_SELINUX */
|
||||||
|
#include "exitcodes.h"
|
||||||
|
#include "prototypes.h"
|
||||||
|
#include "pwio.h"
|
||||||
|
@@ -139,6 +142,22 @@ static void cppwcopy (const char *file,
|
||||||
|
if (access (file, F_OK) != 0) {
|
||||||
|
cppwexit (file, 1, 1);
|
||||||
|
}
|
||||||
|
+#ifdef WITH_SELINUX
|
||||||
|
+ /* if SE Linux is enabled then set the context of all new files
|
||||||
|
+ * to be the context of the file we are editing */
|
||||||
|
+ if (is_selinux_enabled () > 0) {
|
||||||
|
+ security_context_t passwd_context=NULL;
|
||||||
|
+ int ret = 0;
|
||||||
|
+ if (getfilecon (file, &passwd_context) < 0) {
|
||||||
|
+ cppwexit (_("Couldn't get file context"), errno, 1);
|
||||||
|
+ }
|
||||||
|
+ ret = setfscreatecon (passwd_context);
|
||||||
|
+ freecon (passwd_context);
|
||||||
|
+ if (0 != ret) {
|
||||||
|
+ cppwexit (_("setfscreatecon () failed"), errno, 1);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#endif /* WITH_SELINUX */
|
||||||
|
if (file_lock () == 0) {
|
||||||
|
cppwexit (_("Couldn't lock file"), 0, 5);
|
||||||
|
}
|
||||||
|
@@ -167,6 +186,15 @@ static void cppwcopy (const char *file,
|
||||||
|
cppwexit (NULL,0,1);
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef WITH_SELINUX
|
||||||
|
+ /* unset the fscreatecon */
|
||||||
|
+ if (is_selinux_enabled () > 0) {
|
||||||
|
+ if (setfscreatecon (NULL)) {
|
||||||
|
+ cppwexit (_("setfscreatecon() failed"), errno, 1);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#endif /* WITH_SELINUX */
|
||||||
|
+
|
||||||
|
(*file_unlock) ();
|
||||||
|
}
|
||||||
|
|
||||||
+89
@@ -0,0 +1,89 @@
|
|||||||
|
From: Serge Hallyn <serge@hallyn.com>
|
||||||
|
Date: Thu, 27 Jun 2024 01:23:05 +0200
|
||||||
|
Subject: upstream testsuite: disable su tests
|
||||||
|
|
||||||
|
Debian uses su from util-linux, pointless/impossible to test shadow's su
|
||||||
|
here.
|
||||||
|
---
|
||||||
|
tests/run_some | 68 ----------------------------------------------------------
|
||||||
|
1 file changed, 68 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/run_some b/tests/run_some
|
||||||
|
index c58f59b..46317eb 100755
|
||||||
|
--- a/tests/run_some
|
||||||
|
+++ b/tests/run_some
|
||||||
|
@@ -79,74 +79,6 @@ echo "-: test failed"
|
||||||
|
find "${build_path}" -name "*.gcda" -delete
|
||||||
|
# ignore the result of the first test. ~magic~
|
||||||
|
run_test ./su/01/su_user.test ignore_failure
|
||||||
|
-run_test ./su/01/su_user.test
|
||||||
|
-run_test ./su/01/su_root.test
|
||||||
|
-find "${build_path}" -name "*.gcda" -exec chmod a+rw {} \;
|
||||||
|
-run_test ./su/02/env_FOO-options_--login
|
||||||
|
-run_test ./su/02/env_FOO-options_--login_bash
|
||||||
|
-run_test ./su/02/env_FOO-options_--preserve-environment
|
||||||
|
-run_test ./su/02/env_FOO-options_--preserve-environment_bash
|
||||||
|
-run_test ./su/02/env_FOO-options_-
|
||||||
|
-run_test ./su/02/env_FOO-options_-_bash
|
||||||
|
-run_test ./su/02/env_FOO-options_-l-m
|
||||||
|
-run_test ./su/02/env_FOO-options_-l-m_bash
|
||||||
|
-run_test ./su/02/env_FOO-options_-l
|
||||||
|
-run_test ./su/02/env_FOO-options_-l_bash
|
||||||
|
-run_test ./su/02/env_FOO-options_-m_bash
|
||||||
|
-run_test ./su/02/env_FOO-options_-m
|
||||||
|
-run_test ./su/02/env_FOO-options_-p
|
||||||
|
-run_test ./su/02/env_FOO-options_-p_bash
|
||||||
|
-run_test ./su/02/env_FOO-options__bash
|
||||||
|
-run_test ./su/02/env_FOO-options_
|
||||||
|
-run_test ./su/02/env_FOO-options_-p-
|
||||||
|
-run_test ./su/02/env_FOO-options_-p-_bash
|
||||||
|
-run_test ./su/02/env_special-options_-l-p
|
||||||
|
-run_test ./su/02/env_special-options_-l
|
||||||
|
-run_test ./su/02/env_special-options_-l-p_bash
|
||||||
|
-run_test ./su/02/env_special-options_-l_bash
|
||||||
|
-run_test ./su/02/env_special-options_-p
|
||||||
|
-run_test ./su/02/env_special-options_-p_bash
|
||||||
|
-run_test ./su/02/env_special-options_
|
||||||
|
-run_test ./su/02/env_special-options__bash
|
||||||
|
-run_test ./su/02/env_special_root-options_-l-p
|
||||||
|
-run_test ./su/02/env_special_root-options_-l-p_bash
|
||||||
|
-run_test ./su/02/env_special_root-options_-l
|
||||||
|
-run_test ./su/02/env_special_root-options_-l_bash
|
||||||
|
-run_test ./su/02/env_special_root-options_-p
|
||||||
|
-run_test ./su/02/env_special_root-options_-p_bash
|
||||||
|
-run_test ./su/02/env_special_root-options_
|
||||||
|
-run_test ./su/02/env_special_root-options__bash
|
||||||
|
-run_test ./su/03/su_run_command01.test
|
||||||
|
-run_test ./su/03/su_run_command02.test
|
||||||
|
-run_test ./su/03/su_run_command03.test
|
||||||
|
-run_test ./su/03/su_run_command04.test
|
||||||
|
-run_test ./su/03/su_run_command05.test
|
||||||
|
-run_test ./su/03/su_run_command06.test
|
||||||
|
-run_test ./su/03/su_run_command07.test
|
||||||
|
-run_test ./su/03/su_run_command08.test
|
||||||
|
-run_test ./su/03/su_run_command09.test
|
||||||
|
-run_test ./su/03/su_run_command10.test
|
||||||
|
-run_test ./su/03/su_run_command11.test
|
||||||
|
-run_test ./su/03/su_run_command12.test
|
||||||
|
-run_test ./su/03/su_run_command13.test
|
||||||
|
-run_test ./su/03/su_run_command14.test
|
||||||
|
-run_test ./su/03/su_run_command15.test
|
||||||
|
-run_test ./su/03/su_run_command16.test
|
||||||
|
-run_test ./su/03/su_run_command17.test
|
||||||
|
-run_test ./su/04/su_wrong_user.test
|
||||||
|
-run_test ./su/04/su_user_wrong_passwd.test
|
||||||
|
-run_test ./su/04/su_user_wrong_passwd_syslog.test
|
||||||
|
-run_test ./su/05/su_user_wrong_passwd_syslog.test
|
||||||
|
-run_test ./su/06/su_user_syslog.test
|
||||||
|
-run_test ./su/07/su_user_syslog.test
|
||||||
|
-run_test ./su/08/env_special-options_
|
||||||
|
-run_test ./su/08/env_special_root-options_
|
||||||
|
-run_test ./su/09/env_special-options_
|
||||||
|
-run_test ./su/09/env_special_root-options_
|
||||||
|
-run_test ./su/10_su_sulog_success/su.test
|
||||||
|
-run_test ./su/11_su_sulog_failure/su.test
|
||||||
|
-run_test ./su/12_su_child_failure/su.test
|
||||||
|
-run_test ./su/13_su_child_success/su.test
|
||||||
|
run_test ./libsubid/01_list_ranges/list_ranges.test
|
||||||
|
run_test ./libsubid/02_get_subid_owners/get_subid_owners.test
|
||||||
|
run_test ./libsubid/03_add_remove/add_remove_subids.test
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
From: Chris Hofstaedtler <zeha@debian.org>
|
||||||
|
Date: Sat, 6 Jul 2024 23:35:51 +0200
|
||||||
|
Subject: tests/libsubid/04_nss: fix setting basedir
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/libsubid/04_nss/Makefile | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/libsubid/04_nss/Makefile b/tests/libsubid/04_nss/Makefile
|
||||||
|
index 7d7ae3e..3fbf989 100644
|
||||||
|
--- a/tests/libsubid/04_nss/Makefile
|
||||||
|
+++ b/tests/libsubid/04_nss/Makefile
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
all: test_nss libsubid_zzz.so
|
||||||
|
|
||||||
|
-BASE_TEST_DIR ?= $(shell git rev-parse --show-toplevel)
|
||||||
|
-basedir := $(BASE_TEST_DIR)
|
||||||
|
+BUILD_BASE_DIR ?= $(shell git rev-parse --show-toplevel)
|
||||||
|
+basedir := $(BUILD_BASE_DIR)
|
||||||
|
|
||||||
|
test_nss: test_nss.c $(basedir)/lib/nss.c
|
||||||
|
gcc -c -I$(basedir)/lib/ -I$(basedir) -o test_nss.o test_nss.c
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
debian/cppw-Add-tool.patch
|
||||||
|
debian/cppw-add-selinux-support.patch
|
||||||
|
debian/Let-pam_unix-handle-login-failure-delays.patch
|
||||||
|
debian/Set-group-and-mode-for-g-shadow-files.patch
|
||||||
|
debian/Keep-using-Debian-adduser-defaults.patch
|
||||||
|
debian/Document-the-shadowconfig-utility.patch
|
||||||
|
debian/Recommend-using-adduser-and-deluser.patch
|
||||||
|
debian/Relax-usernames-groupnames-checking.patch
|
||||||
|
debian/tests-disable-su.patch
|
||||||
|
debian/tests-libsubid-04_nss-fix-setting-basedir.patch
|
||||||
+69
@@ -0,0 +1,69 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- mode: makefile; coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Enable PIE, BINDNOW, and possible future flags.
|
||||||
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
DPKG_EXPORT_BUILDFLAGS = 1
|
||||||
|
include /usr/share/dpkg/buildflags.mk
|
||||||
|
include /usr/share/debhelper/dh_package_notes/package-notes.mk
|
||||||
|
|
||||||
|
# Adds extra options when calling the configure script:
|
||||||
|
DEB_CONFIGURE_EXTRA_FLAGS := \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--with-libpam \
|
||||||
|
--with-yescrypt \
|
||||||
|
--enable-shadowgrp \
|
||||||
|
--enable-subordinate-ids \
|
||||||
|
--enable-lastlog=no \
|
||||||
|
--enable-man \
|
||||||
|
--disable-account-tools-setuid \
|
||||||
|
--with-group-name-max-length=32 \
|
||||||
|
--with-acl \
|
||||||
|
--with-attr \
|
||||||
|
--without-su \
|
||||||
|
--without-tcb \
|
||||||
|
|
||||||
|
|
||||||
|
ifneq ($(DEB_HOST_ARCH_OS),linux)
|
||||||
|
DEB_CONFIGURE_EXTRA_FLAGS += --enable-logind
|
||||||
|
DEB_CONFIGURE_EXTRA_FLAGS += --with-audit
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
|
||||||
|
DEB_CONFIGURE_EXTRA_FLAGS += --disable-man
|
||||||
|
endif
|
||||||
|
|
||||||
|
DEB_CONFIGURE_EXTRA_FLAGS += SHELL=/bin/sh
|
||||||
|
|
||||||
|
# Set the default editor for vipw/vigr
|
||||||
|
CFLAGS += -DDEFAULT_EDITOR="\"sensible-editor\""
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_configure:
|
||||||
|
dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)
|
||||||
|
|
||||||
|
override_dh_install-arch:
|
||||||
|
ifneq ($(DEB_HOST_ARCH_OS),linux)
|
||||||
|
sed -i 's/session optional pam_keyinit.so/# Linux only # session optional pam_keyinit.so/' debian/login.pam
|
||||||
|
endif
|
||||||
|
dh_install -a
|
||||||
|
ifeq ($(DEB_HOST_ARCH_OS),hurd)
|
||||||
|
# /bin/login is provided by the hurd package.
|
||||||
|
rm -f debian/login/usr/bin/login
|
||||||
|
endif
|
||||||
|
|
||||||
|
override_dh_installpam:
|
||||||
|
# Distribute the pam.d files; unless for the commands with disabled PAM
|
||||||
|
# support
|
||||||
|
dh_installpam -p login
|
||||||
|
dh_installpam -p passwd --name=passwd
|
||||||
|
dh_installpam -p passwd --name=chfn
|
||||||
|
dh_installpam -p passwd --name=chsh
|
||||||
|
dh_installpam -p passwd --name=chpasswd
|
||||||
|
dh_installpam -p passwd --name=newusers
|
||||||
|
|
||||||
|
override_dh_auto_clean:
|
||||||
|
sed -i 's/# Linux only # //' debian/login.pam
|
||||||
|
dh_auto_clean
|
||||||
Vendored
+70
@@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# turn shadow passwords on or off on a Debian system
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
shadowon () {
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -n "$DPKG_ROOT" ] \
|
||||||
|
&& cmp "${DPKG_ROOT}/etc/passwd" "${DPKG_ROOT}/usr/share/base-passwd/passwd.master" 2>/dev/null \
|
||||||
|
&& cmp "${DPKG_ROOT}/etc/group" "${DPKG_ROOT}/usr/share/base-passwd/group.master" 2>/dev/null; then
|
||||||
|
# If dpkg is run with --force-script-chrootless and if /etc/passwd
|
||||||
|
# and /etc/group are unchanged, we avoid the chroot() call by manually
|
||||||
|
# processing the files. This produces bit-by-bit identical results
|
||||||
|
# compared to the normal case as shown by the CI setup at
|
||||||
|
# https://salsa.debian.org/helmutg/dpkg-root-demo/-/jobs
|
||||||
|
for f in passwd group; do
|
||||||
|
cp -a "${DPKG_ROOT}/etc/$f" "${DPKG_ROOT}/etc/$f-"
|
||||||
|
done
|
||||||
|
chmod 600 "${DPKG_ROOT}/etc/passwd-"
|
||||||
|
sed -i 's/^\([^:]\+\):\*:/\1:x:/' "${DPKG_ROOT}/etc/group" "${DPKG_ROOT}/etc/passwd"
|
||||||
|
[ -n "$SOURCE_DATE_EPOCH" ] && epoch=$SOURCE_DATE_EPOCH || epoch=$(date +%s)
|
||||||
|
sed "s/^\([^:]\+\):.*/\1:*:$((epoch/60/60/24)):0:99999:7:::/" "${DPKG_ROOT}/etc/passwd" > "${DPKG_ROOT}/etc/shadow"
|
||||||
|
sed "s/^\([^:]\+\):.*/\1:*::/" "${DPKG_ROOT}/etc/group" > "${DPKG_ROOT}/etc/gshadow"
|
||||||
|
touch "${DPKG_ROOT}/etc/.pwd.lock"
|
||||||
|
chmod 600 "${DPKG_ROOT}/etc/.pwd.lock"
|
||||||
|
else
|
||||||
|
pwck -q -r
|
||||||
|
grpck -r
|
||||||
|
pwconv
|
||||||
|
grpconv
|
||||||
|
fi
|
||||||
|
chown root:root "${DPKG_ROOT}/etc/passwd" "${DPKG_ROOT}/etc/group"
|
||||||
|
chmod 644 "${DPKG_ROOT}/etc/passwd" "${DPKG_ROOT}/etc/group"
|
||||||
|
chown root:shadow "${DPKG_ROOT}/etc/shadow" "${DPKG_ROOT}/etc/gshadow"
|
||||||
|
chmod 640 "${DPKG_ROOT}/etc/shadow" "${DPKG_ROOT}/etc/gshadow"
|
||||||
|
}
|
||||||
|
|
||||||
|
shadowoff () {
|
||||||
|
set -e
|
||||||
|
pwck -q -r
|
||||||
|
grpck -r
|
||||||
|
pwunconv
|
||||||
|
grpunconv
|
||||||
|
# sometimes the passwd perms get munged
|
||||||
|
chown root:root /etc/passwd /etc/group
|
||||||
|
chmod 644 /etc/passwd /etc/group
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
"on")
|
||||||
|
if shadowon ; then
|
||||||
|
echo Shadow passwords are now on.
|
||||||
|
else
|
||||||
|
echo Please correct the error and rerun \`$0 on\'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"off")
|
||||||
|
if shadowoff ; then
|
||||||
|
echo Shadow passwords are now off.
|
||||||
|
else
|
||||||
|
echo Please correct the error and rerun \`$0 off\'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo Usage: $0 on \| off
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
deb: libsubid 4 libsubid4 (= ${binary:Version})
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
Tests: smoke
|
||||||
|
Restrictions: needs-root, superficial
|
||||||
|
|
||||||
|
Tests: upstream
|
||||||
|
Depends:
|
||||||
|
expect,
|
||||||
|
procps,
|
||||||
|
@,
|
||||||
|
@builddeps@
|
||||||
|
Restrictions: needs-root, build-needed, breaks-testbed, allow-stderr, isolation-machine
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Adding an user works"
|
||||||
|
useradd shadow-test-user
|
||||||
|
grep '^shadow-test-user:x:' /etc/passwd
|
||||||
|
grep '^shadow-test-user:!:' /etc/shadow
|
||||||
|
|
||||||
|
echo "Removing an user works"
|
||||||
|
userdel shadow-test-user
|
||||||
|
! grep 'shadow-test-user' /etc/passwd
|
||||||
|
! grep 'shadow-test-user' /etc/shadow
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
useradd ubuntu
|
||||||
|
|
||||||
|
export BUILD_BASE_DIR=$(pwd)
|
||||||
|
|
||||||
|
cd tests
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
cp testsuite.log $AUTOPKGTEST_ARTIFACTS/
|
||||||
|
cat testsuite.log
|
||||||
|
}
|
||||||
|
|
||||||
|
trap cleanup TERM EXIT
|
||||||
|
|
||||||
|
./run_some 2>&1
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
bin/getsubids usr/bin
|
||||||
|
usr/bin/newgidmap
|
||||||
|
usr/bin/newuidmap
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
uidmap: elevated-privileges 4755 root/root [usr/bin/newgidmap]
|
||||||
|
uidmap: elevated-privileges 4755 root/root [usr/bin/newuidmap]
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
usr/share/man/*/man1/newgidmap.1
|
||||||
|
usr/share/man/*/man1/newuidmap.1
|
||||||
|
usr/share/man/man1/getsubids.1
|
||||||
|
usr/share/man/man1/newgidmap.1
|
||||||
|
usr/share/man/man1/newuidmap.1
|
||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
Bug-Database: https://github.com/shadow-maint/shadow/issues
|
||||||
|
Bug-Submit: https://github.com/shadow-maint/shadow/issues/new
|
||||||
|
Repository-Browse: https://github.com/shadow-maint/shadow
|
||||||
Vendored
+1989
File diff suppressed because it is too large
Load Diff
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
version=4
|
||||||
|
opts=downloadurlmangle=s/archive\/refs\/tags\/(.*)\.tar\.gz/releases\/download\/$1\/@PACKAGE@-$1\.tar\.xz/,\
|
||||||
|
pgpsigurlmangle=s/$/.asc/,\
|
||||||
|
versionmangle=s/-(alpha|beta|rc)/~$1/,\
|
||||||
|
dversionmangle=s/\+dfsg1//,repacksuffix=+dfsg1 \
|
||||||
|
https://github.com/shadow-maint/@PACKAGE@/tags \
|
||||||
|
/shadow-maint/@PACKAGE@/archive/refs/tags/([^v].*)\.tar\.gz
|
||||||
@@ -346,7 +346,7 @@
|
|||||||
return value points to static data whose content is overwritten by
|
return value points to static data whose content is overwritten by
|
||||||
each call.
|
each call.
|
||||||
|
|
||||||
Warning: the key space consists of 2**56 equal 7.2e16 possible values.
|
Warning: The key space consists of 2**56 equal 7.2e16 possible values.
|
||||||
Exhaustive searches of this key space are possible using massively
|
Exhaustive searches of this key space are possible using massively
|
||||||
parallel computers. Software, such as crack(1), is available which
|
parallel computers. Software, such as crack(1), is available which
|
||||||
will search the portion of this key space that is generally used by
|
will search the portion of this key space that is generally used by
|
||||||
@@ -471,12 +471,12 @@
|
|||||||
|
|
||||||
The Shadow Suite contains replacement programs for:
|
The Shadow Suite contains replacement programs for:
|
||||||
|
|
||||||
su, login, passwd, newgrp, chfn, chsh
|
su, login, passwd, newgrp, chfn, chsh, and id
|
||||||
|
|
||||||
The package also contains the new programs:
|
The package also contains the new programs:
|
||||||
|
|
||||||
chage, newusers, dpasswd, gpasswd, useradd, userdel, usermod,
|
chage, newusers, dpasswd, gpasswd, useradd, userdel, usermod,
|
||||||
groupadd, groupdel, groupmod, pwck, grpck, lastlog, pwconv,
|
groupadd, groupdel, groupmod, groups, pwck, grpck, lastlog, pwconv,
|
||||||
and pwunconv
|
and pwunconv
|
||||||
|
|
||||||
Additionally, the library: libshadow.a is included for writing and/or
|
Additionally, the library: libshadow.a is included for writing and/or
|
||||||
@@ -586,6 +586,8 @@
|
|||||||
|
|
||||||
· /usr/bin/chsh
|
· /usr/bin/chsh
|
||||||
|
|
||||||
|
· /usr/bin/id
|
||||||
|
|
||||||
The BETA package has a save target in the Makefile, but it's commented
|
The BETA package has a save target in the Makefile, but it's commented
|
||||||
out because different distributions place the programs in different
|
out because different distributions place the programs in different
|
||||||
places.
|
places.
|
||||||
@@ -635,6 +637,8 @@
|
|||||||
|
|
||||||
· /usr/man/man1/chsh.1.gz
|
· /usr/man/man1/chsh.1.gz
|
||||||
|
|
||||||
|
· /usr/man/man1/id.1.gz
|
||||||
|
|
||||||
· /usr/man/man1/login.1.gz
|
· /usr/man/man1/login.1.gz
|
||||||
|
|
||||||
· /usr/man/man1/passwd.1.gz
|
· /usr/man/man1/passwd.1.gz
|
||||||
@@ -996,7 +1000,7 @@
|
|||||||
sudo for the shadow suite, is available as at:
|
sudo for the shadow suite, is available as at:
|
||||||
<ftp://sunsite.unc.edu/pub/Linux/system/Admin/sudo-1.2-shadow.tgz>
|
<ftp://sunsite.unc.edu/pub/Linux/system/Admin/sudo-1.2-shadow.tgz>
|
||||||
|
|
||||||
Warning: when you install sudo your /etc/sudoers file will be replaced
|
Warning: When you install sudo your /etc/sudoers file will be replaced
|
||||||
with a default one, so you need to make a backup of it if you have
|
with a default one, so you need to make a backup of it if you have
|
||||||
added anything to the default one. (you could also edit the Makefile
|
added anything to the default one. (you could also edit the Makefile
|
||||||
and remove the line that copies the default file to /etc).
|
and remove the line that copies the default file to /etc).
|
||||||
@@ -1373,7 +1377,7 @@
|
|||||||
users or changing the group password, the /etc/gshadow file will be
|
users or changing the group password, the /etc/gshadow file will be
|
||||||
changed.
|
changed.
|
||||||
|
|
||||||
The programs groupadd, groupmod, and groupdel are provided as
|
The programs groups, groupadd, groupmod, and groupdel are provided as
|
||||||
part of the Shadow Suite to modify groups.
|
part of the Shadow Suite to modify groups.
|
||||||
|
|
||||||
The format of the /etc/group file is as follows:
|
The format of the /etc/group file is as follows:
|
||||||
@@ -1751,7 +1755,7 @@
|
|||||||
}
|
}
|
||||||
#ifdef HAS_SHADOW
|
#ifdef HAS_SHADOW
|
||||||
if ((pw->pw_passwd && pw->pw_passwd[0] == '@'
|
if ((pw->pw_passwd && pw->pw_passwd[0] == '@'
|
||||||
&& pw_auth(pw->pw_passwd+1, pw->pw_name))
|
&& pw_auth (pw->pw_passwd+1, pw->pw_name, PW_LOGIN, NULL))
|
||||||
|| !valid (passwd, pw)) {
|
|| !valid (passwd, pw)) {
|
||||||
return (UPAP_AUTHNAK);
|
return (UPAP_AUTHNAK);
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -133,7 +133,6 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AM_DISTCHECK_CONFIGURE_FLAGS = @AM_DISTCHECK_CONFIGURE_FLAGS@
|
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
@@ -162,6 +161,7 @@ EGREP = @EGREP@
|
|||||||
ETAGS = @ETAGS@
|
ETAGS = @ETAGS@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
FGREP = @FGREP@
|
FGREP = @FGREP@
|
||||||
|
FILECMD = @FILECMD@
|
||||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||||
GMSGFMT = @GMSGFMT@
|
GMSGFMT = @GMSGFMT@
|
||||||
GMSGFMT_015 = @GMSGFMT_015@
|
GMSGFMT_015 = @GMSGFMT_015@
|
||||||
@@ -205,6 +205,7 @@ LIBSYSTEMD = @LIBSYSTEMD@
|
|||||||
LIBTCB = @LIBTCB@
|
LIBTCB = @LIBTCB@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LIYESCRYPT = @LIYESCRYPT@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBICONV = @LTLIBICONV@
|
LTLIBICONV = @LTLIBICONV@
|
||||||
LTLIBINTL = @LTLIBINTL@
|
LTLIBINTL = @LTLIBINTL@
|
||||||
@@ -251,6 +252,8 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
|||||||
XMLCATALOG = @XMLCATALOG@
|
XMLCATALOG = @XMLCATALOG@
|
||||||
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
||||||
XSLTPROC = @XSLTPROC@
|
XSLTPROC = @XSLTPROC@
|
||||||
|
YACC = @YACC@
|
||||||
|
YFLAGS = @YFLAGS@
|
||||||
abs_builddir = @abs_builddir@
|
abs_builddir = @abs_builddir@
|
||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
|||||||
+4
-1
@@ -222,7 +222,6 @@ am__relativize = \
|
|||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AM_DISTCHECK_CONFIGURE_FLAGS = @AM_DISTCHECK_CONFIGURE_FLAGS@
|
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
@@ -251,6 +250,7 @@ EGREP = @EGREP@
|
|||||||
ETAGS = @ETAGS@
|
ETAGS = @ETAGS@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
FGREP = @FGREP@
|
FGREP = @FGREP@
|
||||||
|
FILECMD = @FILECMD@
|
||||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||||
GMSGFMT = @GMSGFMT@
|
GMSGFMT = @GMSGFMT@
|
||||||
GMSGFMT_015 = @GMSGFMT_015@
|
GMSGFMT_015 = @GMSGFMT_015@
|
||||||
@@ -294,6 +294,7 @@ LIBSYSTEMD = @LIBSYSTEMD@
|
|||||||
LIBTCB = @LIBTCB@
|
LIBTCB = @LIBTCB@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LIYESCRYPT = @LIYESCRYPT@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBICONV = @LTLIBICONV@
|
LTLIBICONV = @LTLIBICONV@
|
||||||
LTLIBINTL = @LTLIBINTL@
|
LTLIBINTL = @LTLIBINTL@
|
||||||
@@ -340,6 +341,8 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
|||||||
XMLCATALOG = @XMLCATALOG@
|
XMLCATALOG = @XMLCATALOG@
|
||||||
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
||||||
XSLTPROC = @XSLTPROC@
|
XSLTPROC = @XSLTPROC@
|
||||||
|
YACC = @YACC@
|
||||||
|
YFLAGS = @YFLAGS@
|
||||||
abs_builddir = @abs_builddir@
|
abs_builddir = @abs_builddir@
|
||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
|||||||
+5
-5
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Delay in seconds before being allowed another attempt after a login failure
|
# Delay in seconds before being allowed another attempt after a login failure
|
||||||
# Note: when PAM is used, some modules may enforce a minimum delay (e.g.
|
# Note: When PAM is used, some modules may enforce a minimum delay (e.g.
|
||||||
# pam_unix(8) enforces a 2s delay)
|
# pam_unix(8) enforces a 2s delay)
|
||||||
#
|
#
|
||||||
FAIL_DELAY 3
|
FAIL_DELAY 3
|
||||||
@@ -276,7 +276,7 @@ PASS_ALWAYS_WARN yes
|
|||||||
#
|
#
|
||||||
# Number of significant characters in the password for crypt().
|
# Number of significant characters in the password for crypt().
|
||||||
# Default is 8, don't change unless your crypt() is better.
|
# Default is 8, don't change unless your crypt() is better.
|
||||||
# Only used for DES encryption algorithm.
|
# Ignored if MD5_CRYPT_ENAB set to "yes".
|
||||||
#
|
#
|
||||||
#PASS_MAX_LEN 8
|
#PASS_MAX_LEN 8
|
||||||
|
|
||||||
@@ -308,7 +308,7 @@ CHFN_RESTRICT rwh
|
|||||||
# Set to "no" if you need to copy encrypted passwords to other systems
|
# Set to "no" if you need to copy encrypted passwords to other systems
|
||||||
# which don't understand the new algorithm. Default is "no".
|
# which don't understand the new algorithm. Default is "no".
|
||||||
#
|
#
|
||||||
# Note: if you use PAM, it is recommended to use a value consistent with
|
# Note: If you use PAM, it is recommended to use a value consistent with
|
||||||
# the PAM modules configuration.
|
# the PAM modules configuration.
|
||||||
#
|
#
|
||||||
# This variable is deprecated. You should use ENCRYPT_METHOD instead.
|
# This variable is deprecated. You should use ENCRYPT_METHOD instead.
|
||||||
@@ -326,7 +326,7 @@ CHFN_RESTRICT rwh
|
|||||||
# MD5 and DES should not be used for new hashes, see crypt(5) for recommendations.
|
# MD5 and DES should not be used for new hashes, see crypt(5) for recommendations.
|
||||||
# Overrides the MD5_CRYPT_ENAB option
|
# Overrides the MD5_CRYPT_ENAB option
|
||||||
#
|
#
|
||||||
# Note: if you use PAM, it is recommended to use a value consistent with
|
# Note: If you use PAM, it is recommended to use a value consistent with
|
||||||
# the PAM modules configuration.
|
# the PAM modules configuration.
|
||||||
#
|
#
|
||||||
#ENCRYPT_METHOD DES
|
#ENCRYPT_METHOD DES
|
||||||
@@ -467,7 +467,7 @@ PREVENT_NO_AUTH superuser
|
|||||||
# Used in pam_timestamp module to calculate the keyed-hash message
|
# Used in pam_timestamp module to calculate the keyed-hash message
|
||||||
# authentication code.
|
# authentication code.
|
||||||
#
|
#
|
||||||
# Note: it is recommended to check hmac(3) to see the possible algorithms
|
# Note: It is recommended to check hmac(3) to see the possible algorithms
|
||||||
# that are available in your system.
|
# that are available in your system.
|
||||||
#
|
#
|
||||||
#HMAC_CRYPTO_ALGO SHA512
|
#HMAC_CRYPTO_ALGO SHA512
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ pamd_files = \
|
|||||||
passwd
|
passwd
|
||||||
|
|
||||||
pamd_acct_tools_files = \
|
pamd_acct_tools_files = \
|
||||||
|
chage \
|
||||||
chgpasswd \
|
chgpasswd \
|
||||||
groupadd \
|
groupadd \
|
||||||
groupdel \
|
groupdel \
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AM_DISTCHECK_CONFIGURE_FLAGS = @AM_DISTCHECK_CONFIGURE_FLAGS@
|
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
@@ -194,6 +193,7 @@ EGREP = @EGREP@
|
|||||||
ETAGS = @ETAGS@
|
ETAGS = @ETAGS@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
FGREP = @FGREP@
|
FGREP = @FGREP@
|
||||||
|
FILECMD = @FILECMD@
|
||||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||||
GMSGFMT = @GMSGFMT@
|
GMSGFMT = @GMSGFMT@
|
||||||
GMSGFMT_015 = @GMSGFMT_015@
|
GMSGFMT_015 = @GMSGFMT_015@
|
||||||
@@ -237,6 +237,7 @@ LIBSYSTEMD = @LIBSYSTEMD@
|
|||||||
LIBTCB = @LIBTCB@
|
LIBTCB = @LIBTCB@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LIYESCRYPT = @LIYESCRYPT@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBICONV = @LTLIBICONV@
|
LTLIBICONV = @LTLIBICONV@
|
||||||
LTLIBINTL = @LTLIBINTL@
|
LTLIBINTL = @LTLIBINTL@
|
||||||
@@ -283,6 +284,8 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
|||||||
XMLCATALOG = @XMLCATALOG@
|
XMLCATALOG = @XMLCATALOG@
|
||||||
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
||||||
XSLTPROC = @XSLTPROC@
|
XSLTPROC = @XSLTPROC@
|
||||||
|
YACC = @YACC@
|
||||||
|
YFLAGS = @YFLAGS@
|
||||||
abs_builddir = @abs_builddir@
|
abs_builddir = @abs_builddir@
|
||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
@@ -340,6 +343,7 @@ top_srcdir = @top_srcdir@
|
|||||||
pamd_files = chpasswd chfn chsh groupmems login newusers passwd \
|
pamd_files = chpasswd chfn chsh groupmems login newusers passwd \
|
||||||
$(am__append_2)
|
$(am__append_2)
|
||||||
pamd_acct_tools_files = \
|
pamd_acct_tools_files = \
|
||||||
|
chage \
|
||||||
chgpasswd \
|
chgpasswd \
|
||||||
groupadd \
|
groupadd \
|
||||||
groupdel \
|
groupdel \
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#%PAM-1.0
|
||||||
|
auth sufficient pam_rootok.so
|
||||||
|
account required pam_permit.so
|
||||||
|
password include system-auth
|
||||||
@@ -130,7 +130,6 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AM_DISTCHECK_CONFIGURE_FLAGS = @AM_DISTCHECK_CONFIGURE_FLAGS@
|
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
@@ -159,6 +158,7 @@ EGREP = @EGREP@
|
|||||||
ETAGS = @ETAGS@
|
ETAGS = @ETAGS@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
FGREP = @FGREP@
|
FGREP = @FGREP@
|
||||||
|
FILECMD = @FILECMD@
|
||||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||||
GMSGFMT = @GMSGFMT@
|
GMSGFMT = @GMSGFMT@
|
||||||
GMSGFMT_015 = @GMSGFMT_015@
|
GMSGFMT_015 = @GMSGFMT_015@
|
||||||
@@ -202,6 +202,7 @@ LIBSYSTEMD = @LIBSYSTEMD@
|
|||||||
LIBTCB = @LIBTCB@
|
LIBTCB = @LIBTCB@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LIPO = @LIPO@
|
LIPO = @LIPO@
|
||||||
|
LIYESCRYPT = @LIYESCRYPT@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBICONV = @LTLIBICONV@
|
LTLIBICONV = @LTLIBICONV@
|
||||||
LTLIBINTL = @LTLIBINTL@
|
LTLIBINTL = @LTLIBINTL@
|
||||||
@@ -248,6 +249,8 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
|||||||
XMLCATALOG = @XMLCATALOG@
|
XMLCATALOG = @XMLCATALOG@
|
||||||
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
XML_CATALOG_FILE = @XML_CATALOG_FILE@
|
||||||
XSLTPROC = @XSLTPROC@
|
XSLTPROC = @XSLTPROC@
|
||||||
|
YACC = @YACC@
|
||||||
|
YFLAGS = @YFLAGS@
|
||||||
abs_builddir = @abs_builddir@
|
abs_builddir = @abs_builddir@
|
||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
|
|||||||
+34
-131
@@ -29,24 +29,16 @@ libshadow_la_SOURCES = \
|
|||||||
age.c \
|
age.c \
|
||||||
agetpass.c \
|
agetpass.c \
|
||||||
agetpass.h \
|
agetpass.h \
|
||||||
alloc/calloc.c \
|
alloc.c \
|
||||||
alloc/calloc.h \
|
alloc.h \
|
||||||
alloc/malloc.c \
|
|
||||||
alloc/malloc.h \
|
|
||||||
alloc/realloc.c \
|
|
||||||
alloc/realloc.h \
|
|
||||||
alloc/reallocf.c \
|
|
||||||
alloc/reallocf.h \
|
|
||||||
atoi/a2i.c \
|
atoi/a2i.c \
|
||||||
atoi/a2i.h \
|
atoi/a2i.h \
|
||||||
atoi/getnum.c \
|
atoi/str2i.c \
|
||||||
atoi/getnum.h \
|
atoi/str2i.h \
|
||||||
atoi/strtoi/strtoi.c \
|
atoi/strtoi.c \
|
||||||
atoi/strtoi/strtoi.h \
|
atoi/strtoi.h \
|
||||||
atoi/strtoi/strtou.c \
|
atoi/strtou_noneg.c \
|
||||||
atoi/strtoi/strtou.h \
|
atoi/strtou_noneg.h \
|
||||||
atoi/strtoi/strtou_noneg.c \
|
|
||||||
atoi/strtoi/strtou_noneg.h \
|
|
||||||
attr.h \
|
attr.h \
|
||||||
audit_help.c \
|
audit_help.c \
|
||||||
basename.c \
|
basename.c \
|
||||||
@@ -55,8 +47,6 @@ libshadow_la_SOURCES = \
|
|||||||
cast.h \
|
cast.h \
|
||||||
chkname.c \
|
chkname.c \
|
||||||
chkname.h \
|
chkname.h \
|
||||||
chkhash.c \
|
|
||||||
chkhash.h \
|
|
||||||
chowndir.c \
|
chowndir.c \
|
||||||
chowntty.c \
|
chowntty.c \
|
||||||
cleanup.c \
|
cleanup.c \
|
||||||
@@ -70,28 +60,22 @@ libshadow_la_SOURCES = \
|
|||||||
defines.h \
|
defines.h \
|
||||||
encrypt.c \
|
encrypt.c \
|
||||||
env.c \
|
env.c \
|
||||||
exit_if_null.c \
|
|
||||||
exit_if_null.h \
|
|
||||||
exitcodes.h \
|
exitcodes.h \
|
||||||
faillog.h \
|
faillog.h \
|
||||||
failure.c \
|
failure.c \
|
||||||
failure.h \
|
failure.h \
|
||||||
fd.c \
|
fd.c \
|
||||||
fields.c \
|
fields.c \
|
||||||
fields.h \
|
|
||||||
find_new_gid.c \
|
find_new_gid.c \
|
||||||
find_new_uid.c \
|
find_new_uid.c \
|
||||||
find_new_sub_gids.c \
|
find_new_sub_gids.c \
|
||||||
find_new_sub_uids.c \
|
find_new_sub_uids.c \
|
||||||
fs/mkstemp/fmkomstemp.c \
|
fputsx.c \
|
||||||
fs/mkstemp/fmkomstemp.h \
|
get_gid.c \
|
||||||
fs/mkstemp/mkomstemp.c \
|
|
||||||
fs/mkstemp/mkomstemp.h \
|
|
||||||
fs/readlink/areadlink.c \
|
|
||||||
fs/readlink/areadlink.h \
|
|
||||||
fs/readlink/readlinknul.c \
|
|
||||||
fs/readlink/readlinknul.h \
|
|
||||||
get_pid.c \
|
get_pid.c \
|
||||||
|
get_uid.c \
|
||||||
|
getdate.h \
|
||||||
|
getdate.y \
|
||||||
getdef.c \
|
getdef.c \
|
||||||
getdef.h \
|
getdef.h \
|
||||||
getgr_nam_gid.c \
|
getgr_nam_gid.c \
|
||||||
@@ -100,6 +84,7 @@ libshadow_la_SOURCES = \
|
|||||||
groupio.c \
|
groupio.c \
|
||||||
groupmem.c \
|
groupmem.c \
|
||||||
groupio.h \
|
groupio.h \
|
||||||
|
gshadow.c \
|
||||||
hushed.c \
|
hushed.c \
|
||||||
idmapping.h \
|
idmapping.h \
|
||||||
idmapping.c \
|
idmapping.c \
|
||||||
@@ -109,7 +94,10 @@ libshadow_la_SOURCES = \
|
|||||||
lockpw.c \
|
lockpw.c \
|
||||||
loginprompt.c \
|
loginprompt.c \
|
||||||
mail.c \
|
mail.c \
|
||||||
|
memzero.c \
|
||||||
|
memzero.h \
|
||||||
motd.c \
|
motd.c \
|
||||||
|
must_be.h \
|
||||||
myname.c \
|
myname.c \
|
||||||
nss.c \
|
nss.c \
|
||||||
nscd.c \
|
nscd.c \
|
||||||
@@ -131,50 +119,21 @@ libshadow_la_SOURCES = \
|
|||||||
pwdcheck.c \
|
pwdcheck.c \
|
||||||
pwmem.c \
|
pwmem.c \
|
||||||
remove_tree.c \
|
remove_tree.c \
|
||||||
|
rlogin.c \
|
||||||
root_flag.c \
|
root_flag.c \
|
||||||
run_part.h \
|
run_part.h \
|
||||||
run_part.c \
|
run_part.c \
|
||||||
salt.c \
|
salt.c \
|
||||||
search/cmp/cmp.c \
|
|
||||||
search/cmp/cmp.h \
|
|
||||||
search/l/lfind.c \
|
|
||||||
search/l/lfind.h \
|
|
||||||
search/l/lsearch.c \
|
|
||||||
search/l/lsearch.h \
|
|
||||||
search/sort/qsort.c \
|
|
||||||
search/sort/qsort.h \
|
|
||||||
selinux.c \
|
selinux.c \
|
||||||
semanage.c \
|
semanage.c \
|
||||||
setugid.c \
|
setugid.c \
|
||||||
setupenv.c \
|
setupenv.c \
|
||||||
|
sgetgrent.c \
|
||||||
|
sgetpwent.c \
|
||||||
|
sgetspent.c \
|
||||||
sgroupio.c \
|
sgroupio.c \
|
||||||
sgroupio.h \
|
sgroupio.h\
|
||||||
shadow/group/sgetgrent.c \
|
shadow.c \
|
||||||
shadow/group/sgetgrent.h \
|
|
||||||
shadow/grp/agetgroups.c \
|
|
||||||
shadow/grp/agetgroups.h \
|
|
||||||
shadow/gshadow/endsgent.c \
|
|
||||||
shadow/gshadow/endsgent.h \
|
|
||||||
shadow/gshadow/fgetsgent.c \
|
|
||||||
shadow/gshadow/fgetsgent.h \
|
|
||||||
shadow/gshadow/getsgent.c \
|
|
||||||
shadow/gshadow/getsgent.h \
|
|
||||||
shadow/gshadow/getsgnam.c \
|
|
||||||
shadow/gshadow/getsgnam.h \
|
|
||||||
shadow/gshadow/gshadow.c \
|
|
||||||
shadow/gshadow/gshadow.h \
|
|
||||||
shadow/gshadow/putsgent.c \
|
|
||||||
shadow/gshadow/putsgent.h \
|
|
||||||
shadow/gshadow/setsgent.c \
|
|
||||||
shadow/gshadow/setsgent.h \
|
|
||||||
shadow/gshadow/sgetsgent.c \
|
|
||||||
shadow/gshadow/sgetsgent.h \
|
|
||||||
shadow/gshadow/sgrp.c \
|
|
||||||
shadow/gshadow/sgrp.h \
|
|
||||||
shadow/passwd/sgetpwent.c \
|
|
||||||
shadow/passwd/sgetpwent.h \
|
|
||||||
shadow/shadow/sgetspent.c \
|
|
||||||
shadow/shadow/sgetspent.h \
|
|
||||||
shadowio.c \
|
shadowio.c \
|
||||||
shadowio.h \
|
shadowio.h \
|
||||||
shadowlog.c \
|
shadowlog.c \
|
||||||
@@ -186,74 +145,18 @@ libshadow_la_SOURCES = \
|
|||||||
spawn.c \
|
spawn.c \
|
||||||
sssd.c \
|
sssd.c \
|
||||||
sssd.h \
|
sssd.h \
|
||||||
string/ctype/strchrisascii/strchriscntrl.c \
|
string/sprintf.c \
|
||||||
string/ctype/strchrisascii/strchriscntrl.h \
|
string/sprintf.h \
|
||||||
string/ctype/strisascii/strisdigit.c \
|
string/stpecpy.c \
|
||||||
string/ctype/strisascii/strisdigit.h \
|
string/stpecpy.h \
|
||||||
string/ctype/strisascii/strisprint.c \
|
string/stpeprintf.c \
|
||||||
string/ctype/strisascii/strisprint.h \
|
string/stpeprintf.h \
|
||||||
string/ctype/strtoascii/strtolower.c \
|
|
||||||
string/ctype/strtoascii/strtolower.h \
|
|
||||||
string/memset/memzero.c \
|
|
||||||
string/memset/memzero.h \
|
|
||||||
string/sprintf/aprintf.c \
|
|
||||||
string/sprintf/aprintf.h \
|
|
||||||
string/sprintf/snprintf.c \
|
|
||||||
string/sprintf/snprintf.h \
|
|
||||||
string/sprintf/stpeprintf.c \
|
|
||||||
string/sprintf/stpeprintf.h \
|
|
||||||
string/strchr/strchrcnt.c \
|
|
||||||
string/strchr/strchrcnt.h \
|
|
||||||
string/strchr/strchrscnt.c \
|
|
||||||
string/strchr/strchrscnt.h \
|
|
||||||
string/strchr/strnul.c \
|
|
||||||
string/strchr/strnul.h \
|
|
||||||
string/strcmp/strcaseeq.c \
|
|
||||||
string/strcmp/strcaseeq.h \
|
|
||||||
string/strcmp/strcaseprefix.c \
|
|
||||||
string/strcmp/strcaseprefix.h \
|
|
||||||
string/strcmp/streq.c \
|
|
||||||
string/strcmp/streq.h \
|
|
||||||
string/strcmp/strneq.c \
|
|
||||||
string/strcmp/strneq.h \
|
|
||||||
string/strcmp/strprefix.c \
|
|
||||||
string/strcmp/strprefix.h \
|
|
||||||
string/strcpy/stpecpy.c \
|
|
||||||
string/strcpy/stpecpy.h \
|
|
||||||
string/strcpy/strncat.c \
|
|
||||||
string/strcpy/strncat.h \
|
|
||||||
string/strcpy/strncpy.c \
|
|
||||||
string/strcpy/strncpy.h \
|
|
||||||
string/strcpy/strtcpy.c \
|
|
||||||
string/strcpy/strtcpy.h \
|
|
||||||
string/strdup/strdup.c \
|
|
||||||
string/strdup/strdup.h \
|
|
||||||
string/strdup/strndupa.c \
|
|
||||||
string/strdup/strndupa.h \
|
|
||||||
string/strdup/strndup.c \
|
|
||||||
string/strdup/strndup.h \
|
|
||||||
string/strerrno.c \
|
|
||||||
string/strerrno.h \
|
|
||||||
string/strftime.c \
|
string/strftime.c \
|
||||||
string/strftime.h \
|
string/strftime.h \
|
||||||
string/strspn/stpspn.c \
|
string/strncpy.h \
|
||||||
string/strspn/stpspn.h \
|
string/strtcpy.c \
|
||||||
string/strspn/stprcspn.c \
|
string/strtcpy.h \
|
||||||
string/strspn/stprcspn.h \
|
string/zustr2stp.h \
|
||||||
string/strspn/stprspn.c \
|
|
||||||
string/strspn/stprspn.h \
|
|
||||||
string/strspn/strrcspn.c \
|
|
||||||
string/strspn/strrcspn.h \
|
|
||||||
string/strspn/strrspn.c \
|
|
||||||
string/strspn/strrspn.h \
|
|
||||||
string/strtok/stpsep.c \
|
|
||||||
string/strtok/stpsep.h \
|
|
||||||
string/strtok/astrsep2ls.c \
|
|
||||||
string/strtok/astrsep2ls.h \
|
|
||||||
string/strtok/strsep2arr.c \
|
|
||||||
string/strtok/strsep2arr.h \
|
|
||||||
string/strtok/strsep2ls.c \
|
|
||||||
string/strtok/strsep2ls.h \
|
|
||||||
strtoday.c \
|
strtoday.c \
|
||||||
sub.c \
|
sub.c \
|
||||||
subordinateio.h \
|
subordinateio.h \
|
||||||
@@ -262,7 +165,6 @@ libshadow_la_SOURCES = \
|
|||||||
time/day_to_str.c \
|
time/day_to_str.c \
|
||||||
time/day_to_str.h \
|
time/day_to_str.h \
|
||||||
ttytype.c \
|
ttytype.c \
|
||||||
typetraits.h \
|
|
||||||
tz.c \
|
tz.c \
|
||||||
ulimit.c \
|
ulimit.c \
|
||||||
user_busy.c \
|
user_busy.c \
|
||||||
@@ -309,4 +211,5 @@ endif
|
|||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
.indent.pro \
|
.indent.pro \
|
||||||
|
gshadow_.h \
|
||||||
xgetXXbyYY.c
|
xgetXXbyYY.c
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user