f3bea401e9
* libmisc/ttytype.c: Add brackets and parenthesis. * libmisc/ttytype.c: Avoid assignments in comparisons.
nekral-guest
2009-04-20 11:31:05 +00:00
2ce68e8aec
* lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill the password fields with zeros before they are freed.
nekral-guest
2009-04-20 11:29:17 +00:00
bf66861e3f
* po/ko.po: Updated Korean translation.
nekral-guest
2009-04-19 16:26:17 +00:00
131e95ffaf
* NEWS, src/login.c: Also check if the authentication token of the user has to be updated in case the user was already authenticated.
nekral-guest
2009-04-19 16:22:17 +00:00
ca10b825c7
* src/login.c: fflg is already restricted to root. Move pam_acct_mgmt(), in case of fflg, earlier. This is equivalent and simplifies the code.
nekral-guest
2009-04-19 16:09:00 +00:00
2ed05e548b
* libmisc/utmp.c: Always call endutent or endutxent when setutent or setutxent were used.
nekral-guest
2009-04-19 15:28:38 +00:00
8156c3b0be
* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do not get set to unsanitized values.
nekral-guest
2009-04-19 13:33:24 +00:00
d2a822fe39
* libmisc/utmp.c: Do not trust the current utmp entry's ut_line. Always set ut_line based on ttyname(0).
nekral-guest
2009-04-17 21:25:30 +00:00
5298ac3dd9
* NEWS, src/login.c: Do not trust the current utmp entry's ut_line to set PAM_TTY.
nekral-guest
2009-04-17 20:40:26 +00:00
c49371e423
* configure.in: Updated version number.
nekral-guest
2009-04-15 21:46:42 +00:00
239bb04b18
Fixed nb.po format and added info about the update.
nekral-guest
2009-04-15 21:29:00 +00:00
4d2bee2e23
* NEWS, src/userdel.c: Fixed SE Linux support. semanage should be called at the end. * src/useradd.c: Always call selinux_update_mapping() (i.e. semanage), not only when -Z is used.
nekral-guest
2009-04-15 21:14:08 +00:00
70d9bc6233
libmisc/system.c was contributed by Dan Walsh.
nekral-guest
2009-04-15 17:42:34 +00:00
5fa86c2b42
* NEW, src/vipw.c: SE Linux: Set the default context to the context of the file being edited. This ensures that the backup file inherit from the file's context.
nekral-guest
2009-04-15 17:42:27 +00:00
a8586cbce7
Added one TODO item for usermod.
nekral-guest
2009-04-14 22:19:17 +00:00
acc3423c96
* man/usermod.8.xml: There are no default values for --inactive and --gid. If the options are no provided, the original values are not changed.
nekral-guest
2009-04-14 22:19:11 +00:00
ceddfa340d
Removed TODO entries * groupmems has a testsuite now * long user names are tested for gpasswd * groups and id arenot receiving updates * tests with UID/GID sets to (*id_t)-1 already exist.
nekral-guest
2009-04-14 22:19:05 +00:00
774f8a073a
Added TODO entry.
nekral-guest
2009-04-12 00:38:41 +00:00
6b46161f2d
* src/su.c: If there are no root account, or if the root account has an UID != 0, default to the first UID 0 account.
nekral-guest
2009-04-12 00:28:32 +00:00
08a212ccae
* src/login.c: Restore the echoctl, echoke, onclr flags to the terminal termio flags. Reset echoprt, noflsh, tostop. This behavior seems to have change by mistake in earlier releases (4.0.8, for no obvious reason).
nekral-guest
2009-04-12 00:17:36 +00:00
64a9f33ffa
* src/login.c: Fix the count of failures before login exits in case of PAM enabled configurations.
nekral-guest
2009-04-12 00:08:26 +00:00
bc0f4fa509
* man/passwd.1.xml: Document that passwd uses PAM to authenticate and change passwords on PAM-enabled builds.
nekral-guest
2009-04-11 23:32:00 +00:00
681c1d12b5
* src/newusers.c: Add more information to the mkdir and chown failure messages.
nekral-guest
2009-04-11 23:30:44 +00:00
ce156b578f
* man/po/fr.po: Updated some login.defs entries. Thanks to Belkacem Abbas.
nekral-guest
2009-04-11 22:41:00 +00:00
5a56996eef
* man/es/Makefile.am: Disable the distribution of Spanish manpages. They are outdated. Please contact pkg-shadow-devel@lists.alioth.debian.org if you wish to provide updates.
nekral-guest
2009-04-11 18:57:14 +00:00
554d4f6b95
* src/usermod.c, src/useraddd.c: Fix the usage string so that it does not change depending on the configure option. Use a format.
nekral-guest
2009-04-11 18:39:56 +00:00
80a30dfe6f
* src/gpasswd.c: Fix the usage of the unused macro.
nekral-guest
2009-04-11 18:37:59 +00:00
cab74eddef
* lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A shadow entry is now sufficient for agecheck. Remove the first passwd entry parameter.
nekral-guest
2009-04-11 18:37:08 +00:00
42590e062f
* src/userdel.c: Rename argv to args to avoid nameclash with the main() parameters.
nekral-guest
2009-04-11 16:52:45 +00:00
3fdefd3e40
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping() if Zflg is set.
nekral-guest
2009-04-11 16:47:32 +00:00
192fa18195
Added TODO item.
nekral-guest
2009-04-11 16:24:06 +00:00
60a7cc9d7c
* libmisc/getgr_nam_gid.c: Added support for NULL argument. * libmisc/chowntty.c: Reuse getgr_nam_gid(), and get rid of atol().
nekral-guest
2009-04-11 16:23:21 +00:00
e27f4a91b9
Tag one of the remaining strtol.
nekral-guest
2009-04-11 16:08:00 +00:00
ca1bb50c24
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system accounts, return the first unused ID, starting from the max value. This could be useful later to increase the static IDs range.
nekral-guest
2009-04-11 16:00:45 +00:00
8d136297c4
* NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map SELinux user for user's login. * NEWS, src/usermod.c, man/usermod.8.xml: Likewise. * libmisc/system.c, libmisc/Makefile.am, lib/prototypes.h: Added safe_system(). Used to run semanage. * lib/prototypes.h, libmisc/copydir.c: Make a selinux_file_context() an extern function. * libmisc/copydir.c: Reset SELinux to create files with default contexts at the end of copy_tree(). * NEWS, src/userdel.c: Delete the SELinux user mapping for user's login.
nekral-guest
2009-04-11 15:34:10 +00:00
2c400eff94
* src/useradd.c (get_defaults): Close the default file after the default values were read.
nekral-guest
2009-04-11 14:55:49 +00:00
46861e6bd8
Removed declaration of ep. No more used. Re-indent.
nekral-guest
2009-04-10 22:35:32 +00:00
84f5ca951c
* lib/getdef.c: Use getlong instead of strtol/strtoul. * libmisc/getlong, lib/getlong.c, libmisc/Makefile.am, lib/Makefile.am: getlong.c moved from libmisc/ to lib/.
nekral-guest
2009-04-10 22:35:26 +00:00
9a7f5c6b16
* lib/shadow.c: Replace strtol() by getlong(). Also detect more issues in a numerical shadow entry field.
nekral-guest
2009-04-10 22:35:14 +00:00
686ac847aa
Revert " * lib/sgetspent.c: Removed (is not used / compiled) anymore."
nekral-guest
2009-04-10 22:35:01 +00:00
e075442345
* lib/sgetspent.c: Removed (is not used / compiled) anymore.
nekral-guest
2009-04-10 22:34:55 +00:00
c7258f22d8
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more issues in a numerical shadow entry field.
nekral-guest
2009-04-10 22:34:49 +00:00
304b0ec202
* src/chage.c: expdays renamed to expdate. It is a date, even if expressed in a number of days since Jan 1, 1970. * src/chage.c: Likewise: lastday renamed to lstchgdate. Also fix the --lastday documentation.
nekral-guest
2009-04-10 22:34:42 +00:00
52238dd6a7
* src/chage.c: More strtol() replaced by getlong().
nekral-guest
2009-04-10 22:34:36 +00:00
66e39884e2
* lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is NOT defined.
nekral-guest
2009-04-10 22:34:29 +00:00
d548bf4742
* src/passwd.c: Replace getnumber() by getlong(). This permits to get rid of another strtol().
nekral-guest
2009-04-10 22:34:23 +00:00
1675ca3378
* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed for strtol and errno, and do not include "defines.h" (not needed).
nekral-guest
2009-04-10 22:34:17 +00:00
77459dc27d
* src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c, libmisc/Makefile.am, lib/prototypes.h: Moved getgr_nam_gid() from src/useradd.c and src/usermod.c to libmisc/getgr_nam_gid.c.
nekral-guest
2009-04-10 22:34:10 +00:00
ffd3e43ad8
* src/useradd.c: Get rid of strtol. * src/useradd.c: Provide better warning in case a default GROUP or INACTIVE value is not valid in /etc/default/useradd.
nekral-guest
2009-04-10 22:34:04 +00:00
4b15eefd3c
Added todo items.
nekral-guest
2009-04-05 23:50:58 +00:00
b9df8b5817
* configure.in: Prepare the next 4.1.3 release.
nekral-guest
2009-04-05 22:35:12 +00:00
ac52639b77
* libmisc/setugid.c libmisc/age.c (setup_uid_gid): is_console is never set ifndef USE_PAM. Change the prototype of setup_uid_gid() when USE_PAM is not defined. This permits to remove add_groups from PAM builds. setup_uid_gid is already subject to HAVE_INITGROUPS.
nekral-guest
2009-04-05 22:33:00 +00:00
a51954203e
* lib/prototypes.h, libmisc/addgrps.c: restrict add_groups() to ifndef USE_PAM. * lib/prototypes.h: Remove the declaration of add_cons_grps(). The function does not exist. * libmisc/age.c (setup_uid_gid): is_console is never set ifndef USE_PAM. Change the prototype of setup_uid_gid() when USE_PAM is not defined. This permits to remove add_groups from PAM builds. setup_uid_gid is already subject to HAVE_INITGROUPS. * libmisc/pwd2spwd.c (pwd_to_spwd): pwd_to_spwd() is not used in PAM builds.
nekral-guest
2009-04-05 22:29:42 +00:00
021066a980
* src/passwd.c: do_update_age is only used ifndef USE_PAM. Make it more explicit.
nekral-guest
2009-04-05 22:04:31 +00:00
a1cac18ac3
* src/useradd.c: Set errno to 0 before calling strtol.
nekral-guest
2009-04-05 22:02:50 +00:00
2a3b84b888
* libmisc/isexpired.c: If there are no shadow entry, there is no need to convert the password entry to a shadow entry. The password is valid.
nekral-guest
2009-04-05 22:02:00 +00:00
2f85113366
* man/shadow.5.xml: Rewrote to mention the meaning of special values.
nekral-guest
2009-04-05 21:23:35 +00:00
b23443630c
* libmisc/pwd2spwd.c, src/chpasswd.c, src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c, src/useradd.c, src/usermod.c: On Jan 01, 1970, do not set the sp_lstchg field to 0 (which means that the password shall be changed during the next login), but use -1 (password aging disabled). * src/passwd.c: Do not check sp_min if sp_lstchg is null or -1.
nekral-guest
2009-04-05 21:23:27 +00:00
7585fa0fe9
* src/chage.c: When no shadow entry exist, thedefault sp_lstchg value should be -1 (no aging) rather than 0 (password must be changed). * src/chage.c: For password expiration and inactivity, indicate that the password must be changed when sp_lstchg is null rather than indicating that expiration and inactivity are not enabled.
nekral-guest
2009-04-05 21:23:17 +00:00
d4fc74e43c
* lib/sgetpwent.c, lib/sgetgrent.c: Use get_uid and get_gid to validate the UIDs or GIDs instead of atoi/strtol.
nekral-guest
2009-03-21 20:29:58 +00:00
a1dd26d2d6
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am, lib/get_gid.c, lib/get_uid.c, lib/Makefile.am: get_uid.c and get_gid.c moved from libmisc/ to lib/.
nekral-guest
2009-03-21 20:24:37 +00:00
503976fc6a
* src/grpck.c (check_members): When a member is removed, do not increase the index. * src/grpck.c: Fix typo in messages and comments.
nekral-guest
2009-03-21 19:42:48 +00:00
dab1523df5
* libmisc/sulog.c: Likewise for the su log.
nekral-guest
2009-03-21 19:32:14 +00:00
a65c2c9b18
* src/vipw.c: Likewise for the backup file.
nekral-guest
2009-03-21 19:28:02 +00:00
5331930716
* src/usermod.c: Likewise for the faillog and lastlog file.
nekral-guest
2009-03-21 19:25:02 +00:00
96c7b12bc4
* src/useradd.c: Likewise for the default file, faillog, lastlog, and mail spool.
nekral-guest
2009-03-21 19:18:06 +00:00
5dd5f51700
* lib/commonio.c: Call fsync before closing the backup file. This ensures that the backup file is flushed to the storage medium.
nekral-guest
2009-03-21 19:12:00 +00:00
df7abc5447
Fixed TODO item.
nekral-guest
2009-03-15 21:43:24 +00:00
db7370d242
Added TODO items.
nekral-guest
2009-03-15 21:38:46 +00:00
a8e9fc86eb
* src/groupmod.c: Embed gshadow related cleanup in #ifdef SHADOWGRP.
nekral-guest
2009-03-15 21:38:08 +00:00
a402c4db3b
* src/usermod.c: get_number() replaced by getlong(). * src/usermod.c: When the user is renamed, make sure we do not override an user with the same name (in passwd or shadow).
nekral-guest
2009-03-15 21:34:20 +00:00
780af2653a
* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup stack only when the shadow group file is present.
nekral-guest
2009-03-15 21:32:26 +00:00
9372111aaa
* NEWS, src/userdel.c: Make sure the user exists in the shadow database before calling spw_remove(). * NEWS, src/userdel.c: When the user's group is removed, make sure the group is in the gshadow database before calling sgr_remove(). * src/userdel.c: Improve warning's wording.
nekral-guest
2009-03-15 21:29:16 +00:00