01f9705dd5
Replace printf by puts for fixed strings. This would avoid issues caused by formats introduced in translated strings.
nekral-guest2008-01-24 19:38:06 +00:00
de239d9b01
Replace printf by puts for fixed strings. This would avoid issues caused by formats introduced in translated strings.
nekral-guest2008-01-24 18:39:05 +00:00
f4b9f1b2e0
adduser was a typo. Move the adduser entries to the useradd section.
nekral-guest2008-01-23 23:48:39 +00:00
926aeec06a
Apply Christian's recommendation: s/can't get unique/no more available/
nekral-guest2008-01-23 22:31:38 +00:00
934ac07b06
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.
nekral-guest2008-01-23 21:50:27 +00:00
0d1be15e0f
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.
nekral-guest2008-01-23 21:19:08 +00:00
294e3a632e
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.
nekral-guest2008-01-23 20:08:16 +00:00
229e6cbdd8
Fix typo in comment: s/find_new_uid/find_new_gid/
nekral-guest2008-01-22 22:59:06 +00:00
53561134a9
* s/gid/GID/ in message string. * Set this string for translation.
nekral-guest2008-01-22 22:57:55 +00:00
7535467358
* 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).
nekral-guest2008-01-22 21:42:48 +00:00
20153121be
Fix typo. Remove "the" from "All entries in the <filename></filename> are checked [...]"
nekral-guest2008-01-22 21:15:58 +00:00
caf3f2603e
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).
nekral-guest2008-01-22 21:13:43 +00:00
03e5a3a181
Document the options with a list of options, as in the pwck(8) manpage.
nekral-guest2008-01-22 20:56:13 +00:00
ae8cbbc34d
* 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.
nekral-guest2008-01-21 23:33:43 +00:00
b082ebead2
* 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.
nekral-guest2008-01-12 21:09:46 +00:00
f77c7d061f
Add script to generate coverage analysis of the testsuite.
nekral-guest2008-01-12 17:33:09 +00:00
c3d6c6d5ce
Update to Standards 3.7.3
bubulle2008-01-12 15:54:32 +00:00
b2b7993cd0
Add tests for the different crypt methods (and different way to specify which one shall be used).
nekral-guest2008-01-12 15:49:28 +00:00
89c07802de
Add common utility to compare the password and group files (with support of variable data (password salt, date, etc.))
nekral-guest2008-01-12 15:47:10 +00:00
285046bd1e
Update the list of su and usertools tests.
nekral-guest2008-01-12 15:44:40 +00:00
41d38991df
Test usage of the default values from etc/default/useradd when an user is created.
nekral-guest2008-01-12 15:43:37 +00:00
517cc9fd79
Test setting of default values in useradd.default. Start with different default values (compared to usertools/02)
nekral-guest2008-01-12 15:38:59 +00:00
8b991cdd58
Add tests to test the options used to set the default values in the useradd.default file.
nekral-guest2008-01-12 15:18:12 +00:00
b1487cf3e6
Switch to the new infrastructure and split the old test in more atomic tests.
nekral-guest2008-01-12 15:10:58 +00:00
e158a89d37
Switch to the new config infrastructure.
nekral-guest2008-01-12 15:08:54 +00:00
632a264077
Test the default ENV_SUPATH and ENV_PATH. Same tests as su/08, with commented ENV_SUPATH and ENV_PATH in login.defs.
nekral-guest2008-01-12 14:38:01 +00:00
201d2b1608
Same tests as su/02, with a different config.
nekral-guest2008-01-12 14:36:02 +00:00
a48e84f0d6
Check non-log of successful su with SYSLOG_SU_ENAB set to "no".
nekral-guest2008-01-12 14:23:07 +00:00
46b0cb2db2
Split the test script in more atomic tests.
nekral-guest2008-01-12 13:25:11 +00:00
bd4b7d0c23
Move to the new config infrastructure.
nekral-guest2008-01-12 13:23:19 +00:00
960b18e52e
Patches refreshed for 4.1.0
bubulle2008-01-12 13:17:04 +00:00
dfcdbb7db5
Improve the securetty config file for Linux: Add ttyS1. Better comments for the ttyS and xen consoles. Add a note for the devfs consoles. They are no more needed for most users. Closes: #454584. Thanks to Bastian Blank.
nekral-guest2008-01-11 22:26:27 +00:00
e4d00c832f
Split run.exp and run.exp2 in separate tests for each options/combinations.
nekral-guest2008-01-06 20:34:19 +00:00
4cff2127e3
Switch to the new config file infrastructure.
nekral-guest2008-01-06 20:21:47 +00:00
837e8bcd05
Updated tests to the new infrastructure.
nekral-guest2008-01-06 20:16:25 +00:00
edb3448880
New config infrastructure. The config directory will be copied in the root directory of the chroot, and the overwritten files will be restored at the end of the test.
nekral-guest2008-01-06 20:02:39 +00:00
2c6ecc3e02
Split run in 2 tests su to root and su to user.
nekral-guest2008-01-06 19:58:46 +00:00
fe6fa70efe
Use one log file per test. This should ease the debugging. The big testsuite.log is kept.
nekral-guest2008-01-06 19:32:49 +00:00
abbf45f14f
Make sure the messages of tools will not be localized in the testsuite.
nekral-guest2008-01-06 19:31:28 +00:00
85febc5729
Avoid setting the password to a const empty string, but set the first char to \0. This avoids a warning.
nekral-guest2008-01-06 19:26:58 +00:00
e663f6c0b4
* 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().
nekral-guest2008-01-06 14:50:26 +00:00
8a1abbe80b
* 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).
nekral-guest2008-01-06 14:19:32 +00:00
39c9007f67
* 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.
nekral-guest2008-01-06 13:57:17 +00:00
ee268550d9
Remove prototypes for __gr_dup() and __gr_set_changed().
nekral-guest2008-01-06 13:52:21 +00:00
e5b7987764
Set the method string as a constant string.
nekral-guest2008-01-06 13:49:00 +00:00
1d63dfd1d4
* Remove prototype for sgetgrent(). * Add the name of the parameters for merge_group_entries() and split_groups().
nekral-guest2008-01-06 13:38:16 +00:00
9d6d2de4d3
Fix typo: s/rend compte indiqué/rend le compte indiqué/
nekral-guest2008-01-06 13:32:25 +00:00
9104a7a4a4
* Remove prototype of check_su_auth(). It is redundant with prototypes.h. * isgrp() is static.
nekral-guest2008-01-06 13:30:18 +00:00
1520a0ae3e
* libmisc/obscure.c: Tag the old' parameter of palindrome(), similar(), and simple() as unused. * libmisc/loginprompt.c: Tag the sig' parameter of login_exit() as unused. * src/expiry.c: Tag the sig' parameter of catch_signals() as unused. * src/su.c: Tag the sig' parameter of catch_signals() as unused. * src/su.c: Add int parameter to the prototype of oldsig(). * src/login.c: Tag the sig' parameter of alarm_handler() as unused. * src/sulogin.c: Tag the sig' parameter of catch_signals() as unused. * libmisc/getdate.y: Tag the `string' parameter of yyerror() as unused. * libmisc/getdate.y: The string provided to yyerror() is const. * libmisc/getdate.y: Fix the prototypes of yylex() and yyerror().
nekral-guest2008-01-06 13:20:25 +00:00
7b22265d4e
* Remove teh macro definition of SETXXENT_TYPE, SETXXENT_RET, and SETXXENT_TEST. They were used by the now removed pwent.c and grent.c. * Remove the definition of PASSWD_PAG_FILE, GROUP_PAG_FILE, SHADOW_PAG_FILE, and SGROUP_PAG_FILE. They are never used. * Don't include "snprintf.h". The file does not exist in shadow. * Add new macro unused to tag unused parameters.
nekral-guest2008-01-06 13:12:09 +00:00
116a76e528
Remove prototypes for __pw_del_entry(), __pw_get_head(), __spw_del_entry(), and __spw_get_head().
nekral-guest2008-01-06 13:00:17 +00:00
93177a5615
Assume optarg and optind are declared in <getopt.h>.
nekral-guest2008-01-06 12:52:23 +00:00
0c867d23ad
Remove the pw_name argument of new_pw_passwd. Use the user_newname global variable instead. This avoid using a parameter with the same name as a function.
nekral-guest2008-01-06 12:50:22 +00:00
5c6f68cd8f
* Removed unused gid parameter of syslog_sg(). * The loginname and tty buffers are never changed. Add the const qualifier.
nekral-guest2008-01-06 12:31:06 +00:00
d85b926a14
The crypt_method string always points to a constant string. Add the const qualifier.
nekral-guest2008-01-06 12:26:20 +00:00
8289eabc55
Remove prototype of l64a() (not used in pwunconv).
nekral-guest2008-01-06 12:12:30 +00:00
58176a821d
Remove prototypes for __gr_del_entry(), __gr_get_head(), __sgr_del_entry(), and __sgr_get_head().
nekral-guest2008-01-06 12:09:38 +00:00
4cdbd1fa1d
* src/login_nopam.c: Use an ANSI prototype for resolve_hostname() instead of K&R prototype. * src/login_nopam.c: Fix the prototypes of list_match(), user_match(), from_match(), string_match(). There were no parameters in the prototypes. * src/login_nopam.c: Fix the prototypes of the function parameter match_fn of list_match().
nekral-guest2008-01-06 12:07:42 +00:00
0e07f3e48d
Remove the src parameter of copy_special(). The entry's information are taken from the stat structure.
nekral-guest2008-01-06 12:02:24 +00:00
569a3b8e59
* libmisc/console.c, libmisc/ulimit.c, lib/sgetgrent.c, lib/sgetpwent.c: Include "prototypes.h" to make sure the exported prototypes are the ones used for the definition of functions. * lib/prototypes.h: Added prototypes for __gr_del_entry(), __gr_get_db(), __gr_get_head(), __gr_set_changed(), __gr_dup(), __pw_del_entry(), __pw_get_db(), __pw_get_head(), __pw_dup(), sgetgrent(), sgetpwent(), __sgr_del_entry(), __sgr_dup(), __sgr_get_head(), __sgr_set_changed(), __spw_get_head(), __spw_del_entry(), __spw_dup(). * lib/prototypes.h: Removed prototype for is_listed(). * lib/prototypes.h: Added name of the check_su_auth()'s parameters. * lib/groupio.h: Removed prototypes for __gr_dup() and __gr_set_changed(). * lib/sgroupio.c: Removed prototypes for putsgent(), sgetsgent(), and __gr_get_db(). * lib/sgroupio.h: Removed prototypes for __sgr_dup() and __sgr_set_changed(). * lib/shadowio.c: Removed prototype for __pw_get_db(). * lib/pwio.c: Removed prototype for sgetpwent() and putpwent(). * lib/shadowio.h: Removed prototypes for __spw_dup() and __spw_set_changed(). * lib/pwio.h: Removed prototypes for __pw_dup() and __pw_set_changed(). * lib/commonio.h: Add protection against multiple inclusions. * lib/prototypes.h: Include commonio.h (needed for the __xx_del_entry() functions).
nekral-guest2008-01-06 11:59:01 +00:00
747e174bec
Add documentation for the new --password options.
nekral-guest2008-01-05 17:25:00 +00:00
462be08456
* lib/prototypes.h: Add the dolastlog() prototype. * lib/prototypes.h: Typo: login.c -> loginprompt.c * src/login.c: Remove declaration of dolastlog(). * libmisc/log.c: dolastlog() should not have been changed to static. Include prototypes.h instead.
nekral-guest2008-01-05 16:44:28 +00:00
db0dddc6e9
* libmisc/pwdcheck.c: Do not include <pwd.h>. Include <shadow.h> and "pwauth.h" only when compiled without PAM support. * src/chfn.c, src/chsh.c: Do not include <shadow.h> * lib/commonio.c: Do not include <shadow.h>. Do not include <pwd.h>. Include "nscd.h" instead of <nscd.h>. * configure.in: Do not check if shadow.h exist, but make sure it exists. * libmisc/pwdcheck.c, src/chfn.c, src/chsh.c, lib/defines.h, lib/shadowmem.c, lib/shadowio.c, lib/commonio.c: HAVE_SHADOW_H is no more needed (shadow.h should always exist).
nekral-guest2008-01-05 16:33:43 +00:00
5a4848c8cc
do_pam_passwd should not have been defined static, prototypes.h needed to be included instead.
nekral-guest2008-01-05 15:41:58 +00:00
6cf5b05493
Remove prototype of putgrent(), add parameter's name of sgetgrent().
nekral-guest2008-01-05 14:35:13 +00:00
f8a95f7ca1
Add option --password to groupadd and groupmod (similar to useradd and usermod).
nekral-guest2008-01-05 14:17:43 +00:00
e94d2da45e
Remove the declaration of getutent(), getutline(), setutent(), and endutent() which are declared in <utmp.h>
nekral-guest2008-01-05 14:09:56 +00:00
8d440a2a52
stat shadows another stat variable. Remove this variable, and directly check the result of getfscreatecon().
nekral-guest2008-01-05 14:01:34 +00:00
616ad5252d
Changelog entry forgotten in previous src/gshadow.c commit: * list() is an external function. DO not shadow it with a static function. The internal list() was renamed build_list().
nekral-guest2008-01-05 13:58:56 +00:00
8d9c39789b
The prototypes of fgetsx() and fputsx() are already defined in prototypes.h. Remove the declaration of these functions.
nekral-guest2008-01-05 13:56:21 +00:00
bbb9470661
loginsh is a global variable, use newshell for the update_shell()'s parameter.
nekral-guest2008-01-05 13:54:39 +00:00
f11bbd3b70
login_prompt is the name of a function, use loginprompt for the internal variable.
nekral-guest2008-01-05 13:53:14 +00:00
239b2d7bee
Make a proper prototype for the main() function declaration. (add void)
nekral-guest2008-01-05 13:51:43 +00:00