Commit Graph

  • f8a95f7ca1 Add option --password to groupadd and groupmod (similar to useradd and usermod). nekral-guest 2008-01-05 14:17:43 +0000
  • e94d2da45e Remove the declaration of getutent(), getutline(), setutent(), and endutent() which are declared in <utmp.h> nekral-guest 2008-01-05 14:09:56 +0000
  • 8d440a2a52 stat shadows another stat variable. Remove this variable, and directly check the result of getfscreatecon(). nekral-guest 2008-01-05 14:01:34 +0000
  • 616ad5252d Changelog entry forgotten in previous src/gshadow.c commit: * list() is an external function. DO not shadow it with a static function. The internal list() was renamed build_list(). nekral-guest 2008-01-05 13:58:56 +0000
  • 8d9c39789b The prototypes of fgetsx() and fputsx() are already defined in prototypes.h. Remove the declaration of these functions. nekral-guest 2008-01-05 13:56:21 +0000
  • bbb9470661 loginsh is a global variable, use newshell for the update_shell()'s parameter. nekral-guest 2008-01-05 13:54:39 +0000
  • f11bbd3b70 login_prompt is the name of a function, use loginprompt for the internal variable. nekral-guest 2008-01-05 13:53:14 +0000
  • 239b2d7bee Make a proper prototype for the main() function declaration. (add void) nekral-guest 2008-01-05 13:51:43 +0000
  • 2040826791 Add changelog entry for previous commit. nekral-guest 2008-01-05 13:49:32 +0000
  • 83b7153b40 Add missing include "shadowio.h". (This was OK as long as prototypes.h included this file.) nekral-guest 2008-01-05 13:40:49 +0000
  • 53b075a760 * libmisc/pam_pass.c: Define do_pam_passwd() as static and add its prototype. * libmisc/log.c: Define dolastlog() as static and add its prototype. * src/chage.c: Define isnum() as static and add its prototype. nekral-guest 2008-01-05 13:37:32 +0000
  • b8ce324a66 Include config.h as a system include, as recommended by the autoconf documentation. nekral-guest 2008-01-05 13:32:32 +0000
  • 99dc2b1abf Define is_listed() as static and add its prototype. nekral-guest 2008-01-05 13:29:24 +0000
  • 96bca84ca4 Include "prototypes.h" to make sure the exported prototypes are the ones used for the definition of functions. nekral-guest 2008-01-05 13:23:22 +0000
  • b7d372d8e3 "shadowio.h" was included for the definition of the spwd structure. Replace this include by <shadow.h> nekral-guest 2008-01-05 13:07:54 +0000
  • 867034e3ba grent.c does not exist anymore. Remove the putgrent prototype. nekral-guest 2008-01-05 13:05:21 +0000
  • 3c800f5880 Add the syslog_sg prototype. nekral-guest 2008-01-01 23:56:03 +0000
  • 11864d22b4 Also split syslog_sg() out of main(). nekral-guest 2008-01-01 23:54:51 +0000
  • 1ff4e28748 Remove duplicate logging to syslog. nekral-guest 2008-01-01 23:45:44 +0000
  • d590d0ccee Split check_perms() out of main(). nekral-guest 2008-01-01 23:35:55 +0000
  • 94b3b98196 Avoid assignments in conditionals. nekral-guest 2008-01-01 23:07:55 +0000
  • 1d76eb6ef7 Avoid assignments in conditionals. nekral-guest 2008-01-01 22:21:55 +0000
  • 631fa3b4f3 (split_groups): Test the pointer returned by malloc. nekral-guest 2008-01-01 20:47:31 +0000
  • 6f45325d6e Document add_one_entry_nis(), write_all(), commonio_remove(), commonio_locate(), and commonio_rewind(). nekral-guest 2008-01-01 20:34:47 +0000
  • e700196c17 Fix typo s/groupadd/chpasswd/ nekral-guest 2008-01-01 19:56:29 +0000
  • 53ecd8e0c0 New TODO item: - newusers: add logging to SYSLOG & AUDIT nekral-guest 2008-01-01 19:54:37 +0000
  • 97d7df1ef4 Fix typo s/groupadd/chage/ nekral-guest 2008-01-01 19:53:33 +0000
  • 376d990101 Fix typo s/groupadd/chgpasswd/. nekral-guest 2008-01-01 19:53:02 +0000
  • 4c2f65d7d0 Avoid implicit conversions to booleans. nekral-guest 2008-01-01 18:27:40 +0000
  • 92d8cbb26c Avoid implicit brackets. nekral-guest 2008-01-01 18:04:46 +0000
  • 7080370042 Re-indent. nekral-guest 2008-01-01 17:56:33 +0000
  • a9ae2a8710 Avoid implicit conversions to booleans. nekral-guest 2008-01-01 17:51:54 +0000
  • 94266e1360 use_system_pw_file and use_system_spw_file were not reset. nekral-guest 2008-01-01 17:43:18 +0000
  • f6e79f59be Re-indent. nekral-guest 2008-01-01 16:58:13 +0000
  • 27ed5ec8b9 Avoid implicit brackets. nekral-guest 2008-01-01 16:54:18 +0000
  • f9f420b107 ignore libmisc.a nekral-guest 2008-01-01 16:40:50 +0000
  • 1c2f4f0428 No functional changes were introduced by the previous pwck and grpck changes, except for the following bug fix: no syslog logging if a passwd or group file was specified on the command line without a shadowed database file, even if the system shadowed database was changed). nekral-guest 2008-01-01 16:36:06 +0000
  • 42a5b75c5a * Fix open_files prototype (void argument). * close_file documentation (s:password/shadow:group/gshadow:) nekral-guest 2008-01-01 16:28:01 +0000
  • 6ac97a708c Fix typos in comments (gshadow/shadow). nekral-guest 2008-01-01 16:25:57 +0000
  • d022527b71 Simplify pwck's main(). Remove gotos. nekral-guest 2008-01-01 15:52:07 +0000
  • 3ad9a439d5 Split also check_pw_file() and check_spw_file() out of main(). nekral-guest 2008-01-01 15:49:33 +0000
  • ef2c12e560 Also split open_files and close_files out of main(). New global variables use_system_pw_file and use_system_spw_file nekral-guest 2008-01-01 15:29:47 +0000
  • 6912ac253a Split process_flags() out of main(). New global variables is_shadow, sort_mode. nekral-guest 2008-01-01 15:07:41 +0000
  • a3501dfd95 De-comment code (duplicate the entry when the _R function is not present on the system). nekral-guest 2008-01-01 14:48:04 +0000
  • 09a95ed70a * src/lastlog.c: Remove statbuf, not used. * src/lastlog.c: Fix types, cast umin and umax to uid_t. * src/lastlog.c: (option -u) user needs to be a signed long, not uid_t (to accept rangees like -<uid> nekral-guest 2008-01-01 14:38:47 +0000
  • d0de685c7a Avoid ?: construct without the middle term. nekral-guest 2008-01-01 14:34:07 +0000
  • 72713d0b73 Forgot to commit that one. Avoid empty file when USE_PAM is set. nekral-guest 2008-01-01 14:32:41 +0000
  • b681e50ff2 * libmisc/copydir.c, src/usermod.c, lib/prototypes.h: The uid and gid parameters can be set to -1 to indicate that the original owners must be kept. Change the types from uid_t/gid_t to a long int (signed). * libmisc/copydir.c: Change the copy_entry(), copy_dir(), copy_symlink(), copy_special(), and copy_file() prototypes accordingly. * lib/prototypes.h: Add the parameters' name for the libmisc/copydir.c functions. nekral-guest 2008-01-01 14:31:00 +0000
  • bb8af02978 Avoid empty file when WITH_AUDIT is not set. nekral-guest 2008-01-01 14:20:36 +0000
  • bca732693b * libmisc/limits.c, libmisc/obscure.c, src/login_nopam.c, lib/pwauth.c: Avoid empty file when USE_PAM is set. * src/login_nopam.c: Fix warnings: resolve_hostname takes and returns a constant string. nekral-guest 2008-01-01 14:18:55 +0000
  • 0dccafcd23 Remove inaccurate documentation. The password file is no more opened in read only mode. nekral-guest 2008-01-01 14:12:34 +0000
  • b25feca14c Add missing prototype declarations. Document the new functions. nekral-guest 2008-01-01 14:10:21 +0000
  • 0aaddfaf29 I forgot to mention compare_members_lists(). nekral-guest 2008-01-01 14:09:47 +0000
  • 3d82d5e452 Split check_members() out of check_grp_file() and check_sgr_file(). nekral-guest 2008-01-01 13:50:06 +0000
  • 612820cb9a Split check_grp_file() and check_sgr_file() out of main(). nekral-guest 2008-01-01 13:48:49 +0000
  • f6f6eeda8e Split process_flags(), open_files(), and close_files() out of main(). New global variables is_shadow, sort_mode, use_system_grp_file, and use_system_sgr_file. nekral-guest 2008-01-01 13:13:47 +0000
  • 83b9a376a2 If remove-potcdate.sin does not exist, use the one from teh po directory (it is not installed automatically by autopoint. nekral-guest 2007-12-31 20:16:46 +0000
  • ca9fbc0d8e Compilation fix. pamh needs to be global since the split of check_perms(). nekral-guest 2007-12-31 20:15:15 +0000
  • 1ec694eae7 Compilation fix. user was removed from the list of global variables. nekral-guest 2007-12-31 20:14:31 +0000
  • b9a00ea0ee Fix the type of the bitfields in the commonio_entry and commonio_db structures to unsigned int (instead of int). nekral-guest 2007-12-31 20:12:48 +0000
  • 0cc661a2cf Re-indent. nekral-guest 2007-12-31 15:34:29 +0000
  • d6cabcde78 Re-indent. nekral-guest 2007-12-31 15:32:15 +0000
  • 4c9686df0c Avoid assignments in comparisons. nekral-guest 2007-12-31 15:30:29 +0000
  • ce4e74c1b9 Avoid implicit brackets. nekral-guest 2007-12-31 15:27:23 +0000
  • 3709183127 (compil fix) Use pw->pw_name instead of user. nekral-guest 2007-12-31 15:13:39 +0000
  • 9a67b445b1 sflg needs to be global. nekral-guest 2007-12-31 15:07:59 +0000
  • ca035a53a0 Also split update_shell() out of main(). nekral-guest 2007-12-31 15:06:22 +0000
  • f031095d9f * Split also check_perms() out of main(). * Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again. nekral-guest 2007-12-31 14:54:46 +0000
  • 7ed7e14dee Split process_flags() out of main(). nekral-guest 2007-12-31 14:52:52 +0000
  • 4af02cb083 Avoid assignments in comparisons. nekral-guest 2007-12-31 14:37:24 +0000
  • ce3c44b0f7 Avoid assignments in comparisons. nekral-guest 2007-12-31 14:25:06 +0000
  • c086f6c931 Avoid implicit conversions to booleans. nekral-guest 2007-12-31 14:15:29 +0000
  • ca468cb988 Document may_change_field(). nekral-guest 2007-12-31 14:03:14 +0000
  • 3d04ff4037 Avoid implicit brackets. nekral-guest 2007-12-31 13:48:48 +0000
  • 7279ff37f3 * New function: process_flags() split out of main(). The flags variables are now global. * New functions: check_perms(), update_gecos(), get_old_fields(), and check_fields() split out of main(). * Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again. nekral-guest 2007-12-31 13:43:04 +0000
  • d0b984528a * src/newusers.c: Compilation fix for PAM support (pamh needs to be global since the function split). * src/chpasswd.c: Likewise. * src/chgpasswd.c: Likewise. * src/chpasswd.c: Avoid implicit conversions to booleans. nekral-guest 2007-12-31 04:57:54 +0000
  • e448d1acb1 Sort the tools in the NEWS entries of 4.1.1. nekral-guest 2007-12-31 04:34:10 +0000
  • f09b1404eb Rewrote to match the previous commit message. nekral-guest 2007-12-31 04:31:28 +0000
  • db38d0b104 * src/chage.c: Fix typo: s/maximim/maximum/ * src/chage.c: New function: fail_exit(). Change most of the exit() to a fail_exit, which makes sure the files are unlocked (new global variables: pw_locked, spw_locked), the PAM transaction is ended, and the failure is logged to libaudit (use a global user_name and user_uid for logging). * src/chage.c: Compilation fix for PAM support (pamh needs to be global since the function split). * src/chage.c: Document process_flags(), check_flags(), check_perms(), open_files(), and close_files(). * src/chage.c: Split update_age() and get_defaults() out of main() * src/chage.c: Drop the privileges just after opening the files. * src/chage.c: Do not log to audit only if the user has an entry in the shadow file. * NEWS, src/chage.c (open_files): Also open the password file for writing. This fix chage when the user only has a password entry (and no shadow entries). * src/chage.c (get_defaults): Use default values that don't change the behavior of the account for the fields that are not specified when the user has no shadow entry. nekral-guest 2007-12-31 04:29:30 +0000
  • 3b7497b063 * Compilation fix for PAM support (pamh needs to be global since the function split). * End the PAM transaction in fail_exit(). * Document check_flags(). nekral-guest 2007-12-30 21:48:55 +0000
  • d1bee8b593 Compilation fix for non-gshadow support. nekral-guest 2007-12-30 21:39:57 +0000
  • 99230a30ad I forgot to open and close gshadow. nekral-guest 2007-12-29 17:34:02 +0000
  • 623010396c Added support for gshadow. nekral-guest 2007-12-29 17:26:28 +0000
  • 098173e1df Do not add the new user to the group's members, because the group is already the primary group of the new user. nekral-guest 2007-12-29 17:05:13 +0000
  • 67b9c423fe Avoid variables with the name of a type. nekral-guest 2007-12-29 14:52:35 +0000
  • b040f047fd Avoid assignments in comparisons. nekral-guest 2007-12-29 14:48:33 +0000
  • 8c4efbb8ce Avoid implicit brackets and re-indent. nekral-guest 2007-12-29 14:34:39 +0000
  • 9923513271 Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again. nekral-guest 2007-12-29 14:17:06 +0000
  • 60a422b284 newusers cleanups main() split in new functions: process_flags(), check_flags(), check_perms(), open_files(), and close_files(). nekral-guest 2007-12-29 14:11:54 +0000
  • 3c890a55d8 Avoid assignments in comparisons. nekral-guest 2007-12-29 11:34:31 +0000
  • 37ccc0a3d4 Re-indent. nekral-guest 2007-12-29 11:19:39 +0000
  • a7cbfedc85 * Avoid implicit brackets. * Avoid implicit conversion to booleans. nekral-guest 2007-12-29 11:06:35 +0000
  • 2d771a97b7 Remove dead code. It was probably put here to add more information to the audit_logger. nekral-guest 2007-12-29 10:50:03 +0000
  • 6ca79a36b0 Avoid using a variable with the same name as a type. nekral-guest 2007-12-29 10:47:04 +0000
  • 388dcee3e4 chage cleanups * src/chage.c: Before pam_end(), the return value of the previous pam API was already checked. No need to validate it again. * src/chage.c: main() split in new functions: process_flags(), check_flags(), check_perms(), open_files(), and close_files(). nekral-guest 2007-12-29 10:42:25 +0000
  • 8563319b8b * src/chgpasswd.c: Avoid assignments in comparisons. * src/chgpasswd.c: Avoid implicit brackets. * src/chgpasswd.c: Fix comments to match chgpasswd (group instead of user's passwords are changed). nekral-guest 2007-12-28 23:14:59 +0000
  • 9fe450e216 Same changes as for chpasswd: * src/chpasswd.c: main() split in process_flags(), check_flags(), check_perms(), open_files(), and close_files(). nekral-guest 2007-12-28 22:59:17 +0000
  • 28cd038c35 Same changes as for chpasswd: * src/chpasswd.c: main() split in process_flags(), check_flags(), check_perms(), open_files(), and close_files(). nekral-guest 2007-12-28 22:54:35 +0000
  • 8dc959ea1f Avoid implicit brackets. nekral-guest 2007-12-28 22:34:14 +0000
  • f54464bcf6 Re-indent. nekral-guest 2007-12-28 22:31:45 +0000