9fda9f5c28
* libmisc/cleanup.c: Fix del_cleanup. The arguments were not desynchronized with the cleanup functions. * libmisc/cleanup.c: cleanup_function_args is an array of void pointer, not strings.
nekral-guest
2009-03-15 21:15:48 +00:00
80135cdc17
* libmisc/find_new_gid.c: Fix find_new_gid() the current group database was not taken into account.
nekral-guest
2009-03-15 21:12:57 +00:00
d1dac25379
* man/po/Makefile.in.in: xml2po cannot exclude one entity for expansion. Make sure config.xml does not exist when the POT file is created in order to keep the configurations in the POT file * man/generate_translations.mak: make sure config.xml does not exist neither when the translated XML is generated. Add the missing %config; (strip out by xml2po). and make sure config.xml is present when the translated manpage is generated. * man/generate_mans.mak: config.xml is needed for the generation of manpages (already in the .deps for the English manpages, but needed for the translations). * man/Makefile.am: Added missing CREATE_HOME.xml.
nekral-guest
2009-03-14 16:18:06 +00:00
5a5cf15430
* man/lastlog.8.xml: Document that there might be entries, for deleted users, that are not displayed.
nekral-guest
2009-03-14 11:11:04 +00:00
884a2de437
* man/chgpasswd.8.xml, man/chpasswd.8.xml: Fix the man page in case SHA crypt is not supported.
nekral-guest
2009-03-14 11:09:57 +00:00
5349c79d12
* man/vipw.8.xml: MAX_MEMBERS_PER_GROUP is not used by vipw and vigr.
nekral-guest
2009-03-14 11:08:39 +00:00
9ee627fe02
* man/login.defs.5.xml: Indicate that sg uses the same variables as newgrp. * man/login.defs.5.xml: vipw does not use any variable. * man/login.defs.5.xml: In PAM enabled configurations, login still uses some login.defs variables.
nekral-guest
2009-03-13 23:17:43 +00:00
1def19ecea
* man/usermod.8.xml: use a <replaceable> instead of a <emphasis remap='I'>.
nekral-guest
2009-03-13 23:14:18 +00:00
dc857372ed
* man/newusers.8.xml: Document the behavior of newusers for each field. * man/newusers.8.xml: Do not add the note on PAM on non-PAM enabled configurations.
nekral-guest
2009-03-13 23:12:06 +00:00
730fc8fc33
* src/faillog.c: Added support for the specification of a range of users with -u. * src/faillog.c: Do not call print_one() for users which do not exist. * src/faillog.c: Make sure the user's entry is not outside the faillog file and initialize the faillog structure in that case. * src/faillog.c: Move print_one() closer to print(). * src/faillog.c: reset(), setmax(), set_locktime() can also change entries of user which do not exist. * src/faillog.c: reset(), setmax() and set_locktime() shall not create entries for users which have no entries if the value has to be set to 0. * src/faillog.c: reset(), setmax() and set_locktime(): better handling of users whose entry is outside the faillog file. * src/faillog.c: Improved option handling. Options can now be specified in any order. * src/faillog.c: Improved warnings when options are not compatible or when the faillog cannot be open with the right mode. * src/faillog.c: Only fstat the faillog file once. * man/faillog.8.xml: Improved documentation.
nekral-guest
2009-03-13 22:49:20 +00:00
fafe281d31
* src/useradd.c, man/useradd.8.xml: Added long name for the -l option: --no-log-init.
nekral-guest
2009-03-13 22:30:38 +00:00
f98b47eb55
* src/chpasswd.c: Make sure the SHA related variables is not compiled when disabled at configuration time. * src/chgpasswd.c: Make sure the SHA related variables is not compiled when disabled at configuration time. * src/chgpasswd.c: Fix the test for getlong() failure.
nekral-guest
2009-03-13 22:28:27 +00:00
e3e64317e8
* src/newusers.c: Make sure the SHA related variables are not compiled when disabled at configuration time. * src/newusers.c: Added FIXME
nekral-guest
2009-03-13 22:26:35 +00:00
f2c8017df4
* src/gpasswd.c: Remove the documentation of options from the main() documentation. It will always be outdated here.
nekral-guest
2009-03-13 22:21:26 +00:00
bf9036d27a
* src/lastlog.c: lastlog variable renamed to ll to avoid name clash with the structure. * src/lastlog.c: check the offset in print_one() so that it is used for the display of one entry or a set of entries. * src/lastlog.c: Do not loop over the whole user database when -u is used with a single user. * src/lastlog.c: Check the size of the lastlog file so that we can identify failures to read.
nekral-guest
2009-03-13 22:20:20 +00:00
87da822c7f
* libmisc/salt.c: Removed l64a prototype. The libc declaration is non static, but the internal definition is static.
nekral-guest
2009-03-13 19:17:24 +00:00
47a57bced1
Add TODO item for the testsuite.
nekral-guest
2009-03-08 23:30:56 +00:00
28d7f83c87
* NEWS, src/newusers.c, src/usermod.c, src/useradd.c, src/groupmod.c, src/groupadd.c: Make sure no user or group are created with an ID set to -1.
nekral-guest
2009-03-08 20:43:15 +00:00
c1052e2df2
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set to -1.
nekral-guest
2009-03-08 20:29:22 +00:00
c9121d025f
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set to -1.
nekral-guest
2009-03-08 20:28:55 +00:00
0e2a3979f4
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am, lib/prototypes.h: Added get_uid() and get_gid() to parse user and group IDs.
nekral-guest
2009-03-08 20:26:56 +00:00
186ea0e203
* libmisc/getlong.c: Make sure the getlong argument is not empty.
nekral-guest
2009-03-08 20:21:24 +00:00
f47d9eba94
* contrib/adduser-old.c, contrib/adduser.c: Do not use the target of snprintf in one of the format's parameters.
nekral-guest
2009-03-07 16:32:11 +00:00
7368452e49
* man/groupmems.8.xml: groupmems does not create new user.
nekral-guest
2009-03-07 16:30:49 +00:00
635ef3bbf8
Added TODO items.
nekral-guest
2009-03-07 16:29:28 +00:00
b46fd9a2b4
* NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to Timur Birsh <taem@linukz.org>.
nekral-guest
2009-03-03 20:53:20 +00:00
a62e781248
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Avoid calling getgrent()/getpwent() after they return NULL. This caused LDAP to return at the beginning of the group/user entries.
nekral-guest
2009-02-22 23:23:15 +00:00
f2d6449374
* NEWS, src/gpasswd.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)). Log failures in case of permission denied.
nekral-guest
2009-01-26 22:03:37 +00:00
7b532f0b44
- newusers should use the CREATE_HOME variable (and new options are needed)
nekral-guest
2009-01-21 14:49:42 +00:00
af96cba0cc
* etc/login.defs: Improve the documentation of UMASK.
nekral-guest
2009-01-19 10:21:50 +00:00
6c85ca9661
* man/limits.5.xml: Remove space before an end of tag.
nekral-guest
2009-01-19 09:51:53 +00:00
de60b7b2de
* man/login.defs.d/UMASK.xml: Indicate how UMASK is used and limitations.
nekral-guest
2009-01-19 09:51:00 +00:00
d8c9236a18
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su is called with the -l option.
nekral-guest
2009-01-06 20:13:31 +00:00
2bb7007fcb
* libmisc/chkname.c: Use a bool when possible instead of integers. * libmisc/chkname.c: Add brackets and parenthesis.
nekral-guest
2008-12-23 22:42:22 +00:00
4c7d798307
* man/groupadd.8.xml, configure.in, man/config.xml.in: Use the real group name length limit in the documentation.
nekral-guest
2008-12-23 22:36:44 +00:00
3cb730bcfe
* 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.
nekral-guest
2008-12-23 00:44:29 +00:00
1b0a32d71c
* libmisc/cleanup_group.c: Fix compilation when compiled without shadow group support.
nekral-guest
2008-12-23 00:39:54 +00:00
ad7a108d60
* src/groupmod.c: Re-indent. * src/groupmod.c: Do not add the command synopsis to the main () documentation. This avoids outdated information.
nekral-guest
2008-12-22 22:06:27 +00:00
5b8ff14caf
* 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)).
nekral-guest
2008-12-22 21:52:43 +00:00
a438c2f184
* NEWS, src/gpasswd.c: Added support usernames with arbitrary length.
nekral-guest
2008-12-15 21:54:53 +00:00
c28c443d8f
* 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.
nekral-guest
2008-11-30 01:29:40 +00:00
93358ac3de
* src/su.c: (!USE_PAM) Provide visible information indicating that su was denied.
nekral-guest
2008-11-23 12:10:21 +00:00
0667aee3cc
* man/ja/login.1: Fix the path of the utmp and wtmp files.
nekral-guest
2008-11-23 00:16:53 +00:00
2297508f13
* man/su.1.xml: Fix the su synopsis. username is referenced in the manpage, not LOGIN.
nekral-guest
2008-11-23 00:16:10 +00:00
1a04bbb044
* libmisc/chowntty.c: Only closelog() when failure cause an exit.
nekral-guest
2008-11-23 00:06:56 +00:00
cf31f05cfb
* libmisc/chowntty.c: Improve the logs for fchown and fchmod failures.
nekral-guest
2008-11-23 00:05:39 +00:00
2b290e7abb
* 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.
nekral-guest
2008-11-22 23:56:51 +00:00
a324a7f13f
* 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.
nekral-guest
2008-11-22 23:56:11 +00:00
eb4097180b
* NEWS, libmisc/chowntty.c: Fix a race condition that could lead to gaining ownership or changing mode of arbitrary files.
nekral-guest
2008-11-22 23:22:16 +00:00
8d7e1faebf
Added todo items for pwck.
nekral-guest
2008-10-11 13:15:29 +00:00
c0311206c8
* 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).
nekral-guest
2008-10-11 12:59:02 +00:00
4d49f543dd
* src/login.c: Always check the return value of the pam_* APIs.
nekral-guest
2008-09-20 21:17:26 +00:00
d400af51fa
* 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.
nekral-guest
2008-09-20 20:20:19 +00:00
c8d2175981
* src/login.c: Erase the username later since it it used for the fake password check (in case of empty password).
nekral-guest
2008-09-20 20:05:22 +00:00
11c7543c76
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN sections.
nekral-guest
2008-09-20 20:03:04 +00:00
29d4533047
* src/login.c: Check that no username is specified with -r. * src/login.c: Make sure a username is specified with -f.
nekral-guest
2008-09-20 20:00:51 +00:00
c813e692a2
* src/login.c: Copy the name of the user authenticated by PAM to username. This simplify later logging (avoid USE_PAM conditional).
nekral-guest
2008-09-20 19:54:35 +00:00
65e32d850c
* src/login.c: Use a dynamic buffer for usernames.
nekral-guest
2008-09-20 19:44:12 +00:00
9f2ce12b28
* src/login.c: Existence of pam_user was already checked. pwd was already copied to pwent. Remove duplicated code.
nekral-guest
2008-09-20 16:23:04 +00:00
f4860274be
* src/login.c: check_flags() renamed process_flags(). All flag processing blocs moved to process_flags().
nekral-guest
2008-09-20 16:21:46 +00:00
1e3f19ad89
* src/login.c: Add missing closing }. This was probably never noticed because UT_ADDR is never defined.
nekral-guest
2008-09-20 14:21:51 +00:00
5b73a0492d
* src/login.c: Do not mix USE_PAM and !USE_PAM code.
nekral-guest
2008-09-20 14:17:20 +00:00
9fa519c983
* 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).
nekral-guest
2008-09-20 13:20:31 +00:00
c71e7861ed
* 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.
nekral-guest
2008-09-20 10:53:00 +00:00
f3df48ab4f
* 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.
nekral-guest
2008-09-14 13:42:10 +00:00
5df1f2f683
* 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.
nekral-guest
2008-09-13 18:03:50 +00:00
0833bc3cc0
* lib/commonio.c: Ignore the return value of umask() when the mask is set to the old value.
nekral-guest
2008-09-13 11:55:50 +00:00
b18d46e68d
* 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).
nekral-guest
2008-09-13 11:55:41 +00:00
d1f92a2225
* po/cs.po: Updated Czech translation. Thanks to Miroslav Kuře
nekral-guest
2008-09-13 11:55:30 +00:00
a279244709
* 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.
nekral-guest
2008-09-13 11:55:20 +00:00
b12db09e31
* man/groupadd.8.xml: Remove the list of (short) options from the SYNOPSIS. Replaced with [options] for consistency with other tools and maintainability.
nekral-guest
2008-09-13 11:55:08 +00:00
4d6385633f
New TODO item. useradd: - Add support for -K in -D mode
nekral-guest
2008-09-13 11:54:58 +00:00
8c060833c8
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.
nekral-guest
2008-09-13 11:54:49 +00:00
70c9eeff05
* configure.in: Fix the dependency of ACCT_TOOLS_SETUID on USE_PAM. Build failed with --without-libpam.
nekral-guest
2008-09-07 20:40:41 +00:00
f91b828708
* libmisc/copydir.c: Call utimes() after closing the file.
nekral-guest
2008-09-07 00:51:17 +00:00
828e9d095e
* libmisc/copydir.c, configure.in: Check for the presence of st_mtim and st_mtimensec, as for st_atim and st_atimensec.
nekral-guest
2008-09-07 00:05:38 +00:00
bab84a13ff
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).
nekral-guest
2008-09-06 23:46:44 +00:00
49f0d8b680
Support for blowfish was requested twice. Add link to a patch for libxcrypt.
nekral-guest
2008-09-06 22:52:35 +00:00