Commit Graph

  • 50916c195b * man/newusers.8.xml: Added notes regarding the ownership of files. nekral-guest 2009-05-19 22:17:55 +00:00
  • a61ecc3177 Added FIXMEs. nekral-guest 2009-05-19 22:12:27 +00:00
  • 627ebe09ed * man/groupmod.8.xml: Split the -g option description into smaller paragraphs. nekral-guest 2009-05-19 22:00:14 +00:00
  • 2adab29e61 * man/usermod.8.xml: Ownership of the mailbox is also changed with the -u option. nekral-guest 2009-05-19 21:57:04 +00:00
  • fb41fb8c46 * man/useradd.8.xml: When no passwords are provided, the password is disabled, not the account. nekral-guest 2009-05-19 21:37:53 +00:00
  • 738eac8669 * man/newusers.8.xml, man/chpasswd.8.xml, man/useradd.8.xml, man/groupadd.8.xml, man/usermod.8.xml, man/chgpasswd.8.xml, man/groupmod.8.xml: Added warning: passwords set with these tools may not respect the password policy. nekral-guest 2009-05-19 21:29:26 +00:00
  • 82afbc40ce * man/groupadd.8.xml: Fixed formatting issue. nekral-guest 2009-05-19 20:32:48 +00:00
  • 00694672cd * man/groupdel.8.xml: Move the warning on filesystems checks to the CAVEAT section. nekral-guest 2009-05-19 20:31:45 +00:00
  • fa2afc96ac This was meant for the previous man/userdel.8.xml commit: * man/userdel.8.xml: Added warning for files that could remain owner by the removed user. nekral-guest 2009-05-19 20:31:02 +00:00
  • 42cb56a3a0 * man/useradd.8.xml: Fix formatting typo. nekral-guest 2009-05-19 20:26:56 +00:00
  • b5e7ede8b7 * man/groupdel.8.xml: Move the warning on filesystems checks to the CAVEAT section. nekral-guest 2009-05-19 20:26:28 +00:00
  • c859ad91c4 Added missing return value. nekral-guest 2009-05-18 22:46:13 +00:00
  • 5dead2b296 * man/login.defs.d/GID_MAX.xml: Fixed typo. useradd was specified twice. nekral-guest 2009-05-18 22:45:39 +00:00
  • 6573e0175f * man/groupadd.8.xml, man/useradd.8.xml: names may also contain digits. nekral-guest 2009-05-18 22:43:59 +00:00
  • 96816f495e * man/shadow.5.xml: What is important in shadow is not the encryption, but that the file is not world readable. nekral-guest 2009-05-18 22:40:57 +00:00
  • 9f13b4fdaa * man/po/fr.po: Updated French translation. Thanks to ABBAS Belkacem for the login.defs update. nekral-guest 2009-05-18 22:39:48 +00:00
  • 5f143879df * man/usermod.8.xml: Split the CAVEAT section in paragraphs. Updated information on the user_busy check. nekral-guest 2009-05-18 19:18:29 +00:00
  • 785231657c * man/userdel.8.xml: Document that -f forces the deletion of a busy user. nekral-guest 2009-05-18 18:53:23 +00:00
  • b9ecd1cf42 * NEWS, src/usermod.c: Check if the user is busy when the user's UID, name or home directory is changed. nekral-guest 2009-05-18 18:37:16 +00:00
  • 4a4549c49b * src/userdel.c, libmisc/user_busy.c, libmisc/Makefile.am, lib/prototypes.h: Move user_busy() to libmisc/user_busy.c. * NEWS, libmisc/user_busy.c: On Linux, do not check if an user is logged in with utmp, but check if the user is running some processes. If not on Linux, continue to search for an utmp record, but make sure the process recorded in the utmp entry is still running. nekral-guest 2009-05-18 18:32:17 +00:00
  • 3e85eafb4c * man/usermod.8.xml: Document the -m/--move-home option. nekral-guest 2009-05-18 18:28:06 +00:00
  • e3343c1d9b * src/userdel.c (user_busy): Check if the process registered in utmp is still running. This avoids rejecting the removal of an user when UTMP was not updated and indicate that the user is still logged in. nekral-guest 2009-05-17 16:27:29 +00:00
  • 297141c6c4 re-indent. nekral-guest 2009-05-17 16:02:35 +00:00
  • 589a773f7e Document the changes in 4.1.4.1: - login * Fix failures with empty usernames on non PAM versions. * Fix CONSOLE (securetty) support on non PAM versions. nekral-guest 2009-05-16 18:27:13 +00:00
  • f634cd3e2c * libmisc/console.c (console): Remove the leading /dev/ from the tty before comparing with the lines specified by CONSOLE. * src/su.c: Do not remove the /dev/ prefix since it is done by console(). nekral-guest 2009-05-16 18:19:24 +00:00
  • 8eaa6f8b4c * man/login.defs.d/CONSOLE.xml: Document the format of the CONSOLE file. nekral-guest 2009-05-16 17:08:44 +00:00
  • 9ee294ba70 * src/login.c: Fix failure of non PAM enabled versions when an empty username is entered after a first prompt. nekral-guest 2009-05-16 15:43:13 +00:00
  • d945d61e42 * src/passwd.c: Added missing end of line at the end of success messages. nekral-guest 2009-05-16 15:39:01 +00:00
  • f8f0886248 * po/fr.po: Fixed typo in the vipw usage string. nekral-guest 2009-05-16 15:38:00 +00:00
  • 87bb724151 * libmisc/shell.c: Removed invalid code that executed the user's shell as a shell script when the direct execution of the user's shell failed with ENOEXEC and the user's shell has a shebang. The interpreter might not be the right one. Executing the user's shell with sh -c might be better, but I'm not sure we should try harder when there is a failure. Note: The removed code was only included #ifndef __linux__. nekral-guest 2009-05-12 20:01:41 +00:00
  • 205e8b5137 * man/userdel.8.xml: The USERGROUPS_ENAB group may not be removed when the group is used by other users, not the user. nekral-guest 2009-05-12 19:25:26 +00:00
  • a9b8fdc3c9 * src/userdel.c, man/login.defs.d/USERDEL_CMD.xml: Move the USERDEL_CMD script example from the source code to the documentation. nekral-guest 2009-05-12 19:23:46 +00:00
  • 321e3ed02c * man/newusers.8.xml: PAM enabled version: describe how passwords are updated and how newusers behave in case of error. nekral-guest 2009-05-11 19:29:38 +00:00
  • 63e6dc6b11 * NEWS, configure.in: New release will be 4.1.4. * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated. * po/*.po, man/po/*.po: Updated PO files. nekral-guest 2009-05-10 20:02:21 +00:00
  • a96a8861dd Fix compilation warnings. nekral-guest 2009-05-10 18:26:33 +00:00
  • 24875bb422 * libmisc/copydir.c: Added prototype of readlink_malloc(), and readlink_malloc() changed to static. nekral-guest 2009-05-10 18:21:58 +00:00
  • 74073db5db * src/su.c: Avoid redeclaration of root_pw. nekral-guest 2009-05-10 18:20:41 +00:00
  • fe0a5b6ee3 Added Changelog and NEWS entry for the French and Japanese translations. nekral-guest 2009-05-10 17:10:44 +00:00
  • 12875d2687 French translation update bubulle 2009-05-10 16:42:43 +00:00
  • 489432d742 Japanese translation received directly from NAKANO Takeo bubulle 2009-05-10 16:42:17 +00:00
  • 750093a3ed * lib/commonio.c: Avoid PATH_MAX. On glibc, we can use realpath with a NULL argument. * src/useradd.c: Replace PATH_MAX by a fixed constant. The buffer was not meant as a storage for a path. * src/useradd.c, src/newusers.c, src/chpasswd.c: Better detection of fgets errors. Lines shall end with a \n, unless we reached the end of file. * libmisc/copydir.c: Avoid PATH_MAX. Support file paths with any length. Added readlink_malloc(). nekral-guest 2009-05-10 13:49:03 +00:00
  • a01499179f * src/pwck.c: Warn if an user has an entry in passwd and shadow, and the password field in passwd is not 'x'. * src/grpck.c: Warn if a group has an entry in group and gshadow, and the password field in group is not 'x'. nekral-guest 2009-05-09 21:20:54 +00:00
  • 6ba7fd7d13 Fix typo. nekral-guest 2009-05-09 13:38:51 +00:00
  • 1737e6e0ec Added notes about updated translations. nekral-guest 2009-05-09 13:16:17 +00:00
  • 3f649c5504 * man/login.defs.d/ENCRYPT_METHOD.xml, man/login.defs.d/MD5_CRYPT_ENAB.xml, man/login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml: Updated note for PAM enabled versions. These variables are only used for group passwords in this case. nekral-guest 2009-05-09 13:16:10 +00:00
  • 9bdcf8fa15 * man/chpasswd.8.xml: Sorted options alphabetically. nekral-guest 2009-05-09 13:16:03 +00:00
  • 7f9e196903 * NEWS, src/newusers.c, src/Makefile.am: Added support for changing the passwords with PAM. * src/newusers.c: Split the usage string in smaller parts to allow enabling single parts. * man/newusers.8.xml: Indicate the options and configuration variables valid for PAM and non-PAM versions. * man/newusers.8.xml: Added pointer to /etc/pam.d/chpasswd. nekral-guest 2009-05-09 13:15:57 +00:00
  • 8bcb2c1e71 Sort entries alphabetically. nekral-guest 2009-05-09 13:15:51 +00:00
  • 79db09da98 * src/userdel.c: Remove duplicate definitions of exit codes. nekral-guest 2009-05-09 13:15:44 +00:00
  • 8f64190223 Fix typos. nekral-guest 2009-05-09 13:15:38 +00:00
  • ce684e236c Fix typo. nekral-guest 2009-05-09 13:15:32 +00:00
  • d1534c53f7 * libmisc/non_interactive_pam_conv.c, libmisc/pam_pass_non_interractive.c, libmisc/Makefile.am: Renamed. * libmisc/pam_pass_non_interractive.c, lib/prototypes.h: non_interactive_password and non_interactive_pam_conv do not need to be externally visible. * libmisc/pam_pass_non_interractive.c: Added declaration of ni_conv. * libmisc/pam_pass_non_interractive.c: Only compile ifdef USE_PAM. * libmisc/pam_pass_non_interractive.c, lib/prototypes.h: Added do_pam_passwd_non_interractive(). * src/chpasswd.c: Use do_pam_passwd_non_interractive(). nekral-guest 2009-05-09 13:15:25 +00:00
  • 19b672c3a4 * libmisc/pam_pass.c: Removed comment regarding pam_misc. This is checked by configure.in. nekral-guest 2009-05-09 13:15:17 +00:00
  • a979e7d14d * man/login.defs.5.xml: PAM enabled chpasswd do not use any configuration variable from login.defs. nekral-guest 2009-05-09 13:15:10 +00:00
  • 4654150518 * man/passwd.1.xml: Differentiate the files used for PAM and non-PAM versions. nekral-guest 2009-05-09 13:15:03 +00:00
  • 0921785ca2 * man/chpasswd.8.xml: Describe how chpasswd in case of error. * man/chpasswd.8.xml: Describe the PAM enabled chpasswd behavior. * man/chpasswd.8.xml: Differentiate the files and configurations needed for PAM and non PAM versions. nekral-guest 2009-05-09 13:14:56 +00:00
  • b60e8b6b45 * src/login.c: failcount does not need to be signed. nekral-guest 2009-05-09 13:14:50 +00:00
  • 538336a332 * src/Makefile.am: PAM enabled chpasswd now needs to be linked to the PAM library, even if --enable-account-tools-setuid is not used. nekral-guest 2009-05-09 13:14:44 +00:00
  • 5c1279d803 * src/chpasswd.c: Added the line number when an error is reported instead of only the username. * src/chpasswd.c: PAM enabled chpasswd do may change the password database (for the user where the password update succeeded) even if there were a failure for one user. Do not indicate that changes were ignored. nekral-guest 2009-05-09 13:14:37 +00:00
  • 61939960cc * src/passwd.c: Exit immediately when unlocking a password would result in a passwordless account. This avoid printing a success message after the warning. nekral-guest 2009-05-09 13:14:31 +00:00
  • ee7af4d7e2 * src/nologin.c: Include <stdlib.h> to get EXIT_FAILURE. nekral-guest 2009-05-09 13:14:23 +00:00
  • b8355dba15 Russian completed bubulle 2009-05-09 05:57:18 +00:00
  • 5d661e366b Russian translation update bubulle 2009-05-08 17:22:15 +00:00
  • 787fbd3fab Completed German translation bubulle 2009-05-08 17:19:15 +00:00
  • c671c3a738 German translation update bubulle 2009-05-07 17:48:51 +00:00
  • 69fe59a632 * NEWS, configure.in: Fix build failure on non-PAM enabled system when --without-pam is not specified. nekral-guest 2009-05-03 22:46:26 +00:00
  • ba65b06b4a * lib/commonio.c: Ignore teh return values of fclose() and unlink() in case of failure of fopen_set_perms() or create_backup(). * lib/commonio.c: Should the backup file be unlink'ed in case of failure of create_backup()? nekral-guest 2009-04-30 21:53:54 +00:00
  • 4da0573bf7 * lib/getulong.c: Added splint annotations. nekral-guest 2009-04-30 21:44:35 +00:00
  • 4e75bb57bb * src/newgrp.c, src/chfn.c, src/groupmems.c, src/usermod.c, src/userdel.c, src/chpasswd.c, src/grpck.c, src/gpasswd.c, src/groupdel.c, src/chgpasswd.c, src/vipw.c, src/useradd.c, src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/groupadd.c, src/chage.c, src/login.c, src/faillog.c, src/sulogin.c, src/chsh.c, src/pwconv.c: Added splint annotations. * src/userdel.c, src/pwconv.c, src/lastlog.c, src/grpck.c, src/vipw.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/login.c, src/sulogin.c, src/usermod.c: Use return instead of exit at the end of main(). * src/gpasswd.c, src/passwd.c, src/faillog.c: Use the exitcodes.h exit codes. * src/chpasswd.c: Added missing ||. * src/nologin.c: Do not include exitcodes.h. * src/nologin.c: Added brackets. * src/nologin.c: Avoid assignments in comparisons. nekral-guest 2009-04-30 21:39:38 +00:00
  • c527c0196b * libmisc/getgr_nam_gid.c, lib/get_gid.c, lib/get_pid.c, lib/get_uid.c: Added splint annotations. nekral-guest 2009-04-30 21:12:33 +00:00
  • a326ffa435 * lib/exitcodes.h: Define E_SUCCESS as EXIT_SUCCESS. Added FIXMEs. * libmisc/chowntty.c, libmisc/rlogin.c, libmisc/sub.c, src/newusers.c, libmisc/sulog.c, libmisc/system.c, src/logoutd.c, src/groups.c, src/id.c, lib/encrypt.c, libmisc/audit_help.c, libmisc/limits.c: Return EXIT_FAILURE instead of 1, and EXIT_SUCCESS instead of 0. * libmisc/audit_help.c: Replace an fprintf() by fputs(). * libmisc/audit_help.c: Remove documentation of the audit_logger returned values. The function returns void. * libmisc/system.c: Only return status if waitpid succeeded. Return -1 otherwise. nekral-guest 2009-04-30 21:08:49 +00:00
  • 0f448edf19 Fix some splint warnings. Rmove debug code. nekral-guest 2009-04-28 22:01:20 +00:00
  • 9b6b06cd03 Restore string. nekral-guest 2009-04-28 21:46:06 +00:00
  • d7d0b06a41 * NEWS, src/chpasswd.c: Added support for changing the passwords with PAM. * src/chpasswd.c: Split the usage string in smaller parts to allows enabling single parts. * src/chpasswd.c: Do not set a global lock on the password files. This is done by PAM each time a password is updated. nekral-guest 2009-04-28 21:45:38 +00:00
  • 72fa8afa07 * lib/defines.h: Include <utmpx.h> and <utmp.h> to define USER_NAME_MAX_LENGTH. nekral-guest 2009-04-28 21:01:20 +00:00
  • 1e75786616 * src/login.c: Change a snprintf() to strncpy(). There are no format. nekral-guest 2009-04-28 20:59:31 +00:00
  • 1db4402dbb Re-indent, reformat #ifndef blocks. nekral-guest 2009-04-28 20:55:10 +00:00
  • 59e1947950 * src/passwd.c: Harmonize status report at the end of passwd. Prefix the messages with "passwd: ", only indicate a password change if the password was actually changed, and password properties changed otherwise. nekral-guest 2009-04-28 20:46:35 +00:00
  • f8b8aaf5e4 * src/chgpasswd.c, src/newusers.c: There is no need to test for 0 after getopt_long. No options have flag != NULL. nekral-guest 2009-04-28 20:10:18 +00:00
  • 613dc54ac5 * src/newusers.c: There is no need to test for 0 after getopt_long. No options have flag != NULL. nekral-guest 2009-04-28 20:08:30 +00:00
  • a1591f77e8 * libmisc/Makefile.am, lib/prototypes.h, libmisc/non_interactive_pam_conv.c: Added non_interactive_pam_conv() and non_interactive_password. nekral-guest 2009-04-28 20:07:24 +00:00
  • 102253834a * lib/prototypes.h: Replace #if by #ifdef * lib/prototypes.h, libmisc/non_interactive_pam_conv.c: Added non_interactive_pam_conv() and non_interactive_password. nekral-guest 2009-04-28 20:06:46 +00:00
  • dd85562fac * libmisc/utmp.c, src/userdel.c, src/logoutd.c: Replace #if by #ifdef nekral-guest 2009-04-28 20:03:23 +00:00
  • 90cc7f0f1d * src/vipw.c: Harmonize messages. nekral-guest 2009-04-28 19:26:27 +00:00
  • bb00d1630a * src/lastlog.c: Replace atoi() by getulong(). nekral-guest 2009-04-28 19:25:15 +00:00
  • a5188d2f05 * libmisc/failure.h: Replace HAVE_UTMPX_H by USE_UTMPX. nekral-guest 2009-04-28 19:19:33 +00:00
  • 6547cbda6f * libmisc/rlogin.c: Replace atoi() by getulong(). nekral-guest 2009-04-28 19:17:21 +00:00
  • 79919f184c * libmisc/failure.c: Replace HAVE_UTMPX_H by USE_UTMPX. nekral-guest 2009-04-28 19:14:50 +00:00
  • e6b23e1431 * libmisc/chkname.c: Do not include <utmp.h> and <utmpx.h>. There are no more needed. nekral-guest 2009-04-28 19:14:05 +00:00
  • b0c0a94c66 * libmisc/limits.c: Replace strtol() by getlong(). * libmisc/limits.c: Replace HAVE_UTMPX_H by USE_UTMPX. nekral-guest 2009-04-28 19:12:48 +00:00
  • 76b51939aa * man/groupmod.8.xml, man/usermod.8.xml, man/groupadd.8.xml, man/useradd.8.xml: Added note to warn about insecurity in using --password. * man/groupmod.8.xml: Removed not regarding default if --password is not used. This was a cut&paste from groupadd.8.xml. * man/passwd.1.xml: Split some paragraphs. * man/passwd.1.xml: Recommend other encryption methods than DES. nekral-guest 2009-04-27 20:29:43 +00:00
  • 91fc51387c * src/login.c: Move update_utmp() after the PID or session ID changed in order to get more accurate data in UTMP. This also fixes "exec login" when login in installed setuid. nekral-guest 2009-04-27 20:25:23 +00:00
  • 009125484e * src/login.c: Reuse a string and avoid an untranslated message "Login incorrect". nekral-guest 2009-04-27 20:21:48 +00:00
  • 8112a12521 * src/login.c: Replace HAVE_UTMPX_H by USE_UTMPX. * src/login.c: Avoid name clash between global variables and the update_utmp() arguments. nekral-guest 2009-04-27 20:20:37 +00:00
  • 69307a1f2b * src/groupadd.c, lib/commonio.c, lib/groupio.c: Added missing include of <assert.h> nekral-guest 2009-04-27 20:18:00 +00:00
  • e68e07d095 * src/groupadd.c: Added missing include of <assert.h> nekral-guest 2009-04-27 20:16:04 +00:00
  • 851245107d * lib/prototypes.h: Replace HAVE_UTMPX_H by USE_UTMPX. * lib/prototypes.h, libmisc/log.c: Added splint annotations. * libmisc/log.c: Added SYSLOG warning when lseek fails (should not happen). nekral-guest 2009-04-27 20:15:09 +00:00
  • e88d1f5803 * libmisc/mail.c, libmisc/copydir.c: Added missing include of <assert.h> nekral-guest 2009-04-27 20:09:18 +00:00
  • 988f7334ad * libmisc/env.c: Added assertions on the snprintf results. nekral-guest 2009-04-27 20:07:59 +00:00
  • 80fd2969c9 * libmisc/utmp.c: Replace HAVE_UTMPX_H by USE_UTMPX. * libmisc/utmp.c: Removed old comment on HAVE_STRUCT_UTMP_UT_ID and UTMPX support. nekral-guest 2009-04-27 20:06:25 +00:00