Commit Graph

  • 903f041993 Add tests * pwconv (2) * pwunconv (2) * grpconv (2) * grpunconv (2) nekral-guest 2011-11-14 20:19:14 +00:00
  • 9811f7fd4a The pwconv, pwunconv, grpconv, and grpunconv utils now have complete usage message and report a usage error if needed. nekral-guest 2011-11-14 19:45:13 +00:00
  • 5852c4eb9b Fix the file ownership. nekral-guest 2011-11-14 19:43:28 +00:00
  • b954300b83 Add 2 tests for chsh. nekral-guest 2011-11-14 19:35:35 +00:00
  • a2c7f4c8a5 Update chsh usage with the --root option. nekral-guest 2011-11-14 19:33:55 +00:00
  • 8e85d1cb82 Update chage error message. nekral-guest 2011-11-14 19:32:54 +00:00
  • ec7f69e97a Add one test for chage. nekral-guest 2011-11-14 19:32:08 +00:00
  • fbdc52a86d Update the chage usage with the --root option. nekral-guest 2011-11-14 19:28:42 +00:00
  • dff2fa836e chage/31_chage_interractive_date_invalid is currently failing and chage gets killed. Cleanup the lock files anyway. nekral-guest 2011-11-14 19:27:43 +00:00
  • 190dfc30eb Add one test for cppw. nekral-guest 2011-11-14 19:22:28 +00:00
  • 8ba58a61d5 Update cppw error message. nekral-guest 2011-11-14 19:21:04 +00:00
  • c980cb6b3a Update the chpasswd, userdel, and usermod usage with the --root option. nekral-guest 2011-11-14 19:19:57 +00:00
  • 30b6ca81e0 /etc/default/useradd is necessary for the correct operation of useradd. nekral-guest 2011-11-14 19:18:53 +00:00
  • 541f6a66b8 useradd was fixed and does not set the password to x when there are no shadow file. nekral-guest 2011-11-14 19:16:02 +00:00
  • c6175f07e3 Update useradd usage with the --root option. nekral-guest 2011-11-14 19:15:10 +00:00
  • 0b8b6534cc Update the gpasswd and chgpasswd usage with the --root option. nekral-guest 2011-11-14 19:13:46 +00:00
  • f6de85357c Add one test for groupmod. nekral-guest 2011-11-14 19:12:47 +00:00
  • 913827c3c1 Update groupmod usage with --root option. nekral-guest 2011-11-14 19:11:57 +00:00
  • 5fdb900d7b Add one test for groupadd. nekral-guest 2011-11-14 19:11:18 +00:00
  • 7803aa52ab Updated usage with the --root option. nekral-guest 2011-11-14 19:10:21 +00:00
  • 54746f0d92 Add 2 tests for groupdel. nekral-guest 2011-11-14 18:59:14 +00:00
  • dd612ca974 Updated usage with options. nekral-guest 2011-11-14 18:58:15 +00:00
  • 55b516ba94 Add 8 tests for groupmems nekral-guest 2011-11-14 18:47:05 +00:00
  • bda5661096 Fix test purpose. nekral-guest 2011-11-14 18:27:50 +00:00
  • 186f0b002a Usage message reported to stdout with the now valid -h option nekral-guest 2011-11-14 18:26:56 +00:00
  • ce533f3250 Typo fixed in grpck. nekral-guest 2011-11-14 18:26:01 +00:00
  • eb3cd52450 Update grpck usage message. nekral-guest 2011-11-14 18:25:11 +00:00
  • 3f84cb3699 * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated. * po/*.po, man/po/*.po: Updated PO files. nekral-guest 2011-11-13 18:21:43 +00:00
  • d65129f3c8 Ignore generated file generate_mans.deps nekral-guest 2011-11-13 17:42:05 +00:00
  • 28af4c5bc5 * debian/patches/401_cppw_src.dpatch: Detect as well too many and too few arguments. * Fix section of debian changelog where update of patches are documented nekral-guest 2011-11-13 16:30:37 +00:00
  • 57f9d5ae9c * src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c, src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c, src/newusers.c, src/useradd.c, src/userdel.c, src/usermod.c: Provide the PAM error message instead of our own, and log error to syslog. * src/groupmems.c: Exit with exit rather than fail_exit in usage(). * src/newusers.c: Check the number of arguments. * src/newusers.c: Do not create the home directory when it is not changed. * src/useradd.c: Set the group password to "!" rather "x" if there are no gshadow file. nekral-guest 2011-11-13 16:24:57 +00:00
  • 2ecea675ee Fix cut&paste issue from yesterday. nekral-guest 2011-11-13 16:24:49 +00:00
  • f64c88d629 * src/pwck.c: Removed pw_opened. * src/pwck.c: optind cannot be greater than argc. * src/pwck.c: If spw_opened, then is_shadow is implicitly set. * src/pwck.c: Do not report passwd entry without x password and a shadow entry in --quiet mode (no interaction with the caller) * src/pwck.c: Do not check if the last password change is in the future if the time is set to 0. nekral-guest 2011-11-13 16:24:39 +00:00
  • 3c608e56f6 * libmisc/root_flag.c: Drop privileges before changing root. The --root option should not be used by regular users for suid utils. * libmisc/root_flag.c: Improve error messages. nekral-guest 2011-11-11 12:09:58 +00:00
  • f54a68ac76 * src/pwck.c: Compile fix for TCB. nekral-guest 2011-11-11 12:00:05 +00:00
  • 3bb7c43694 * libmisc/copydir.c: Avoid conflict with glibc. Rename error to error_acl. nekral-guest 2011-11-11 11:59:21 +00:00
  • 61ba4bf46e * man/newusers.8.xml: Document the optional file argument. * man/newusers.8.xml: Fix the documentation of the inputs' format. nekral-guest 2011-11-11 11:35:56 +00:00
  • 5bb64ec036 * debian/securetty.linux: Add s390/s390x ports ttysclp0. Closes: #647469 nekral-guest 2011-11-06 19:14:12 +00:00
  • 6b8409e9e8 Refreshed patches. nekral-guest 2011-11-06 19:08:11 +00:00
  • 4a5447d4d7 Fix issue introduced by the synchronization with coding style. nekral-guest 2011-11-06 19:06:37 +00:00
  • 1c619c768d * New upstream release: - groupmod: document that /etc/passwd can be modified by groupmod -g. Closes: #647308 nekral-guest 2011-11-06 19:05:27 +00:00
  • 184f9d40e6 * man/groupmod.8.xml: Document that the primary group of users may be changed by groupmod -g. nekral-guest 2011-11-06 19:01:54 +00:00
  • f3afeb9c04 * NEWS, src/newusers.c, man/newusers.8.xml: Add --root option. nekral-guest 2011-11-06 18:40:22 +00:00
  • 2a2c8190ec * src/vipw.c: Remove unused variable a. nekral-guest 2011-11-06 18:40:17 +00:00
  • 45154f1d68 * man/generate_mans.mak: The xml-config files do not depend on the Makefile. nekral-guest 2011-11-06 18:40:11 +00:00
  • 7861eaa5ec Re-indent. nekral-guest 2011-11-06 18:40:06 +00:00
  • f0a63185c9 * src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c, src/faillog.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c, src/grpconv.c, src/grpunconv.c, src/lastlog.c, src/newusers.c, src/passwd.c, src/pwconv.c, src/pwunconv.c, src/su.c, src/useradd.c, src/userdel.c, src/usermod.c, src/vipw.c: Align and sort options. nekral-guest 2011-11-06 18:39:59 +00:00
  • 7d8ca29bea * NEWS, src/pwck.c, man/pwck.8.xm, src/grpck.c, man/grpck.8.xml: Add --root option. nekral-guest 2011-11-06 18:39:53 +00:00
  • e4fbf98b18 * man/limits.5.xml, libmisc/limits.c: Sort limit identifiers. * libmisc/limits.c: Fix support for the K limit identifier. * libmisc/limits.c: Add missing default limit for L and U. nekral-guest 2011-11-06 18:39:47 +00:00
  • f4d95eecc0 Re-indent. nekral-guest 2011-11-06 18:39:42 +00:00
  • 900943192f * src/pwck.c, man/pwck.8.xml: Add support for long options. * src/pwck.c, man/pwck.8.xml: Add -h/--help option * src/grpck.c, man/grpck.8.xml: Add support for long options. * src/grpck.c, man/grpck.8.xml: Add -h/--help option nekral-guest 2011-11-06 18:39:36 +00:00
  • b9163f6348 * src/expiry.c, man/expiry.1.xml: Add support for long options. * src/expiry.c, man/expiry.1.xml: Add -h/--help option nekral-guest 2011-11-06 18:39:30 +00:00
  • 0530588266 * NEWS, src/chfn.c, man/chfn.1.xml: Add --root option. nekral-guest 2011-11-06 18:39:24 +00:00
  • b26f73f427 * src/chfn.c, man/chfn.1.xml: Add support for long options. * src/chfn.c, man/chfn.1.xml: Add -u/--help option nekral-guest 2011-11-06 18:39:19 +00:00
  • e2068416c9 * NEWS, src/vipw.c, man/vipw.8.xml: Add --root option. nekral-guest 2011-11-06 18:39:09 +00:00
  • a2d23700e4 * NEWS, src/faillog.c, man/faillog.8.xml: Add --root option. * NEWS, src/lastlog.c, man/lastlog.8.xml: Likewise. * src/faillog.c: Add Prog variable, and prefix error messages with Prog rather than "faillog". * src/lastlog.c: Likewise. * src/lastlog.c: Split usage in smaller messages. nekral-guest 2011-11-06 18:39:03 +00:00
  • 0857837e64 * NEWS, src/chage.c, man/chage.1.xml: Add --root option. Open audit and syslog after the potential chroot. chage's usage split in smaller messages. nekral-guest 2011-11-06 18:38:57 +00:00
  • d15f2c6214 * src/login.c: re-indent. * src/login.c: Fix support for sub-logins. nekral-guest 2011-11-06 18:38:51 +00:00
  • 6eb0500d3d * src/faillog.c, src/chage.c, src/newusers.c, src/su.c: The getopt index of long options is not used. nekral-guest 2011-11-06 18:38:45 +00:00
  • 7b8c4952a8 * NEWS, src/gpasswd.c, man/gpasswd.1.xml: Add --root option. * src/gpasswd.c: The getopt index of long options is not used. nekral-guest 2011-11-06 18:38:39 +00:00
  • 4beca611fb * NEWS, src/chsh.c, man/chsh.1.xml: Add --root option. chsh's usage split in smaller messages. * src/chsh.c: The getopt index of long options is not used. nekral-guest 2011-11-06 18:38:32 +00:00
  • 1aa30ba551 * NEWS, src/groupmems.c, man/groupmems.8.xml: Add --root option. Open syslog after the potential chroot. * src/groupmems.c: The getopt index of long options is not used. nekral-guest 2011-11-06 18:38:26 +00:00
  • fc5cd8840e sort per util. nekral-guest 2011-11-06 18:38:21 +00:00
  • ec2b9f59f7 * NEWS, src/passwd.c, man/passwd.1.xml: Add --root option. passwd's usage split in smaller messages. * src/passwd.c: Call sanitize_env() before setting the locales. nekral-guest 2011-11-06 18:38:16 +00:00
  • 799f30b08d * NEWS, src/chpasswd.c, man/chpasswd.8.xml, src/chgpasswd.c, man/chgpasswd.8.xml: Add --root option. * src/chpasswd.c, src/chgpasswd.c: The getopt index of long options is not used. nekral-guest 2011-11-06 18:38:10 +00:00
  • bf90350fe7 * NEWS, src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c, man/pwconv.8.xml: Add --root option. * src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c: Add --help option. * src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c: Add process_flags() and usage(). nekral-guest 2011-11-06 18:38:04 +00:00
  • c017dd73aa * src/groupdel.c: Add process_flags(). * src/groupdel.c, man/groupdel.8.xml: Add --help option. * NEWS, src/groupdel.c, man/groupdel.8.xml: Add --root option. Open audit and syslog after the potential chroot. * src/groupdel.c: Check atexit failures. nekral-guest 2011-11-06 18:37:57 +00:00
  • 9195f6085d * NEWS, src/groupadd.c, man/groupadd.8.xml: Add --root option. Open audit and syslog after the potential chroot. * src/groupmod.c: The index of long options is not used. nekral-guest 2011-11-06 18:37:51 +00:00
  • 057cbaa4ae * NEWS, src/groupadd.c, man/groupadd.8.xml: Add --root option. Open audit after the potential chroot. * src/groupadd.c: Check atexit failures. * src/groupadd.c: Return E_SUCCESS instead of exit'ing at the end of main(). nekral-guest 2011-11-06 18:37:45 +00:00
  • aa2957e62a * NEWS, src/usermod.c, man/usermod.8.xml: Add --root option. Open audit and syslog after the potential chroot. userdel's usage split in smaller messages. nekral-guest 2011-11-06 18:37:39 +00:00
  • 50eafd769b * NEWS, src/userdel.c, man/userdel.8.xml: Add --root option. Open audit and syslog after the potential chroot. userdel's usage split in smaller messages. nekral-guest 2011-11-06 18:37:32 +00:00
  • cecae46ccf * NEWS, src/useradd.c, man/useradd.8.xml: Add --root option. Open audit after the potential chroot. nekral-guest 2011-11-06 18:37:25 +00:00
  • 0b5574c28a * lib/prototypes.h, libmisc/Makefile.am, libmisc/root_flag.c, po/POTFILES.in: Add process_root_flag() to process the --root option and chroot so that the chroot config is used and changes are applied to the chroot. nekral-guest 2011-11-06 18:37:19 +00:00
  • af075bffc9 - debian/patches/506_relaxed_usernames: Really check if the user/group name starts with a dash. Also forbid names starting with '+' or '~'. Document the naming policy in useradd.8 / groupadd.8. nekral-guest 2011-10-31 22:54:38 +00:00
  • c237be820b * man/ja/Makefile.am, man/fr/Makefile.am, man/ru/Makefile.am, man/sv/Makefile.am, man/pl/Makefile.am, man/zh_CN/Makefile.am, man/it/Makefile.am, man/Makefile.am: Include man_nopam in EXTRA_DIST only when USE_PAM (they are already in man_MANS otherwise). nekral-guest 2011-10-22 08:59:08 +00:00
  • eee4152981 * man/su.1.xml: Document that su -c does not providea controlling terminal. nekral-guest 2011-10-22 08:56:51 +00:00
  • 971f260e94 Only report the requested access mode because the complete mode differs on different architectures. nekral-guest 2011-10-20 18:17:28 +00:00
  • 9f71e81c91 Usage of useradd was updated. nekral-guest 2011-10-20 18:15:31 +00:00
  • 7dc1f3b2dd Usage messages of cppw and grpconv were missing. nekral-guest 2011-10-20 18:13:50 +00:00
  • 5431d2abe2 cppw error returned in case of bad usage was changed (1->2). nekral-guest 2011-10-20 18:12:03 +00:00
  • 47bbcf4dc4 Fix messages. nekral-guest 2011-10-20 18:11:29 +00:00
  • b512961c12 Continue synchronization with coding style * Use of gettext (even if no messages would be translated in the current infrastructure) * report an additional strerror only if a message was provided * fix issue when cppwexit is called before the copy of file nekral-guest 2011-10-20 18:09:12 +00:00
  • efab223b05 - debian/patches/401_cppw_src.dpatch, debian/patches/402_cppw_selinux: Synchronize with coding style. nekral-guest 2011-10-18 22:44:46 +00:00
  • cd964eccb5 - debian/patches/402_cppw_selinux: Avoid implicit conversion between integer and boolean. - debian/patches/401_cppw_src.dpatch: Replace progname by Prog. Rename create_backup_file to create_copy. The lock functions do not ser errno. Do not report the error string on cppwexit. nekral-guest 2011-10-18 21:58:33 +00:00
  • 1ce22b1adc Refresh patches. nekral-guest 2011-10-18 21:29:56 +00:00
  • 2afa955401 * src/sulogin.c (main): env is only used when USE_PAM is not set. nekral-guest 2011-10-18 20:28:01 +00:00
  • 704f28df98 * lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c: Add splint annotations. nekral-guest 2011-10-18 20:23:33 +00:00
  • edbdb4bf03 * lib/nscd.c: Remove unused variable. nekral-guest 2011-10-18 20:16:00 +00:00
  • d3195c6b5f * src/newusers.c: Fix typo. * src/useradd.c: Likewise. nekral-guest 2011-10-18 20:13:37 +00:00
  • 6c4c7f47a0 * Add the new tests. * Stop executing tests when RUN_TEST.STOP exists * Reset permissions on gcda files after running tests for suid tools (su). nekral-guest 2011-10-16 16:15:04 +00:00
  • 53ba4f6fc6 Add tests for: * chage (6) * chsh (2) * cppw (3) * gpasswd (11) * grpconv (4) * grpunconv (4) * newusers (10) * pwconv (5) * pwunconv (4) * useradd (11) nekral-guest 2011-10-16 14:45:54 +00:00
  • 2d0341ae26 Added 4 failure tests for userdel. nekral-guest 2011-10-16 14:39:08 +00:00
  • edc2bc5556 * Fix typos in comments. * Remove generated directory. nekral-guest 2011-10-16 14:37:49 +00:00
  • a3e655cc19 * The logs may be dated from the previous minute. * Reverse the diff. nekral-guest 2011-10-16 14:34:17 +00:00
  • 34e67733ad Add 10 tests for cppw. nekral-guest 2011-10-16 14:32:34 +00:00
  • f261f8897d Cleanup. nekral-guest 2011-10-16 14:30:56 +00:00
  • b2f829c0d9 Add 2 other open failure libraries. nekral-guest 2011-10-16 14:24:39 +00:00
  • e44a7c5333 Test that only O_RDWR is set. Rename internal symbols to *open64. nekral-guest 2011-10-16 14:24:11 +00:00
  • 8fcb361fb8 * man/login.defs.d/LOGIN_STRING.xml: Fix typo. nekral-guest 2011-10-15 16:01:07 +00:00
  • 5256839da0 Add 12 tests for chsh. nekral-guest 2011-09-25 13:53:11 +00:00