]> granicus.if.org Git - shadow/log
shadow
16 years ago * libmisc/copydir.c: Call utimes() after closing the file.
nekral-guest [Sun, 7 Sep 2008 00:51:17 +0000 (00:51 +0000)]
* libmisc/copydir.c: Call utimes() after closing the file.

16 years ago * libmisc/copydir.c, configure.in: Check for the presence of
nekral-guest [Sun, 7 Sep 2008 00:05:38 +0000 (00:05 +0000)]
* libmisc/copydir.c, configure.in: Check for the presence of
st_mtim and st_mtimensec, as for st_atim and st_atimensec.

16 years agoAdditional PAM cleanup:
nekral-guest [Sat, 6 Sep 2008 23:46:44 +0000 (23:46 +0000)]
Additional PAM cleanup:
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
src/groupmems.c, src/usermod.c, src/groupdel.c, src/chgpasswd.c,
src/useradd.c, src/groupmod.c, src/groupadd.c, src/chage.c,
src/chsh.c: If the username cannot be determined, report it as
such (not a PAM authentication failure).

16 years agoSupport for blowfish was requested twice.
nekral-guest [Sat, 6 Sep 2008 22:52:35 +0000 (22:52 +0000)]
Support for blowfish was requested twice.
Add link to a patch for libxcrypt.

16 years ago * src/gpasswd.c: Document the long options in the usage.
nekral-guest [Sat, 6 Sep 2008 22:20:19 +0000 (22:20 +0000)]
* src/gpasswd.c: Document the long options in the usage.

16 years agoRemove done item:
nekral-guest [Sat, 6 Sep 2008 21:53:12 +0000 (21:53 +0000)]
Remove done item:
- groupmems:
  - need some work on add PAM and i18n support.
- userdel:
  - add lookop and remove per user group.

16 years agoRemove done item:
nekral-guest [Sat, 6 Sep 2008 21:50:15 +0000 (21:50 +0000)]
Remove done item:
PAM: add support for customization of the PAM support (i.e.
support the Debian PAM configuration)

16 years ago * NEWS: Added configure --enable-account-tools-setuid (default) /
nekral-guest [Sat, 6 Sep 2008 21:42:26 +0000 (21:42 +0000)]
* NEWS: Added configure --enable-account-tools-setuid (default) /
--disable-account-tools-setuid options. This permits to disable
the PAM authentication of the caller for chage, chgpasswd,
chpasswd, groupadd, groupdel, groupmod, newusers, useradd,
userdel, and usermod.  This authentication is not necessary when
these tools are not installed setuid root.

16 years ago * configure.in: Added option --enable-account-tools-setuid to
nekral-guest [Sat, 6 Sep 2008 21:35:37 +0000 (21:35 +0000)]
* configure.in: Added option --enable-account-tools-setuid to
enable/disable the usage of PAM to authenticate the callers of
account management tools: chage, chgpasswd, chpasswd, groupadd,
groupdel, groupmod, useradd, userdel, usermod.
* src/Makefile.am: Do not link the above tools with libpam if
account-tools-setuid is disabled.
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/usermod.c,
src/groupdel.c, src/chgpasswd.c, src/useradd.c, src/groupmod.c,
src/groupadd.c, src/chage.c: Implement ACCT_TOOLS_SETUID
(--enable-account-tools-setuid).
* etc/pam.d/Makefile.am: Install the pam service file for the
above tools only when needed.
* src/useradd.c, src/userdel.c, src/usermod.c: It is no more
needed to initialize retval to PAM_SUCCESS.

16 years ago * libmisc/tz.c: tz() is only used when USE_PAM is not defined.
nekral-guest [Sat, 6 Sep 2008 16:43:21 +0000 (16:43 +0000)]
* libmisc/tz.c: tz() is only used when USE_PAM is not defined.
* lib/prototypes.h: Indicate functions whose presence depends on
the USE_PAM flag.

16 years ago * libmisc/tz.c: tz() is only used when USE_PAM is not defined.
nekral-guest [Sat, 6 Sep 2008 16:42:41 +0000 (16:42 +0000)]
* libmisc/tz.c: tz() is only used when USE_PAM is not defined.
* lib/prototypes.h: Indicate functions whose presence depends on
the USE_PAM flag.

16 years ago * src/groupmems.c: Call open_files() and close_files().
nekral-guest [Sat, 6 Sep 2008 16:27:21 +0000 (16:27 +0000)]
* src/groupmems.c: Call open_files() and close_files().
* src/groupmems.c: Always call check_perms(), which takes care of
checking if --list is used.

16 years agoFix typo. s/Prog/%s/ in the format string.
nekral-guest [Sat, 6 Sep 2008 16:00:00 +0000 (16:00 +0000)]
Fix typo. s/Prog/%s/ in the format string.

16 years ago * libmisc/obscure.c: Compare characters to '\0', not NULL.
nekral-guest [Sat, 6 Sep 2008 15:59:28 +0000 (15:59 +0000)]
* libmisc/obscure.c: Compare characters to '\0', not NULL.

16 years ago * lib/defines.h: Do not include <config.h>. This complicate
nekral-guest [Sat, 6 Sep 2008 15:58:23 +0000 (15:58 +0000)]
* lib/defines.h: Do not include <config.h>. This complicate
undefining some configuration macros when the file is included
multiple times.
* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
Include <config.h> from teh compiled C file, not the included
getXXbyYY.c.

16 years agoRemove DONE item.
nekral-guest [Sat, 6 Sep 2008 14:00:11 +0000 (14:00 +0000)]
Remove DONE item.

16 years ago * src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
nekral-guest [Sat, 6 Sep 2008 13:28:02 +0000 (13:28 +0000)]
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
src/groupmems.c, src/usermod.c, src/groupdel.c, src/chgpasswd.c,
src/useradd.c, src/groupmod.c, src/groupadd.c, src/chage.c,
src/chsh.c: Simplify the PAM error handling. Do not keep the pamh
handle, but terminate the PAM transaction as soon as possible if
there are no PAM session opened.

16 years ago * src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
nekral-guest [Sat, 6 Sep 2008 12:51:53 +0000 (12:51 +0000)]
* src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
src/expiry.c, src/groupdel.c, src/chgpasswd.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/grpconv.c,
src/groups.c, src/grpunconv.c, src/chsh.c: Prog is now global (not
static to the file) so that it can be used by the helper functions
of libmisc.
* lib/prototypes.h: Added extern char *Prog.
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Indicate the
program name with the warning.

16 years ago * configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,
nekral-guest [Thu, 4 Sep 2008 22:34:20 +0000 (22:34 +0000)]
* configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,
AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in <libaudit.h>.

16 years ago * src/useradd.c: Fix comment of lflg: it is also used for faillog.
nekral-guest [Thu, 4 Sep 2008 20:46:00 +0000 (20:46 +0000)]
* src/useradd.c: Fix comment of lflg: it is also used for faillog.

16 years agoUpdated TODO list.
nekral-guest [Thu, 4 Sep 2008 20:41:18 +0000 (20:41 +0000)]
Updated TODO list.

16 years ago * NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long
nekral-guest [Thu, 4 Sep 2008 20:20:20 +0000 (20:20 +0000)]
* NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long
options.

16 years ago * lib/prototypes.h, libmisc/audit_help.c: Define new type
nekral-guest [Thu, 4 Sep 2008 19:36:27 +0000 (19:36 +0000)]
* lib/prototypes.h, libmisc/audit_help.c: Define new type
shadow_audit_result for the result argument of audit_logger().
This permits stronger type checking and a better readability of
the results (SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS constants).
* src/groupadd.c, src/groupdel.c, src/useradd.c, src/userdel.c:
Use the SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS results instead
of 0 or 1 in audit_logger().

16 years ago * lib/prototypes.h, libmisc/audit_help.c: Define new type
nekral-guest [Thu, 4 Sep 2008 19:35:48 +0000 (19:35 +0000)]
* lib/prototypes.h, libmisc/audit_help.c: Define new type
shadow_audit_result for the result argument of audit_logger().
This permits stronger type checking and a better readability of
the results (SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS constants).
* src/groupadd.c, src/groupdel.c, src/useradd.c, src/userdel.c:
Use the SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS results instead
of 0 or 1 in audit_logger().

16 years ago * src/userdel.c: Log failures to remove the mailbox to syslog and
nekral-guest [Wed, 3 Sep 2008 21:22:04 +0000 (21:22 +0000)]
* src/userdel.c: Log failures to remove the mailbox to syslog and
audit.
* src/userdel.c: Log successful removal of home directory to audit
only in case of success.
* src/userdel.c: Move the audit log of failure to remove the home
directory before the call to function that may exit.
* src/userdel.c: Document that errors is only used to count errors
during the removal of the home directory.

16 years ago * src/useradd.c: Log errors to syslog in grp_update() since
nekral-guest [Wed, 3 Sep 2008 21:02:32 +0000 (21:02 +0000)]
* src/useradd.c: Log errors to syslog in grp_update() since
changes have started to be reported to syslog.
* src/userdel.c: Fix some result parameters sent to
audit_logger().

* NEWS: Following changes from a patch contributed by Steve Grubb
<sgrubb@redhat.com>
* src/groupadd.c: Log to audit with type AUDIT_ADD_GROUP instead
of AUDIT_USER_CHAUTHTOK.
* src/groupdel.c: Log to audit with type AUDIT_DEL_GROUP instead
of AUDIT_USER_CHAUTHTOK.
* src/useradd.c: Log to audit with type AUDIT_ADD_USER /
AUDIT_ADD_GROUP / AUDIT_USYS_CONFIG instead of
AUDIT_USER_CHAUTHTOK.
* src/useradd.c: Add missing logs to audit.
* src/userdel.c: Log to audit with type AUDIT_DEL_USER /
AUDIT_DEL_GROUP instead of AUDIT_USER_CHAUTHTOK.
* src/userdel.c: Add missing logs to audit.

16 years agoAdd Tobias' name.
nekral-guest [Tue, 2 Sep 2008 18:49:56 +0000 (18:49 +0000)]
Add Tobias' name.

16 years ago * src/groupmems.c: Remove duplicated gr_open().
nekral-guest [Sun, 31 Aug 2008 17:41:03 +0000 (17:41 +0000)]
* src/groupmems.c: Remove duplicated gr_open().

16 years ago * man/useradd.8.xml: Document that -o is only valid with -u
nekral-guest [Sun, 31 Aug 2008 17:31:08 +0000 (17:31 +0000)]
* man/useradd.8.xml: Document that -o is only valid with -u

16 years ago * man/useradd.8.xml: Document the /etc/default/useradd variables.
nekral-guest [Sun, 31 Aug 2008 17:31:00 +0000 (17:31 +0000)]
* man/useradd.8.xml: Document the /etc/default/useradd variables.
* man/useradd.8.xml: Fix the documentation of the GROUP variable
(and -g/--gid option).

16 years agoAdded TODO items for useradd.
nekral-guest [Sun, 31 Aug 2008 17:30:52 +0000 (17:30 +0000)]
Added TODO items for useradd.

16 years ago * shadow.spec.in: Fix the source (new FTP).
nekral-guest [Sun, 31 Aug 2008 17:30:45 +0000 (17:30 +0000)]
* shadow.spec.in: Fix the source (new FTP).

16 years agoAdded TODO items.
nekral-guest [Sun, 31 Aug 2008 17:30:37 +0000 (17:30 +0000)]
Added TODO items.
Removed done items.

16 years ago * src/su.c: Add brackets and parenthesis.
nekral-guest [Sun, 31 Aug 2008 17:30:30 +0000 (17:30 +0000)]
* src/su.c: Add brackets and parenthesis.
* src/su.c: Avoid implicit conversion of pointers to booleans.

16 years ago * libmisc/list.c: Added assertions for non NULL parameters.
nekral-guest [Sun, 31 Aug 2008 17:30:21 +0000 (17:30 +0000)]
* libmisc/list.c: Added assertions for non NULL parameters.

16 years ago * libmisc/list.c: Remove historical comment.
nekral-guest [Sun, 31 Aug 2008 17:30:12 +0000 (17:30 +0000)]
* libmisc/list.c: Remove historical comment.

16 years ago * src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
nekral-guest [Sun, 31 Aug 2008 17:30:00 +0000 (17:30 +0000)]
* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
provided.

16 years ago * src/passwd.c: Add brackets and parenthesis.
nekral-guest [Sun, 31 Aug 2008 17:29:51 +0000 (17:29 +0000)]
* src/passwd.c: Add brackets and parenthesis.
* src/passwd.c: Avoid implicit conversion of pointers to booleans.
* src/passwd.c: Avoid assignments in comparisons.

16 years agoFinish the support for shadow groups.
nekral-guest [Sun, 31 Aug 2008 17:29:41 +0000 (17:29 +0000)]
Finish the support for shadow groups.

16 years ago * NEWS, src/groupmems.c, man/groupmems.8.xml: Added support for
nekral-guest [Sun, 31 Aug 2008 17:29:34 +0000 (17:29 +0000)]
* NEWS, src/groupmems.c, man/groupmems.8.xml: Added support for
shadow groups.
* src/groupmems.c: Use fail_exit() instead of exit().

16 years agore-indent.
nekral-guest [Sun, 31 Aug 2008 17:29:24 +0000 (17:29 +0000)]
re-indent.

16 years ago * src/groupmems.c: Avoid mixed declarations and code.
nekral-guest [Sun, 31 Aug 2008 17:29:17 +0000 (17:29 +0000)]
* src/groupmems.c: Avoid mixed declarations and code.

16 years ago * src/groupmems.c: The grp structure returned by gr_locate is a
nekral-guest [Sun, 31 Aug 2008 17:29:08 +0000 (17:29 +0000)]
* src/groupmems.c: The grp structure returned by gr_locate is a
const. Duplicate this structure before working on it.
* src/groupmems.c: Do not fail and do not display warnings if a
close failure happens with the --list option. (Files are opened
read-only).

16 years ago * src/gpasswd.c: Replace the 'valid' variable by is_valid to avoid
nekral-guest [Sun, 31 Aug 2008 17:28:59 +0000 (17:28 +0000)]
* src/gpasswd.c: Replace the 'valid' variable by is_valid to avoid
clashes with the valid() function.

16 years ago * libmisc/obscure.c: Add brackets and parenthesis.
nekral-guest [Sun, 31 Aug 2008 17:28:49 +0000 (17:28 +0000)]
* libmisc/obscure.c: Add brackets and parenthesis.
* libmisc/obscure.c: Avoid implicit conversion of pointers / chars to
booleans.
* libmisc/obscure.c: Simplify the list of if.

16 years ago * src/passwd.c: Fix a typo in the Usage string.
nekral-guest [Sun, 31 Aug 2008 17:28:39 +0000 (17:28 +0000)]
* src/passwd.c: Fix a typo in the Usage string.

16 years ago * src/logoutd.c: Fail if
nekral-guest [Sun, 31 Aug 2008 17:28:30 +0000 (17:28 +0000)]
* src/logoutd.c: Fail if
unexpected parameters are provided.

16 years ago * src/grpunconv.c: Fail if unexpected parameters
nekral-guest [Sun, 31 Aug 2008 17:28:21 +0000 (17:28 +0000)]
* src/grpunconv.c: Fail if unexpected parameters
are provided.
* src/grpunconv.c: Indicate that argc is not used
in the no SHADOWGRP version.

16 years ago * src/grpconv.c, src/groups.c: Name the parameters in the
nekral-guest [Sun, 31 Aug 2008 17:28:12 +0000 (17:28 +0000)]
* src/grpconv.c, src/groups.c: Name the parameters in the
prototypes of the static functions.
* src/grpconv.c: Fail if unexpected parameters are provided.
* src/grpconv.c: Indicate that argc is not used in the no
SHADOWGRP version.

16 years agoName the parameters in the prototypes of the static functions.
nekral-guest [Sun, 31 Aug 2008 17:28:03 +0000 (17:28 +0000)]
Name the parameters in the prototypes of the static functions.

16 years ago * src/chgpasswd.c, src/chpasswd.c: Removed variable ok, which is
nekral-guest [Sun, 31 Aug 2008 17:27:56 +0000 (17:27 +0000)]
* src/chgpasswd.c, src/chpasswd.c: Removed variable ok, which is
no more used.

16 years ago * src/chage.c: Fix the format for long integers (from %ul to %lu).
nekral-guest [Sun, 31 Aug 2008 17:27:47 +0000 (17:27 +0000)]
* src/chage.c: Fix the format for long integers (from %ul to %lu).

16 years ago * libmisc/utmp.c: Mark the line and host arguments of setutmp() as
nekral-guest [Sun, 31 Aug 2008 17:27:37 +0000 (17:27 +0000)]
* libmisc/utmp.c: Mark the line and host arguments of setutmp() as
not used in the __linux__ version.

16 years ago * lib/nscd.c: Avoid redefinition of _GNU_SOURCE.
nekral-guest [Sun, 31 Aug 2008 17:27:26 +0000 (17:27 +0000)]
* lib/nscd.c: Avoid redefinition of _GNU_SOURCE.

16 years ago * configure.in, src/login.c: Do not use HAVE_PAM_FAIL_DELAY, but
nekral-guest [Sun, 31 Aug 2008 17:27:16 +0000 (17:27 +0000)]
* configure.in, src/login.c: Do not use HAVE_PAM_FAIL_DELAY, but
HAS_PAM_FAIL_DELAY, to avoid a redefinition with Linux PAM.

16 years ago * configure.in: Indentation fix.
nekral-guest [Sun, 31 Aug 2008 17:27:06 +0000 (17:27 +0000)]
* configure.in: Indentation fix.

16 years agoRevert " * src/groupmems.c: Added function open_°files and close_files to"
nekral-guest [Sun, 31 Aug 2008 17:26:55 +0000 (17:26 +0000)]
Revert " * src/groupmems.c: Added function open_°files and close_files to"

This reverts commit eb3860eb3647d1b092ffe9baa1eb2f73a27a0d87.

16 years ago * src/groupmems.c: Added function open_°files and close_files to
nekral-guest [Sat, 30 Aug 2008 18:34:43 +0000 (18:34 +0000)]
* src/groupmems.c: Added function open_°files and close_files to
ease the support of gshadow.
* src/groupmems.c: Always call check_perms(). This function now
succeed when the requested action is to list the members.

16 years ago * src/groupmems.c: Added functions add_user(), remove_user(), and
nekral-guest [Sat, 30 Aug 2008 18:34:24 +0000 (18:34 +0000)]
* src/groupmems.c: Added functions add_user(), remove_user(), and
purge_members() to ease the support of gshadow.

16 years ago * src/expiry.c: Use Basename for Prog.
nekral-guest [Sat, 30 Aug 2008 18:34:04 +0000 (18:34 +0000)]
* src/expiry.c: Use Basename for Prog.
* src/expiry.c: Added missing OPENLOG.

16 years agoAdded brackets.
nekral-guest [Sat, 30 Aug 2008 18:33:37 +0000 (18:33 +0000)]
Added brackets.

16 years ago * lib/nscd.c: Make sure the file is not empty when configured
nekral-guest [Sat, 30 Aug 2008 18:33:13 +0000 (18:33 +0000)]
* lib/nscd.c: Make sure the file is not empty when configured
without nscd support.

16 years ago * configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is
nekral-guest [Sat, 30 Aug 2008 18:32:43 +0000 (18:32 +0000)]
* configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is
not used in any Makefile.am).
* configure.in: Make sure posix_spawn is present when configured
with nscd support.

16 years ago * lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and
nekral-guest [Sat, 30 Aug 2008 18:32:19 +0000 (18:32 +0000)]
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and
parenthesis.
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Avoid assignments
in comparisons.

16 years ago * libmisc/mail.c: Added brackets and parenthesis.
nekral-guest [Sat, 30 Aug 2008 18:31:56 +0000 (18:31 +0000)]
* libmisc/mail.c: Added brackets and parenthesis.
* libmisc/mail.c: Avoid assignments in comparisons.

16 years agoAdded missing changes from last commit.
nekral-guest [Sat, 30 Aug 2008 18:31:35 +0000 (18:31 +0000)]
Added missing changes from last commit.

16 years ago * configure.in: Check if the stat structure has a st_atim or
nekral-guest [Sat, 30 Aug 2008 18:31:21 +0000 (18:31 +0000)]
* configure.in: Check if the stat structure has a st_atim or
st_atimensec field.
* libmisc/copydir.c: Conditionally use the stat's st_atim and
st_atimensec fields.

16 years ago * lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
nekral-guest [Sat, 30 Aug 2008 18:30:58 +0000 (18:30 +0000)]
* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
for the definition of uid_t and gid_t.
* lib/pwmem.c: do not include <pwd.h>, "pwio.h" is sufficient
here.

16 years ago * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to
nekral-guest [Sat, 30 Aug 2008 18:30:36 +0000 (18:30 +0000)]
* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to
support systems without nscd.

16 years agoAdded missing include file (assert.h).
nekral-guest [Sat, 30 Aug 2008 18:30:15 +0000 (18:30 +0000)]
Added missing include file (assert.h).

16 years ago * NEWS: Added support for uclibc.
nekral-guest [Sat, 30 Aug 2008 18:29:55 +0000 (18:29 +0000)]
* NEWS: Added support for uclibc.
* configure.in, libmisc/copydir.c: futimes() and lutimes() are not
standard. Check if they are implemented before using them. Do not
set the time of links if lutimes() does not exist, and use
utimes() as a replacement for futimes().

16 years ago * src/groupmems.c: Handle the options alphabetically.
nekral-guest [Sat, 30 Aug 2008 18:29:31 +0000 (18:29 +0000)]
* src/groupmems.c: Handle the options alphabetically.

16 years ago * src/groupmems.c: When removing an user, check if deluser is on
nekral-guest [Sat, 30 Aug 2008 18:29:08 +0000 (18:29 +0000)]
* src/groupmems.c: When removing an user, check if deluser is on
the list, not adduser. This fixes a segmentation fault for every
call of groupmems -d.
* libmisc/list.c: Add assertions to help identifying these issues.
* libmisc/list.c: Avoid implicit conversion of pointers to
booleans.

16 years ago * NEWS, src/groupmems.c: Use the "groupmems" PAM service name
nekral-guest [Sat, 30 Aug 2008 18:28:45 +0000 (18:28 +0000)]
* NEWS, src/groupmems.c: Use the "groupmems" PAM service name
instead of "groupmod".

16 years ago * src/chfn.c: Merge some translated messages.
nekral-guest [Sat, 30 Aug 2008 18:28:24 +0000 (18:28 +0000)]
* src/chfn.c: Merge some translated messages.
* src/groupmems.c, src/groupadd.c, src/gpasswd.c, src/chsh.c,
src/chfn.c: Harmonize *_update() failure messages.
* src/groupmems.c: Harmonize gr_close() failure messages.
* src/newgrp.c: Harmonize "unknown GID" messages.
* src/newusers.c: Move the pwd declaration to a inner block scope.

16 years ago * src/useradd.c: Harmonize some error messages.
nekral-guest [Sat, 30 Aug 2008 18:27:59 +0000 (18:27 +0000)]
* src/useradd.c: Harmonize some error messages.
* src/userdel.c: Add log to syslog when the mail file could not be
removed.
* src/userdel.c: Give more context an error message (merge with
perror()).
* src/usermod.c: Harmonize some error messages.

16 years ago * src/groupmems.c: Check the return value of gr_update().
nekral-guest [Sat, 30 Aug 2008 18:27:34 +0000 (18:27 +0000)]
* src/groupmems.c: Check the return value of gr_update().
* src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/passwd.c, src/pwck.c, src/pwconv.c, src/pwunconv.c,
src/useradd.c, src/userdel.c, src/usermod.c: Harmonize the error
message sent to stderr in case of *_update () failure.
* src/chage.c, src/chsh.c, src/groupadd.c, src/passwd.c: Do not
log to syslog when pw_update() or spw_update() fail.
* src/newusers.c: Do not log specific error message to stderr when
sgr_update() fails.
* src/pwconv.c: Remove duplicated definition of Prog.

16 years ago * src/chfn.c, src/chsh.c, src/expiry.c, src/gpasswd.c,
nekral-guest [Sat, 30 Aug 2008 18:27:07 +0000 (18:27 +0000)]
* src/chfn.c, src/chsh.c, src/expiry.c, src/gpasswd.c,
src/newgrp.c, src/passwd.c, src/su.c: Use the same stderr and
syslog warnings when the username cannot be determined.
* src/newgrp.c: Reuse the same stderr message for groups which do
not exist in the system.

16 years ago * src/usermod.c: Log errors while *_close to syslog.
nekral-guest [Fri, 22 Aug 2008 02:34:04 +0000 (02:34 +0000)]
* src/usermod.c: Log errors while *_close to syslog.
* src/usermod.c: Added missing }

16 years ago * src/grpconv.c: Use Basename for the definition of Prog. Prog
nekral-guest [Fri, 22 Aug 2008 02:33:08 +0000 (02:33 +0000)]
* src/grpconv.c: Use Basename for the definition of Prog. Prog
needs a file visibility.
* src/grpunconv.c: Likewise.

16 years agoFix typos.
nekral-guest [Fri, 22 Aug 2008 02:31:55 +0000 (02:31 +0000)]
Fix typos.

16 years agoFix a typo (sgr_dbmane -> sgr_dbname)
nekral-guest [Fri, 22 Aug 2008 02:31:15 +0000 (02:31 +0000)]
Fix a typo (sgr_dbmane -> sgr_dbname)

16 years ago * src/chfn.c: Do not exit on pw_unlock failures.
nekral-guest [Fri, 22 Aug 2008 02:30:33 +0000 (02:30 +0000)]
* src/chfn.c: Do not exit on pw_unlock failures.
* src/grpconv.c, src/grpunconv.c, src/pwconv.c, src/pwunconv.c,
src/vipw.c: Open syslog with the right identification name.
* src/vipw.c: Log unlock errors to syslog.
* src/vipw.c: Log edits to syslog.
* src/chage.c, src/chfn.c, src/chsh.c, src/gpasswd.c,
src/groupadd.c, src/groupdel.c, src/groupmod.c, src/grpconv.c,
src/grpunconv.c, src/passwd.c, src/pwck.c, src/pwunconv.c,
src/useradd.c, src/usermod.c: Harmonize the syslog levels. Failure
to close or unlock are errors. Failure to open files are warnings.

16 years ago * src/newusers.c: Open syslog with the right identification name.
nekral-guest [Fri, 22 Aug 2008 02:29:31 +0000 (02:29 +0000)]
* src/newusers.c: Open syslog with the right identification name.
* src/newusers.c: Mark the files as locked only if they are really
locked (i.e. if shadow is not enabled, the files are not locked).

16 years ago * NEWS, src/gpasswd.c: Use getopt_long instead of getopt. Added
nekral-guest [Fri, 22 Aug 2008 02:28:15 +0000 (02:28 +0000)]
* NEWS, src/gpasswd.c: Use getopt_long instead of getopt. Added
support for long options --add (-a), --delete (-d),
--remove-password (-r), --restrict (-R), --administrators (-A),
and --members (-M)
* man/gpasswd.1.xml: Document the new long options.
* src/gpasswd.c: The sgrp structure is only used if SHADOWGRP is
defined.

16 years agoRemove done items.
nekral-guest [Fri, 22 Aug 2008 02:27:26 +0000 (02:27 +0000)]
Remove done items.

16 years ago * src/grpck.c: Added function fail_exit(). Check failure to unlock
nekral-guest [Fri, 22 Aug 2008 02:26:46 +0000 (02:26 +0000)]
* src/grpck.c: Added function fail_exit(). Check failure to unlock
files. Report errors to stderr and syslog, but continue.
* src/grpconv.c: Check failure to unlock files. Report errors to
stderr and syslog, but continue.

16 years ago * src/passwd.c: Check failure to unlock files. Report errors to
nekral-guest [Fri, 22 Aug 2008 02:24:29 +0000 (02:24 +0000)]
* src/passwd.c: Check failure to unlock files. Report errors to
stderr and syslog, but continue.

16 years ago * src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,
nekral-guest [Fri, 22 Aug 2008 02:22:34 +0000 (02:22 +0000)]
* src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,
src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c,
src/grpconv.c, src/grpunconv.c, src/newusers.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c: Harmonize the name
of the variables keeping the lock status, to match the shadow
library prefixes.

16 years ago * src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
nekral-guest [Fri, 22 Aug 2008 02:20:53 +0000 (02:20 +0000)]
* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c: In
case of a lock failure, indicate to the user that she can try
again later. Do not log to syslog.

16 years agoSort the NEWS entry alphabetically (per program name).
nekral-guest [Fri, 22 Aug 2008 02:18:48 +0000 (02:18 +0000)]
Sort the NEWS entry alphabetically (per program name).

16 years ago * NEWS, src/passwd.c: For compatibility with other passwd version,
nekral-guest [Fri, 22 Aug 2008 02:16:21 +0000 (02:16 +0000)]
* NEWS, src/passwd.c: For compatibility with other passwd version,
the --lock an --unlock options do not lock or unlock the user
account anymore.  They only lock or unlock the user's password.
* man/passwd.1.xml: Document above change. Document how an account
can be locked and what a password lock means.

16 years ago * man/groupadd.8.xml: Fix the regular expression for group policy.
nekral-guest [Fri, 15 Aug 2008 15:25:53 +0000 (15:25 +0000)]
* man/groupadd.8.xml: Fix the regular expression for group policy.
The final $ character is optional.
* man/groupadd.8.xml: Likewise.
* man/groupadd.8.xml: Indicate the maximum size of usernames.

16 years ago * man/po/pl.po: Fix typo in the Polish translation (see
nekral-guest [Fri, 15 Aug 2008 15:25:23 +0000 (15:25 +0000)]
* man/po/pl.po: Fix typo in the Polish translation (see
http://bugs.debian.org/491460)

16 years ago * man/pl/Makefile.am: Do not build the Polish translation of
nekral-guest [Wed, 13 Aug 2008 06:55:55 +0000 (06:55 +0000)]
* man/pl/Makefile.am: Do not build the Polish translation of
login.1 and su.1 (not enough translated). See
http://bugs.debian.org/491460

16 years ago * man/shadow.5.xml: Fix typo. The password must be changed before
nekral-guest [Wed, 13 Aug 2008 06:55:37 +0000 (06:55 +0000)]
* man/shadow.5.xml: Fix typo. The password must be changed before
the maximum number of days, not after.

16 years agoUpdated TODO file.
nekral-guest [Sat, 9 Aug 2008 23:34:04 +0000 (23:34 +0000)]
Updated TODO file.

Added entries:
  * all: report nscd_flush_cache failures?
  * groupmems: Add support for gshadow
Removed entries:
  * groupmems: check reason for isgroup (function already removed)

16 years ago * src/groupmems.c: Harmonize the unlock failure messages.
nekral-guest [Sat, 9 Aug 2008 23:33:46 +0000 (23:33 +0000)]
* src/groupmems.c: Harmonize the unlock failure messages.

16 years ago * src/pwck.c: Added fail_exit().
nekral-guest [Sat, 9 Aug 2008 23:33:26 +0000 (23:33 +0000)]
* src/pwck.c: Added fail_exit().
* src/pwck.c: Report failure to unlock files to stderr and
syslog.
* src/pwck.c: Report failure to sort to stderr, and exit with
E_CANTSORT.
* man/pwck.8.xml: Document return code 6 (E_CANTSORT).

16 years ago * src/vipw.c: Report failures to remove files to stderr.
nekral-guest [Sat, 9 Aug 2008 23:31:36 +0000 (23:31 +0000)]
* src/vipw.c: Report failures to remove files to stderr.
* src/vipw.c: Report failures to unlock files to stderr.