]> granicus.if.org Git - shadow/log
shadow
16 years agoupdated to 431t. Thanks to Clytie Siddall
nekral-guest [Sun, 30 Mar 2008 12:06:33 +0000 (12:06 +0000)]
updated to 431t. Thanks to Clytie Siddall

16 years agoUpdated Swedish translation. Thanks to Daniel Nylander.
nekral-guest [Sun, 30 Mar 2008 11:54:19 +0000 (11:54 +0000)]
Updated Swedish translation. Thanks to Daniel Nylander.

16 years agoUpdated to 431t. Thanks to helix84 <helix84@centrum.sk>.
nekral-guest [Fri, 28 Mar 2008 23:23:41 +0000 (23:23 +0000)]
Updated to 431t. Thanks to helix84 <helix84@centrum.sk>.

16 years agoItalian translation update
bubulle [Thu, 27 Mar 2008 18:54:34 +0000 (18:54 +0000)]
Italian translation update

16 years ago* src/passwd.c, NEWS: Make SE Linux tests more strict, when the
nekral-guest [Wed, 26 Mar 2008 22:00:50 +0000 (22:00 +0000)]
* src/passwd.c, NEWS: Make SE Linux tests more strict, when the
 real UID is 0 SE Linux checks will be performed. Thanks to
 Russell Coker  <russell@coker.com.au>
* TODO: Added entries regarding SE Linux.

16 years agoAdded TODO entries.
nekral-guest [Wed, 26 Mar 2008 21:44:50 +0000 (21:44 +0000)]
Added TODO entries.

16 years agoRussian translation update
bubulle [Mon, 24 Mar 2008 18:34:04 +0000 (18:34 +0000)]
Russian translation update

16 years agoUpdated Korean and Portuguese translations
bubulle [Sun, 23 Mar 2008 08:39:58 +0000 (08:39 +0000)]
Updated Korean and Portuguese translations

16 years agoFix manpages generation. The SYS_GID_MAX and SYS_UID_MAX entities were not defined.
nekral-guest [Mon, 17 Mar 2008 23:07:04 +0000 (23:07 +0000)]
Fix manpages generation. The SYS_GID_MAX and SYS_UID_MAX entities were not defined.

16 years agoFix minor compilation warning (assignment used as a comparison).
nekral-guest [Mon, 17 Mar 2008 23:05:59 +0000 (23:05 +0000)]
Fix minor compilation warning (assignment used as a comparison).

16 years agologin_access() is used in src/login.c, and defined in src/login_nopam.c
nekral-guest [Mon, 17 Mar 2008 23:04:46 +0000 (23:04 +0000)]
login_access() is used in src/login.c, and defined in src/login_nopam.c
(which lacks a prototype). Move its prototype from src/login.c to
lib/prototypes.h.

16 years agoCompilation fix. gshadow_locked should only be used if SHADOWGRP is defined.
nekral-guest [Mon, 17 Mar 2008 23:02:23 +0000 (23:02 +0000)]
Compilation fix. gshadow_locked should only be used if SHADOWGRP is defined.

16 years agoFix some warnings. compare_members_lists() is only used if SHADOWGRP is defined.
nekral-guest [Mon, 17 Mar 2008 23:00:49 +0000 (23:00 +0000)]
Fix some warnings. compare_members_lists() is only used if SHADOWGRP is defined.

16 years agoRemove unused global variable.
nekral-guest [Sat, 8 Mar 2008 23:52:50 +0000 (23:52 +0000)]
Remove unused global variable.

16 years ago* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
nekral-guest [Sat, 8 Mar 2008 23:01:49 +0000 (23:01 +0000)]
* NEWS, src/groupmod.c: Make sure the passwd, group, and gshadow
  files are unlocked on exit. Unlock locked files in fail_exit().
  Prefer fail_exit() over exit().
* NEWS, src/groupmod.c: When the GID of a group is changed, update
  also the GID of the passwd entries of the users whose primary
  group is the group being modified.

16 years ago* lib/commonio.c (commonio_remove): Fail when the name to be
nekral-guest [Sat, 8 Mar 2008 22:52:44 +0000 (22:52 +0000)]
* lib/commonio.c (commonio_remove): Fail when the name to be
  removed is used by different entries (like commonio_update does).
* NEWS: This fix the behavior of groupdel when the system is not
  configured to support split group but different group entries
  have the name of the group to be deleted.

16 years agoMake sure the passwd, group, shadow, and gshadow files are unlocked on
nekral-guest [Sat, 8 Mar 2008 22:44:53 +0000 (22:44 +0000)]
Make sure the passwd, group, shadow, and gshadow files are unlocked on
exit. Unlock locked files in fail_exit(). Prefer fail_exit() over exit().

16 years ago * NEWS, src/groupdel.c: Make sure the group, and gshadow files are
nekral-guest [Sat, 8 Mar 2008 21:13:54 +0000 (21:13 +0000)]
* NEWS, src/groupdel.c: Make sure the group, and gshadow files are
unlocked on exit. Add function fail_exit(). Use fail_exit()
instead of exit().
* src/groupdel.c: Fail immediately instead of increasing errors.
Better handling of error cases, like locked group or gshadow file.

16 years agoMake sure the passwd, group, shadow, and gshadow files are unlocked on
nekral-guest [Sat, 8 Mar 2008 21:04:31 +0000 (21:04 +0000)]
Make sure the passwd, group, shadow, and gshadow files are unlocked on
exit. Add function fail_exit(). Use fail_exit() instead of exit().

16 years agoMake sure the group and gshadow files are unlocked on exit. Add function fail_exit().
nekral-guest [Sat, 8 Mar 2008 20:54:54 +0000 (20:54 +0000)]
Make sure the group and gshadow files are unlocked on exit. Add function fail_exit().

16 years agoDo not rewrite the group and gshadow file in case of error.
nekral-guest [Sat, 8 Mar 2008 16:23:22 +0000 (16:23 +0000)]
Do not rewrite the group and gshadow file in case of error.

16 years agoDo not log that the group was deleted if an error occurred.
nekral-guest [Sat, 8 Mar 2008 16:20:55 +0000 (16:20 +0000)]
Do not log that the group was deleted if an error occurred.

16 years agoDo not raise an error if the group does not exist in the gshadow file.
nekral-guest [Sat, 8 Mar 2008 16:17:07 +0000 (16:17 +0000)]
Do not raise an error if the group does not exist in the gshadow file.

16 years agoDocument MAX_MEMBERS_PER_GROUP.
nekral-guest [Sat, 8 Mar 2008 16:05:30 +0000 (16:05 +0000)]
Document MAX_MEMBERS_PER_GROUP.

16 years agoFix typo
nekral-guest [Fri, 7 Mar 2008 20:46:47 +0000 (20:46 +0000)]
Fix typo

16 years ago* src/newgrp.c: Add missing end of line in message.
nekral-guest [Fri, 7 Mar 2008 20:21:15 +0000 (20:21 +0000)]
* src/newgrp.c: Add missing end of line in message.
* src/newgrp.c: Add audit events for the authentication
  (AUDIT_GRP_AUTH). Thansk to Peter Vrabec.

16 years agoOnly reset the entries of existing users with faillog -r (not all numeric
nekral-guest [Wed, 5 Mar 2008 00:10:25 +0000 (00:10 +0000)]
Only reset the entries of existing users with faillog -r (not all numeric
IDs starting from 0). Thanks to Peter Vrabec.

16 years agoFix typo. One "can't open" message is a "can't lock".
nekral-guest [Tue, 4 Mar 2008 23:53:00 +0000 (23:53 +0000)]
Fix typo. One "can't open" message is a "can't lock".

16 years agoWhen a password is moved to the gshadow file, use "x" instead of "x"
nekral-guest [Tue, 26 Feb 2008 20:09:56 +0000 (20:09 +0000)]
When a password is moved to the gshadow file, use "x" instead of "x"
to indicate that the password is shadowed (consistency with grpconv).

16 years agoRe-indent.
nekral-guest [Tue, 26 Feb 2008 19:17:20 +0000 (19:17 +0000)]
Re-indent.

16 years ago * NEWS: Fix failures when the gshadow file is not present. Thanks
nekral-guest [Tue, 26 Feb 2008 19:09:10 +0000 (19:09 +0000)]
 * NEWS: Fix failures when the gshadow file is not present. Thanks
   to Christian Henz (http://bugs.debian.org/467488)
 * src/gpasswd.c (get_group): Do not fail if gshadow is not present. Just use
   the group file and set the grent structure
 * src/gpasswd.c (check_perms): The permissions should be checked
   using both the gshadow and group file. Add a <struct group *>
   parameter, and check if the gshadow file exists (is_shadowgrp).
 * src/gpasswd.c (main): Do not use sgent.sg_mem or sgent.sg_adm if
   the gshadow file is not present (sgent is not initialized in that
   case). The fields of sgent can be set, but not used.

16 years ago * Fix typo in comment.
nekral-guest [Tue, 26 Feb 2008 18:59:28 +0000 (18:59 +0000)]
 * Fix typo in comment.
 * Move comment regarding FIRST_MEMBER_IS_ADMIN to
   where it belongs.
 * Indicate the end of the #ifdef FIRST_MEMBER_IS_ADMIN
   section.

16 years agoAdd the new XML documentation files to EXTRA_DIST.
nekral-guest [Mon, 25 Feb 2008 21:46:27 +0000 (21:46 +0000)]
Add the new XML documentation files to EXTRA_DIST.

16 years agoUse --previous when merging PO files of the manpages.
nekral-guest [Mon, 25 Feb 2008 21:27:31 +0000 (21:27 +0000)]
Use --previous when merging PO files of the manpages.
(I need to find a way to do it for the PO files of the binaries)

16 years ago* man/login.defs.d/SYS_UID_MAX.xml, man/login.defs.d/SYS_GID_MAX.xml:
nekral-guest [Mon, 25 Feb 2008 21:17:18 +0000 (21:17 +0000)]
* man/login.defs.d/SYS_UID_MAX.xml, man/login.defs.d/SYS_GID_MAX.xml:
  Document new variables.
* man/newusers.8.xml, man/login.defs.5.xml,
  man/login.defs.d/GID_MAX.xml, man/login.defs.d/UID_MAX.xml:
  newusers uses now the GID_MAX, GID_MIN, UID_MAX, UID_MIN,
  SYS_GID_MAX, SYS_GID_MIN, SYS_UID_MAX, and SYS_UID_MIN variables.
* man/groupadd.8.xml, man/login.defs.5.xml: groupadd uses now the
  SYS_GID_MAX, and SYS_GID_MIN variables.
* man/login.defs.5.xml: useradd uses now the SYS_GID_MAX,
  SYS_GID_MIN, SYS_UID_MAX, and SYS_UID_MIN variables.

16 years agoAdded missing SYS_GID_MAX, SYS_GID_MIN, SYS_UID_MAX, and SYS_UID_MIN.
nekral-guest [Mon, 25 Feb 2008 21:06:30 +0000 (21:06 +0000)]
Added missing SYS_GID_MAX, SYS_GID_MIN, SYS_UID_MAX, and SYS_UID_MIN.

16 years ago* NEWS, src/useradd.c, man/useradd.8.xml: Added options
nekral-guest [Mon, 25 Feb 2008 21:03:46 +0000 (21:03 +0000)]
* NEWS, src/useradd.c, man/useradd.8.xml: Added options
  -user-group (-U, Uflg) and --no-user-group (-N, Nflg) to replace
  nflg.
* man/login.defs.d/USERGROUPS_ENAB.xml: useradd now also uses
  USERGROUPS_ENAB.

16 years agoAdd missing 'p' to the getopt_long's optstring.
nekral-guest [Tue, 19 Feb 2008 21:26:04 +0000 (21:26 +0000)]
Add missing 'p' to the getopt_long's optstring.

16 years agoAdd missing -p, --password description to the Usage message.
nekral-guest [Tue, 19 Feb 2008 21:21:52 +0000 (21:21 +0000)]
Add missing -p, --password description to the Usage message.

16 years agoAdd missing space in comment.
nekral-guest [Tue, 19 Feb 2008 21:18:04 +0000 (21:18 +0000)]
Add missing space in comment.

16 years agoFix --non-unique's has_arg field to no_argument instead of required_argument.
nekral-guest [Tue, 19 Feb 2008 21:16:28 +0000 (21:16 +0000)]
Fix --non-unique's has_arg field to no_argument instead of required_argument.

16 years agoAdd missing 'p' to the getopt_long's optstring.
nekral-guest [Tue, 19 Feb 2008 21:10:17 +0000 (21:10 +0000)]
Add missing 'p' to the getopt_long's optstring.

16 years agoFix alphabetical order.
nekral-guest [Tue, 19 Feb 2008 21:05:44 +0000 (21:05 +0000)]
Fix alphabetical order.

16 years agoThis entry was for login, not su:
nekral-guest [Tue, 19 Feb 2008 21:04:55 +0000 (21:04 +0000)]
This entry was for login, not su:
  * If started as init, start a new session.

16 years agoRe-indent.
nekral-guest [Tue, 19 Feb 2008 21:02:24 +0000 (21:02 +0000)]
Re-indent.

16 years agoAdded new option -r, --system for system accounts in useradd, groupadd,
nekral-guest [Tue, 19 Feb 2008 21:01:38 +0000 (21:01 +0000)]
Added new option -r, --system for system accounts in useradd, groupadd,
and newusers.

16 years agoFix buffer overflow when adding an user to a group. Thanks to Peter Vrabec.
nekral-guest [Mon, 18 Feb 2008 21:36:03 +0000 (21:36 +0000)]
Fix buffer overflow when adding an user to a group. Thanks to Peter Vrabec.

16 years agoChange the default HOME directory in /etc/default/useradd according FHS
nekral-guest [Sun, 17 Feb 2008 15:29:41 +0000 (15:29 +0000)]
Change the default HOME directory in /etc/default/useradd according FHS
(/home instead of /home/users).  This fixes Alioth's bug #310559.
Thanks to Dale E. Edmons.

16 years agoOne AUDIT_USER_START remained. Replace it with AUDIT_CHGRP_ID also.
nekral-guest [Thu, 14 Feb 2008 18:51:37 +0000 (18:51 +0000)]
One AUDIT_USER_START remained. Replace it with AUDIT_CHGRP_ID also.

16 years agoUse the correct AUDIT_CHGRP_ID event instead of
nekral-guest [Thu, 14 Feb 2008 18:35:51 +0000 (18:35 +0000)]
Use the correct AUDIT_CHGRP_ID event instead of
AUDIT_USER_START, when changing the user space group ID with
newgrp or sg. Thanks to sgrubb@redhat.com for the patch.

16 years ago* Reset oflg with uflg if the new UID is equal to
nekral-guest [Sun, 10 Feb 2008 21:35:17 +0000 (21:35 +0000)]
* Reset oflg with uflg if the new UID is equal to
  the old one.
* Reset mflg with dflg if the new home directory is
  the same as the old one.

16 years agoFix the handling of -a when a user is being renamed (with -l). The new
nekral-guest [Sun, 10 Feb 2008 20:25:39 +0000 (20:25 +0000)]
Fix the handling of -a when a user is being renamed (with -l). The new
name of the user was used for the new supplementary groups, but not in the
existing ones.

16 years agoSet the shadow's password instead of the passwd's password.
nekral-guest [Sun, 10 Feb 2008 19:14:20 +0000 (19:14 +0000)]
Set the shadow's password instead of the passwd's password.
Fix wrong cut&paste.

16 years agoFix typo.
nekral-guest [Sun, 3 Feb 2008 21:53:30 +0000 (21:53 +0000)]
Fix typo.

16 years agoFix typo.
nekral-guest [Sun, 3 Feb 2008 21:42:08 +0000 (21:42 +0000)]
Fix typo.

16 years agoNo need to check audit_fd, audit_logger() will take care of this.
nekral-guest [Sun, 3 Feb 2008 21:40:01 +0000 (21:40 +0000)]
No need to check audit_fd, audit_logger() will take care of this.

16 years agoReally log the expiration date change as human readable strings instead of
nekral-guest [Sun, 3 Feb 2008 21:37:45 +0000 (21:37 +0000)]
Really log the expiration date change as human readable strings instead of
integers.

16 years agoUse a function to convert the dates from /etc/shadow to human readable dates.
nekral-guest [Sun, 3 Feb 2008 21:30:47 +0000 (21:30 +0000)]
Use a function to convert the dates from /etc/shadow to human readable dates.

16 years agoTODO cleanup
nekral-guest [Sun, 3 Feb 2008 18:51:11 +0000 (18:51 +0000)]
TODO cleanup
- newusers: i = 100; not a nice initial value, use login.defs
This is done. newusers now uses (UID|GID)_(MIN|MAX)
- remove the entries regarding outdated translation of documentation.
The manpages translation should use the PO.
- the manpages should mention when the options were added.
This should help user to choose option for portable scripts

16 years agoAdd ideas for new tests in the testsuite.
nekral-guest [Sun, 3 Feb 2008 17:58:16 +0000 (17:58 +0000)]
Add ideas for new tests in the testsuite.

16 years agoDo not translate the fromhost variable. It is always used for syslog messages.
nekral-guest [Sun, 3 Feb 2008 17:57:43 +0000 (17:57 +0000)]
Do not translate the fromhost variable. It is always used for syslog messages.

16 years agoSwitch to the C locale before sending messages to syslog. The messages
nekral-guest [Sun, 3 Feb 2008 17:53:21 +0000 (17:53 +0000)]
Switch to the C locale before sending messages to syslog. The messages
sent by shadow were not translated, but error messages from PAM returned
by pam_strerror() were translated in the users's locale.

16 years ago * NEWS: newusers will behave more like useradd.
nekral-guest [Sun, 3 Feb 2008 17:45:58 +0000 (17:45 +0000)]
* NEWS: newusers will behave more like useradd.
* src/newusers.c: The user's ID must be found before the group ID
to mimic useradd's behavior choices of UID and GID.
* src/newusers.c: Reuse the generic find_new_uid() and
find_new_gid() functions. This permits to respect the
UID_MIN/UID_MAX and GID_MIN/GID_MAX variables, should
* src/newusers.c: Check if the user or group exist using the
external databases (with the libc getpwnam/getgrnam functions).
Refuse to update an user which exist in an external database but
does not exist in the local database.
* src/newusers.c: Check the usernames and groupnames with
check_user_name() and check_group_name()
* src/newusers.c: Use isdigit() for readability.
* src/newusers.c: Check if numerical IDs are valid (no remaining
chars).

* NEWS, src/newusers.c: Fix the support for the NONE crypt method.

* src/newusers.c: Fix shadow group support (the list of admins was
not defined; it is now set to an empty list).

16 years agoDo not seed the random number generator each time, and use the time in
nekral-guest [Sun, 3 Feb 2008 17:23:58 +0000 (17:23 +0000)]
Do not seed the random number generator each time, and use the time in
microseconds to avoid having the same salt for different passwords
generated in the same second.  This permits to avoid using the same salt
for different passwords in newusers.

16 years agoAdd libmisc/find_new_ids.c to the sources of the libmisc library.
nekral-guest [Sun, 3 Feb 2008 16:57:21 +0000 (16:57 +0000)]
Add libmisc/find_new_ids.c to the sources of the libmisc library.

16 years agoUse the find_new_uid() and find_new_gid() from the library instead of the
nekral-guest [Sun, 3 Feb 2008 16:56:23 +0000 (16:56 +0000)]
Use the find_new_uid() and find_new_gid() from the library instead of the
local functions.

16 years agoAdd libmisc/find_new_ids.c to the sources of the libmisc library.
nekral-guest [Sun, 3 Feb 2008 16:55:37 +0000 (16:55 +0000)]
Add libmisc/find_new_ids.c to the sources of the libmisc library.

16 years agoThe new libmisc/find_new_ids.c file contains translatable strings.
nekral-guest [Sun, 3 Feb 2008 16:53:53 +0000 (16:53 +0000)]
The new libmisc/find_new_ids.c file contains translatable strings.

16 years agoAdd new generic functions to find the next user or group ID available:
nekral-guest [Sun, 3 Feb 2008 16:53:07 +0000 (16:53 +0000)]
Add new generic functions to find the next user or group ID available:
find_new_uid() and find_new_gid(). They work the same way as the functions
with the same name of useradd or groupadd, except that they check in the
local database to make sure an ID was not reserved in an uncommitted
change (this is needed to be used in newusers), they report a status
instead of calling exit(), and they can receive a preferred ID. They
should later support system IDs. This should be a little bit slower, but
not too much (if the database is not open the checks against the local
database will exit immediately, and if it is already open, all the checks
will be done regarding the data in memory).

16 years agoNew function to find a group by its GID on the local database.
nekral-guest [Sun, 3 Feb 2008 16:51:08 +0000 (16:51 +0000)]
New function to find a group by its GID on the local database.

16 years agoNew function to find an user by its UID on the local database.
nekral-guest [Sun, 3 Feb 2008 16:50:14 +0000 (16:50 +0000)]
New function to find an user by its UID on the local database.

16 years ago * libmisc/age.c, libmisc/yesno.c, src/lastlog.c, src/grpck.c,
nekral-guest [Sun, 3 Feb 2008 16:28:03 +0000 (16:28 +0000)]
 * libmisc/age.c, libmisc/yesno.c, src/lastlog.c, src/grpck.c,
   src/chfn.c, src/passwd.c, src/chage.c, src/login.c, src/sulogin.c,
   src/chsh.c: Fix call to puts (remove end of line, or use fputs).
 * po/*.po: Unfuzzy PO files according to above change.

16 years agoFrench translation update (obvious things only)
bubulle [Sun, 3 Feb 2008 06:20:06 +0000 (06:20 +0000)]
French translation update (obvious things only)

16 years agoUpdated PO files.
nekral-guest [Sat, 2 Feb 2008 17:20:42 +0000 (17:20 +0000)]
Updated PO files.

16 years agoFix comment. find_new_fid is no more called is the user specified a group
nekral-guest [Sun, 27 Jan 2008 14:31:23 +0000 (14:31 +0000)]
Fix comment. find_new_fid is no more called is the user specified a group
ID.

16 years agoFix build failures with --disable-shadowgrp. Thanks to Jürgen
nekral-guest [Sat, 26 Jan 2008 17:41:20 +0000 (17:41 +0000)]
Fix build failures with --disable-shadowgrp. Thanks to Jürgen
Daubert for the patch.
* libmisc/salt.c: Include <stdio.h>, needed for stderr and printf
  functions.
* lib/encrypt.c: Include <stdio.h>, needed for perror, stderr and
  printf functions
* src/usermod.c: sgr_locked exists only if SHADOWGRP is defined.
* src/chgpasswd.c: Only check is the gshadow file exists if
  SHADOWGRP is defined.

16 years agoReplace printf by puts for fixed strings. This would avoid issues caused
nekral-guest [Thu, 24 Jan 2008 21:07:14 +0000 (21:07 +0000)]
Replace printf by puts for fixed strings. This would avoid issues caused
by formats introduced in translated strings.

16 years agoRe-indent.
nekral-guest [Thu, 24 Jan 2008 20:54:42 +0000 (20:54 +0000)]
Re-indent.

16 years agoReplace printf by puts for fixed strings. This would avoid issues caused
nekral-guest [Thu, 24 Jan 2008 20:42:12 +0000 (20:42 +0000)]
Replace printf by puts for fixed strings. This would avoid issues caused
by formats introduced in translated strings.

16 years agoRe-indent.
nekral-guest [Thu, 24 Jan 2008 19:50:09 +0000 (19:50 +0000)]
Re-indent.

16 years agoReplace printf by puts for fixed strings. This would avoid issues caused
nekral-guest [Thu, 24 Jan 2008 19:38:06 +0000 (19:38 +0000)]
Replace printf by puts for fixed strings. This would avoid issues caused
by formats introduced in translated strings.

16 years agoRe-indent.
nekral-guest [Thu, 24 Jan 2008 19:24:03 +0000 (19:24 +0000)]
Re-indent.

16 years agoReplace printf by puts for fixed strings. This would avoid issues caused
nekral-guest [Thu, 24 Jan 2008 18:39:05 +0000 (18:39 +0000)]
Replace printf by puts for fixed strings. This would avoid issues caused
by formats introduced in translated strings.

16 years agoadduser was a typo. Move the adduser entries to the useradd section.
nekral-guest [Wed, 23 Jan 2008 23:48:39 +0000 (23:48 +0000)]
adduser was a typo. Move the adduser entries to the useradd section.

16 years agoApply Christian's recommendation:
nekral-guest [Wed, 23 Jan 2008 22:31:38 +0000 (22:31 +0000)]
Apply Christian's recommendation:
s/can't get unique/no more available/

16 years agoCheck that the new fields set with -u, -s, -l, -g, -f, -e, -d, and -c
nekral-guest [Wed, 23 Jan 2008 21:50:27 +0000 (21:50 +0000)]
Check that the new fields set with -u, -s, -l, -g, -f, -e, -d, and -c
differ from the old ones. If a requested new value is equal to the old
one, no changes will be performed for that field. If no fields are
changed, usermod will exist successfully with a warning. This avoids
logging changes to syslog when there are actually no changes.

16 years agoAlways define user_newcomment, user_newshell, user_newexpire, and
nekral-guest [Wed, 23 Jan 2008 21:19:08 +0000 (21:19 +0000)]
Always define user_newcomment, user_newshell, user_newexpire, and
user_newinactive. It is more simple to always have user_<x> as the old
field, and user_new<x> as the new field (even if the field did not change)
instead of changing the algorithm depending on WITH_AUDIT.

16 years agouser_newname can only be used in WITH_AUDIT code or when lflg is set. This
nekral-guest [Wed, 23 Jan 2008 20:08:16 +0000 (20:08 +0000)]
user_newname can only be used in WITH_AUDIT code or when lflg is set. This
issue was introduced in the code refactoring of usermod.

16 years agoFix typo in comment: s/find_new_uid/find_new_gid/
nekral-guest [Tue, 22 Jan 2008 22:59:06 +0000 (22:59 +0000)]
Fix typo in comment: s/find_new_uid/find_new_gid/

16 years ago * s/gid/GID/ in message string.
nekral-guest [Tue, 22 Jan 2008 22:57:55 +0000 (22:57 +0000)]
 * s/gid/GID/ in message string.
 * Set this string for translation.

16 years ago* man/grpck.8.xml: Conditionally include the parts mentioning the
nekral-guest [Tue, 22 Jan 2008 21:42:48 +0000 (21:42 +0000)]
* man/grpck.8.xml: Conditionally include the parts mentioning the
  gshadow file (based on SHADOWGRP).
* man/grpck.8.xml: Add reference to the gshadow(5) manpage
 (conditionally included).

16 years agoFix typo. Remove "the" from "All entries in the <filename></filename> are
nekral-guest [Tue, 22 Jan 2008 21:15:58 +0000 (21:15 +0000)]
Fix typo. Remove "the" from "All entries in the <filename></filename> are
checked [...]"

16 years agoIndicate that the shadow parameter is optional (i.e. a passwd file can be
nekral-guest [Tue, 22 Jan 2008 21:13:43 +0000 (21:13 +0000)]
Indicate that the shadow parameter is optional (i.e. a passwd file can be
specified without a shadow file, and the group file can be specified
without the gshadow file).

16 years agoDocument the options with a list of options, as in the pwck(8) manpage.
nekral-guest [Tue, 22 Jan 2008 20:56:13 +0000 (20:56 +0000)]
Document the options with a list of options, as in the pwck(8) manpage.

16 years ago* NEWS, src/newgrp.c: Fix segfault when an user returns to an
nekral-guest [Mon, 21 Jan 2008 23:33:43 +0000 (23:33 +0000)]
* NEWS, src/newgrp.c: Fix segfault when an user returns to an
  unknown GID (either the user was deleted during the user's newgrp
  session or the user's passwd entry referenced an invalid group).
  Add a syslog warning in that case.
* src/newgrp.c: Add an end of line when reporting an invalid
  password.

16 years ago* NEWS, src/useradd.c: Fix the handling of the --defaults option
nekral-guest [Sat, 12 Jan 2008 21:09:46 +0000 (21:09 +0000)]
* NEWS, src/useradd.c: Fix the handling of the --defaults option
  (it required an argument, but should behave as -D)
* NEWS, man/useradd.8.xml: Document the --defaults option, which
  was already described in the useradd's Usage information.

16 years agoAvoid setting the password to a const empty string, but set the first char to \0...
nekral-guest [Sun, 6 Jan 2008 19:26:58 +0000 (19:26 +0000)]
Avoid setting the password to a const empty string, but set the first char to \0. This avoids a warning.

16 years ago* libmisc/salt.c: Add prototype for l64a(), gensalt(),
nekral-guest [Sun, 6 Jan 2008 14:50:26 +0000 (14:50 +0000)]
* libmisc/salt.c: Add prototype for l64a(), gensalt(),
  SHA_salt_size(), and SHA_salt_rounds().
* libmisc/salt.c: l64a() and gensalt() are static.
* libmisc/salt.c: The `meth' parameter of crypt_make_salt() is a
  const. (ditto for the method variable).
* libmisc/salt.c: SHA_salt_rounds returns a const string.
* libmisc/salt.c: Avoid warnings with cast of random() to double.
* libmisc/salt.c: Replace rand() by random().

16 years ago* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
nekral-guest [Sun, 6 Jan 2008 14:19:32 +0000 (14:19 +0000)]
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
  skey and md libraries...
* src/Makefile.am: ...Specify for each binary which library is
  required. skey and md are required for the binaries with
  authentication of the user (chfn, chsh, login, passwd, su). intl
  is required for all. mcrypt is required for user (chfn, chsh,
  login, passwd, su, sulogin) and group (newgrp, gpasswd)
  authentication and for the creation of passwords (chpasswd,
  chgpasswd, gpasswd, newusers, passwd).

16 years ago* lib/nscd.c, lib/nscd.h: Set the service parameter of
nekral-guest [Sun, 6 Jan 2008 13:57:17 +0000 (13:57 +0000)]
* lib/nscd.c, lib/nscd.h: Set the service parameter of
  nscd_flush_cache() to const. This avoids a lot of warnings.
* lib/nscd.c: Include "nscd.h" to avoid inconsistent prototypes.