]> granicus.if.org Git - shadow/log
shadow
15 years ago- newusers should use the CREATE_HOME variable (and new options are needed)
nekral-guest [Wed, 21 Jan 2009 14:49:42 +0000 (14:49 +0000)]
- newusers should use the CREATE_HOME variable (and new options are needed)

- usermod
  - the mode of new home directories should be set according to the
    original mode. Does copy_tree does this?

15 years ago * etc/login.defs: Improve the documentation of UMASK.
nekral-guest [Mon, 19 Jan 2009 10:21:50 +0000 (10:21 +0000)]
* etc/login.defs: Improve the documentation of UMASK.

15 years ago * man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
nekral-guest [Mon, 19 Jan 2009 10:00:53 +0000 (10:00 +0000)]
* man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
man/login.defs.5.xml: Document the CREATE_HOME variable.

15 years ago * man/limits.5.xml: Remove space before an end of tag.
nekral-guest [Mon, 19 Jan 2009 09:51:53 +0000 (09:51 +0000)]
* man/limits.5.xml: Remove space before an end of tag.

15 years ago * man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
nekral-guest [Mon, 19 Jan 2009 09:51:00 +0000 (09:51 +0000)]
* man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
limitations.

15 years ago * NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
nekral-guest [Tue, 6 Jan 2009 20:13:31 +0000 (20:13 +0000)]
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
is called with the -l option.

15 years ago * libmisc/chkname.c: Use a bool when possible instead of integers.
nekral-guest [Tue, 23 Dec 2008 22:42:22 +0000 (22:42 +0000)]
* libmisc/chkname.c: Use a bool when possible instead of integers.
* libmisc/chkname.c: Add brackets and parenthesis.

15 years ago * man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
nekral-guest [Tue, 23 Dec 2008 22:36:44 +0000 (22:36 +0000)]
* man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
real group name length limit in the documentation.

15 years ago * src/Makefile.am: Only link with the needed library. When
nekral-guest [Tue, 23 Dec 2008 00:44:29 +0000 (00:44 +0000)]
* src/Makefile.am: Only link with the needed library. When
compiled with PAM support, chfn, chsh, login, newgrp, passwd, and
su do not need the libcrypt library.

15 years ago * libmisc/cleanup_group.c: Fix compilation when compiled without
nekral-guest [Tue, 23 Dec 2008 00:39:54 +0000 (00:39 +0000)]
* libmisc/cleanup_group.c: Fix compilation when compiled without
shadow group support.

15 years ago * src/groupdel.c: Remove the fail_exit () declaration.
nekral-guest [Mon, 22 Dec 2008 23:23:14 +0000 (23:23 +0000)]
* src/groupdel.c: Remove the fail_exit () declaration.

15 years agoFix typo.
nekral-guest [Mon, 22 Dec 2008 22:13:50 +0000 (22:13 +0000)]
Fix typo.

15 years ago * src/gpasswd.c: Fix the support for usernames with arbitrary
nekral-guest [Mon, 22 Dec 2008 22:13:23 +0000 (22:13 +0000)]
* src/gpasswd.c: Fix the support for usernames with arbitrary
length.

15 years ago * libmisc/chkname.c: Remove outdated comments.
nekral-guest [Mon, 22 Dec 2008 22:08:13 +0000 (22:08 +0000)]
* libmisc/chkname.c: Remove outdated comments.

15 years ago * src/groupdel.c: Re-indent.
nekral-guest [Mon, 22 Dec 2008 22:07:12 +0000 (22:07 +0000)]
* src/groupdel.c: Re-indent.

15 years ago * src/groupmod.c: Re-indent.
nekral-guest [Mon, 22 Dec 2008 22:06:27 +0000 (22:06 +0000)]
* src/groupmod.c: Re-indent.
* src/groupmod.c: Do not add the command synopsis to the main ()
documentation. This avoids outdated information.

15 years ago * src/groupadd.c: Re-indent.
nekral-guest [Mon, 22 Dec 2008 22:03:34 +0000 (22:03 +0000)]
* src/groupadd.c: Re-indent.

15 years ago * libmisc/audit_help.c: Added audit_logger_message() to log
nekral-guest [Mon, 22 Dec 2008 21:52:43 +0000 (21:52 +0000)]
* libmisc/audit_help.c: Added audit_logger_message() to log
messages not related to an account.
* lib/prototypes.h, libmisc/cleanup.c, libmisc/cleanup_group.c,
libmisc/cleanup_user.c, libmisc/Makefile.am: Added stack of
cleanup functions to be executed on exit.
* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c: Only
report success to audit and syslog when the changes are committed
to the system. Do not log failure for on-memory changes to audit
or syslog. Make sure failures and inconsistencies will be reported
in case of unexpected failures (e.g. malloc failures). Only
specify an audit message if it is not implicitly implied by the
type argument. Removed fail_exit (replaced by atexit(do_cleanups)).

15 years ago * NEWS, src/gpasswd.c: Added support usernames with arbitrary
nekral-guest [Mon, 15 Dec 2008 21:54:53 +0000 (21:54 +0000)]
* NEWS, src/gpasswd.c: Added support usernames with arbitrary
length.

15 years ago * configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.
nekral-guest [Sun, 30 Nov 2008 01:32:38 +0000 (01:32 +0000)]
* configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.

15 years ago * NEWS, configure.in, libmisc/chkname.c: make group max length a
nekral-guest [Sun, 30 Nov 2008 01:29:40 +0000 (01:29 +0000)]
* NEWS, configure.in, libmisc/chkname.c: make group max length a
configure option.  The configure behavior encoded is:
<no option> -> default of 16 (like today);
--with-group-name-max-length -> default of 16;
--without-group-name-max-length -> no max length;
--with-group-name-max-length=n > max is set to n.

15 years ago * src/su.c: (!USE_PAM) Provide visible information indicating that
nekral-guest [Sun, 23 Nov 2008 12:10:21 +0000 (12:10 +0000)]
* src/su.c: (!USE_PAM) Provide visible information indicating that
su was denied.

15 years ago * man/ja/login.1: Fix the path of the utmp and wtmp files.
nekral-guest [Sun, 23 Nov 2008 00:16:53 +0000 (00:16 +0000)]
* man/ja/login.1: Fix the path of the utmp and wtmp files.

15 years ago * man/su.1.xml: Fix the su synopsis. username is referenced in the
nekral-guest [Sun, 23 Nov 2008 00:16:10 +0000 (00:16 +0000)]
* man/su.1.xml: Fix the su synopsis. username is referenced in the
manpage, not LOGIN.

15 years ago * libmisc/chowntty.c: Only closelog() when failure cause an exit.
nekral-guest [Sun, 23 Nov 2008 00:06:56 +0000 (00:06 +0000)]
* libmisc/chowntty.c: Only closelog() when failure cause an exit.

15 years ago * libmisc/chowntty.c: Improve the logs for fchown and fchmod
nekral-guest [Sun, 23 Nov 2008 00:05:39 +0000 (00:05 +0000)]
* libmisc/chowntty.c: Improve the logs for fchown and fchmod
failures.

15 years ago * libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
nekral-guest [Sat, 22 Nov 2008 23:56:51 +0000 (23:56 +0000)]
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.

15 years ago * NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
nekral-guest [Sat, 22 Nov 2008 23:56:11 +0000 (23:56 +0000)]
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
entry if the pid matches and ut_line matches with the current tty.
This fixes a possible DOS when entries can be forged in the utmp
file.
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.

15 years ago * NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
nekral-guest [Sat, 22 Nov 2008 23:22:16 +0000 (23:22 +0000)]
* NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
gaining ownership or changing mode of arbitrary files.

16 years agoAdded todo items for pwck.
nekral-guest [Sat, 11 Oct 2008 13:15:29 +0000 (13:15 +0000)]
Added todo items for pwck.

16 years ago * man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
nekral-guest [Sat, 11 Oct 2008 12:59:02 +0000 (12:59 +0000)]
* man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
man/grpck.8.xml: Sorted SEE ALSO references.
* man/gshadow.5.xml: Added reference to grpck(8) and grpconv(8).
* man/pwck.8.xml: Added reference to grpck(8).
* man/shadow.5.xml: Added reference to pwck(8).
* man/passwd.5.xml: Added reference to pwck(8).
* man/grpck.8.xml: Added reference to pwck(8).

16 years ago * man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
nekral-guest [Sat, 11 Oct 2008 11:44:43 +0000 (11:44 +0000)]
* man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
header.

16 years ago * src/login.c: Always check the return value of the pam_* APIs.
nekral-guest [Sat, 20 Sep 2008 21:17:26 +0000 (21:17 +0000)]
* src/login.c: Always check the return value of the pam_* APIs.

16 years ago * src/login.c, man/login.1.xml: the username is not an optional
nekral-guest [Sat, 20 Sep 2008 20:20:19 +0000 (20:20 +0000)]
* src/login.c, man/login.1.xml: the username is not an optional
parameter of -f. Fix the getopt optstring, remove the parsing of
username in the -f processing block, and remove unnecessary checks
(username cannot be parsed twice anymore), better documentation of
the synopsis.

16 years ago * src/login.c: Erase the username later since it it used for the
nekral-guest [Sat, 20 Sep 2008 20:05:22 +0000 (20:05 +0000)]
* src/login.c: Erase the username later since it it used for the
fake password check (in case of empty password).

16 years ago * src/login.c: Explicitly tag the end of the #ifdef RLOGIN
nekral-guest [Sat, 20 Sep 2008 20:03:04 +0000 (20:03 +0000)]
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN
sections.

16 years ago * src/login.c: Check that no username is specified with -r.
nekral-guest [Sat, 20 Sep 2008 20:00:51 +0000 (20:00 +0000)]
* src/login.c: Check that no username is specified with -r.
* src/login.c: Make sure a username is specified with -f.

16 years ago * src/login.c: Copy the name of the user authenticated by PAM to
nekral-guest [Sat, 20 Sep 2008 19:54:35 +0000 (19:54 +0000)]
* src/login.c: Copy the name of the user authenticated by PAM to
username. This simplify later logging (avoid USE_PAM
conditional).

16 years ago * src/login.c: Use a dynamic buffer for usernames.
nekral-guest [Sat, 20 Sep 2008 19:44:12 +0000 (19:44 +0000)]
* src/login.c: Use a dynamic buffer for usernames.

16 years ago * src/login.c: Existence of pam_user was already checked. pwd was
nekral-guest [Sat, 20 Sep 2008 16:23:04 +0000 (16:23 +0000)]
* src/login.c: Existence of pam_user was already checked. pwd was
already copied to pwent. Remove duplicated code.

16 years ago * src/login.c: check_flags() renamed process_flags(). All flag
nekral-guest [Sat, 20 Sep 2008 16:21:46 +0000 (16:21 +0000)]
* src/login.c: check_flags() renamed process_flags(). All flag
processing blocs moved to process_flags().

16 years ago * src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.
nekral-guest [Sat, 20 Sep 2008 14:56:10 +0000 (14:56 +0000)]
* src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.

16 years ago * src/login.c: Re-indent.
nekral-guest [Sat, 20 Sep 2008 14:39:09 +0000 (14:39 +0000)]
* src/login.c: Re-indent.

16 years ago * src/login.c: Add missing closing }. This was probably never
nekral-guest [Sat, 20 Sep 2008 14:21:51 +0000 (14:21 +0000)]
* src/login.c: Add missing closing }. This was probably never
noticed because UT_ADDR is never defined.

16 years ago * src/login.c: Do not mix USE_PAM and !USE_PAM code.
nekral-guest [Sat, 20 Sep 2008 14:17:20 +0000 (14:17 +0000)]
* src/login.c: Do not mix USE_PAM and !USE_PAM code.

16 years ago * src/login.c: Use failent_user to log to audit. username is the
nekral-guest [Sat, 20 Sep 2008 13:20:31 +0000 (13:20 +0000)]
* src/login.c: Use failent_user to log to audit. username is the
caller, not the user login tries to authenticate.
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
be more precise (name must be unique, uid might not be).

16 years ago * man/passwd.1.xml: passwd cannot change the full name of the
nekral-guest [Sat, 20 Sep 2008 10:53:00 +0000 (10:53 +0000)]
* man/passwd.1.xml: passwd cannot change the full name of the
user, the user's login shell; but it can change the account or
password validity period. Thanks to Reuben Thomas.

16 years ago * src/useradd.c: Added missing declaration of Mflg.
nekral-guest [Sun, 14 Sep 2008 13:42:10 +0000 (13:42 +0000)]
* src/useradd.c: Added missing declaration of Mflg.
* src/pwck.c: Only unlock files if they were locked before (e.g.
not in read-only mode).
* src/pwck.c: Quote the username in error messages (harmonization
with other messages).
* libmisc/find_new_gid.c: Fixed typo (s/grp->gr_gid/group_id/).
* libmisc/find_new_gid.c: Likewise.

16 years ago * libmisc/setugid.c, src/login_nopam.c, src/suauth.c,
nekral-guest [Sat, 13 Sep 2008 18:03:50 +0000 (18:03 +0000)]
* libmisc/setugid.c, src/login_nopam.c, src/suauth.c,
lib/getdef.c: Replace the %m format string by strerror(). This
avoids errno to be reset between the system call error and the
report function.

16 years ago * lib/commonio.c: Ignore the return value of umask() when the mask
nekral-guest [Sat, 13 Sep 2008 11:55:50 +0000 (11:55 +0000)]
* lib/commonio.c: Ignore the return value of umask() when the mask
is set to the old value.

16 years ago * NEWS, etc/login.defs: New CREATE_HOME variable to tell useradd
nekral-guest [Sat, 13 Sep 2008 11:55:41 +0000 (11:55 +0000)]
* NEWS, etc/login.defs: New CREATE_HOME variable to tell useradd
to create a home directory for new users.
* src/useradd.c, man/useradd.8.xml: New -M/--no-create-home option
and CREATE_HOME usage. System accounts are not impacted by
CREATE_HOME.
* man/useradd.8.xml: Indicate that a new group is created by
default.
* src/useradd.c: Removed TODO item (moved to the TODO file).

16 years ago * po/cs.po: Updated Czech translation.
nekral-guest [Sat, 13 Sep 2008 11:55:30 +0000 (11:55 +0000)]
* po/cs.po: Updated Czech translation.
Thanks to Miroslav Kuře

16 years ago * man/login.defs.d/USERGROUPS_ENAB.xml: Fix typo: new <para> tag
nekral-guest [Sat, 13 Sep 2008 11:55:20 +0000 (11:55 +0000)]
* man/login.defs.d/USERGROUPS_ENAB.xml: Fix typo: new <para> tag
before the previous one is closed. This caused a missng
explanation for USERGROUPS_ENAB.

16 years ago * man/groupadd.8.xml: Remove the list of (short) options from the
nekral-guest [Sat, 13 Sep 2008 11:55:08 +0000 (11:55 +0000)]
* man/groupadd.8.xml: Remove the list of (short) options from the
SYNOPSIS. Replaced with [options] for consistency with other tools
and maintainability.

16 years agoNew TODO item.
nekral-guest [Sat, 13 Sep 2008 11:54:58 +0000 (11:54 +0000)]
New TODO item.
useradd:
  - Add support for -K in -D mode

16 years ago From RedHat's patch shadow-4.1.2-sysAccountDownhill.patch
nekral-guest [Sat, 13 Sep 2008 11:54:49 +0000 (11:54 +0000)]
From RedHat's patch shadow-4.1.2-sysAccountDownhill.patch
Thanks to Peter Vrabec.
* NEWS, libmisc/find_new_gid.c, libmisc/find_new_uid.c: Build an
index of used IDs to avoid a database request for each id in the
allowed range (when the highest allowed ID is already used).
This speedups the addition of users or groups when the highest
allowed ID is already used. The additional memory usage of the
tools should be acceptable when UID_MAX/SYS_UID_MAX are set to a
reasonable number.

16 years ago * configure.in: Fix the dependency of ACCT_TOOLS_SETUID on
nekral-guest [Sun, 7 Sep 2008 20:40:41 +0000 (20:40 +0000)]
* configure.in: Fix the dependency of ACCT_TOOLS_SETUID on
USE_PAM. Build failed with --without-libpam.

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).