4146176c08
Added new usermod test: usermod -l fails if the gshadow file is locked.
nekral-guest2008-02-17 16:54:32 +00:00
33ba4c0628
Added new usermod test: usermod -l fails if the group file is locked.
nekral-guest2008-02-17 16:53:05 +00:00
3cf7c19a56
Added new usermod test: usermod -c does not check if the gshadow file is locked.
nekral-guest2008-02-17 16:49:21 +00:00
29f48bafae
Added new usermod test: usermod -c does not check if the group file is locked.
nekral-guest2008-02-17 16:37:31 +00:00
57da5c1045
Added new usermod test: usermod -G checks if the gshadow file is locked.
nekral-guest2008-02-17 16:34:38 +00:00
897f8481b2
Added new usermod test: usermod -G checks if the shadow file is locked.
nekral-guest2008-02-17 16:33:29 +00:00
2d428c52c9
Added new usermod test: usermod -G checks if the group file is locked.
nekral-guest2008-02-17 16:31:11 +00:00
9d4c337ca1
Added new usermod test: usermod -G checks if the passwd file is locked.
nekral-guest2008-02-17 16:27:47 +00:00
dfff7d3cfe
Added new usermod test: usermod renames the user when requested to add an user to a group it is already a member and to rename this user.
nekral-guest2008-02-17 16:14:58 +00:00
67ac228c4a
Added new usermod test: usermod does not fail when requested to add the user to a group it is already a member.
nekral-guest2008-02-17 15:54:10 +00:00
9e4d6448e6
Added new usermod test: usermod rename the user in the lists of members and uses the right username when adding the user to supplementary groups.
nekral-guest2008-02-17 15:46:27 +00:00
1cbb3cc320
Added new usermod test: usermod rename the user in the lists of members, when an user is renamed with -l.
nekral-guest2008-02-17 15:43:32 +00:00
280fcebae8
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.
nekral-guest2008-02-17 15:29:41 +00:00
30d2b24f04
Added new usermod test: usermod fails if asked to add an user to an unknown numerical group.
nekral-guest2008-02-17 14:50:55 +00:00
202fb5c463
Added new usermod test: usermod fails if asked to add an user to an unknown named group.
nekral-guest2008-02-17 14:46:49 +00:00
c203282681
Added new usermod test: usermod can change the list of supplementary groups, with numerical groups.
nekral-guest2008-02-17 13:57:07 +00:00
1937662816
Added new usermod test: usermod can clear the list of supplementary groups.
nekral-guest2008-02-17 13:53:24 +00:00
d8b44cb331
Added new usermod test: usermod can change the list of supplementary groups.
nekral-guest2008-02-17 13:49:43 +00:00
4399f64323
Added new usermod test: usermod keeps links or devices when it moves the user's home directory.
nekral-guest2008-02-17 13:36:39 +00:00
d17cbbac9f
Added new usermod test: usermod does not move non-directory (regular file).
nekral-guest2008-02-17 13:25:52 +00:00
d073acd750
12_usermod_move_homedir_dev_null test-case tests that usermod does not move devices (/dev/null).
nekral-guest2008-02-17 13:25:13 +00:00
1f7ad41762
Added new usermod test: usermod does not move non-directory.
nekral-guest2008-02-17 13:16:30 +00:00
319a16fc84
Added new usermod test: usermod can move the user's home directory.
nekral-guest2008-02-17 13:05:07 +00:00
6790d09e85
Added new userdel test: userdel does not delete the user's home directory if it is not owned by the user.
nekral-guest2008-02-17 12:59:45 +00:00
de17d213b2
Added new userdel test: userdel can delete the user's home directory.
nekral-guest2008-02-16 17:02:33 +00:00
e1f8184dc3
Added new userdel test: userdel removes the user from lists in /etc/group and /etc/gshadow.
nekral-guest2008-02-16 16:26:37 +00:00
91a8f30a61
Added new userdel test: userdel removes the user from the admins lists of /etc/gshadow.
nekral-guest2008-02-16 16:00:57 +00:00
c155f2e39f
Added new userdel test: userdel removes the user from the member lists of /etc/gshadow.
nekral-guest2008-02-16 15:46:40 +00:00
51f7bfdfde
Added new userdel test: userdel removes the user from the member lists of /etc/group.
nekral-guest2008-02-16 15:22:08 +00:00
7fb73b155e
Added tests to the automatic test suite: usertools/01/17_useradd_create_homedir.test usertools/01/18_userdel_remove_homedir.test usertools/01/19_userdel_delete_user_in_group.test usertools/01/20_usermod_change_homedir.test usertools/01/21_usermod_change_and_move_homedir.test usertools/01/22_usermod_new_groups.test usertools/01/23_usermod_add_groups.test usertools/01/24_usermod_new_groups_remove_old_groups.test
nekral-guest2008-02-16 14:39:19 +00:00
b088dfeff4
Added new newusers test: newusers can update the password of an existing user with a pre-encrypted password.
nekral-guest2008-02-16 14:25:23 +00:00
1dbaebde63
Add last three tests: newusers/37_create_user_encrypt_MD5/newusers.test newusers/38_update_password_no_shadow_encrypted/newusers.test newusers/39_update_password_no_shadow_password_encrypted/newusers.test
nekral-guest2008-02-16 14:20:56 +00:00
1023d83acd
Added new newuser test: newusers can update the password of an existing user with a pre-encrypted password, when this user has no shadow entry.
nekral-guest2008-02-16 14:16:49 +00:00
d07207326e
Added new newuser test: newusers can update the password of an existing user in the passwd file, with a pre-encrypted password.
nekral-guest2008-02-16 14:11:43 +00:00
2697c9817e
Added new newuser test: newusers can encrypt the passwords with the MD5 algorithm.
nekral-guest2008-02-16 14:06:47 +00:00
80ef1db3b3
One AUDIT_USER_START remained. Replace it with AUDIT_CHGRP_ID also.
nekral-guest2008-02-14 18:51:37 +00:00
a8bc585e33
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.
nekral-guest2008-02-14 18:35:51 +00:00
159fbaacc0
Added new newuser test: newusers can create a new user, and provide an already encrypted password.
nekral-guest2008-02-11 22:46:08 +00:00
f276efcb29
Added new newuser test: newusers can read the list from stdin.
nekral-guest2008-02-11 22:43:23 +00:00
9300464b43
Added new newuser test: newusers can update the password of an existing user, when there is no shadow file.
nekral-guest2008-02-11 22:42:01 +00:00
52635a7d74
Added new newuser test: newusers can update the password of a user which does not exist in shadow.
nekral-guest2008-02-11 22:37:17 +00:00
e47fc28584
Added new newuser test: newusers fails if a user references a group which exist in gshadow and not in group.
nekral-guest2008-02-11 22:33:46 +00:00
37385ee60d
dded new newuser test: newusers fails with invalid GID.
nekral-guest2008-02-11 22:29:35 +00:00
7b44b22213
Added new newuser test: newusers can create a new user and new group with different names.
nekral-guest2008-02-11 22:19:33 +00:00
fa2b2e905d
Added new newuser test: newusers fails if the groupname is invalid.
nekral-guest2008-02-11 22:10:07 +00:00
494e15df37
Added new newuser test: newusers fails if the username is invalid.
nekral-guest2008-02-11 22:04:57 +00:00
851446c287
Added new newuser test: newusers fails when there are no more available GIDs.
nekral-guest2008-02-11 22:01:32 +00:00
0d183e6b94
Added new newuser test: newusers fails when there are no more available UIDs.
nekral-guest2008-02-11 21:52:56 +00:00
ffe583db50
Added new newuser test: newusers fails with invalid UID.
nekral-guest2008-02-11 21:41:42 +00:00
fffcc837ac
Added new newuser test: newusers fails with negativ UID.
nekral-guest2008-02-11 21:38:56 +00:00
1712aa91e9
Added new newuser test: newusers reuses a lower GID when GID_MAX is used.
nekral-guest2008-02-11 21:30:59 +00:00
ee5bd9c521
Rewrite rational: newusers reuses a lower UID when UID_MAX is used.
nekral-guest2008-02-11 21:30:29 +00:00
25b03d8cd7
Added new newuser test: newusers does not increment the UID when UID_MAX is used.
nekral-guest2008-02-11 21:25:06 +00:00
4473bc6264
Added new newuser test: newusers can add multiple users.
nekral-guest2008-02-11 21:20:02 +00:00
7be39fc4aa
Added missing execution of 19_update_keep-old-home.
nekral-guest2008-02-11 21:11:50 +00:00
f4d0f69e35
Added new grpunconv test: grpunconv checks if the gshadow file is locked.
nekral-guest2008-02-11 21:07:16 +00:00
afabc3beb8
Added new grpunconv test: grpunconv checks if the group file is locked.
nekral-guest2008-02-11 21:06:13 +00:00
7bbe585f1e
Added new grpunconv test: grpunconv exits successfully when the gshadow file does not exist.
nekral-guest2008-02-11 20:59:31 +00:00
3ff563252e
Added new grpconv test: grpconv tests if gshadow is locked.
nekral-guest2008-02-11 20:50:56 +00:00
3354e2dce7
Do not fail if the expected user is not present in the file, give an useful warning.
nekral-guest2008-02-11 19:47:53 +00:00
ca42fa251a
Accept password file with multiple password specified as @PASS_MD5 ...@
nekral-guest2008-02-11 19:46:33 +00:00
bab3f92304
Accept password file with multiple password specified as @PASS_DES ...@
nekral-guest2008-02-11 19:44:02 +00:00
1599d3d128
* 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.
nekral-guest2008-02-10 21:35:17 +00:00
a5f949165a
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.
nekral-guest2008-02-10 20:25:39 +00:00
ead95673a5
Set the shadow's password instead of the passwd's password. Fix wrong cut&paste.
nekral-guest2008-02-10 19:14:20 +00:00
f8679b385a
No need to check audit_fd, audit_logger() will take care of this.
nekral-guest2008-02-03 21:40:01 +00:00
ae5db5d36b
Really log the expiration date change as human readable strings instead of integers.
nekral-guest2008-02-03 21:37:45 +00:00
fdae41eb63
Use a function to convert the dates from /etc/shadow to human readable dates.
nekral-guest2008-02-03 21:30:47 +00:00
25433a17e7
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
nekral-guest2008-02-03 18:51:11 +00:00
737806a53a
Add ideas for new tests in the testsuite.
nekral-guest2008-02-03 17:58:16 +00:00
feb2e41181
Do not translate the fromhost variable. It is always used for syslog messages.
nekral-guest2008-02-03 17:57:43 +00:00
6e9078f16c
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.
nekral-guest2008-02-03 17:53:21 +00:00
4e01ea6c33
* 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).
nekral-guest2008-02-03 17:45:58 +00:00
65ed10d75c
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.
nekral-guest2008-02-03 17:23:58 +00:00
aed929ae90
Add libmisc/find_new_ids.c to the sources of the libmisc library.
nekral-guest2008-02-03 16:57:21 +00:00
04190741e7
Use the find_new_uid() and find_new_gid() from the library instead of the local functions.
nekral-guest2008-02-03 16:56:23 +00:00
72cfa974d8
Add libmisc/find_new_ids.c to the sources of the libmisc library.
nekral-guest2008-02-03 16:55:37 +00:00
a1ae1c4fba
The new libmisc/find_new_ids.c file contains translatable strings.
nekral-guest2008-02-03 16:53:53 +00:00
e21f90fd68
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).
nekral-guest2008-02-03 16:53:07 +00:00
be7c51d27a
New function to find a group by its GID on the local database.
nekral-guest2008-02-03 16:51:08 +00:00
7344e055be
New function to find an user by its UID on the local database.
nekral-guest2008-02-03 16:50:14 +00:00
57f713e426
* 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.
nekral-guest2008-02-03 16:28:03 +00:00
5672b53263
French translation update (obvious things only)
bubulle2008-02-03 06:20:06 +00:00
3755086645
Fix comment. find_new_fid is no more called is the user specified a group ID.
nekral-guest2008-01-27 14:31:23 +00:00
ae99674e9b
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.
nekral-guest2008-01-26 17:41:20 +00:00
28a9441f4f
Replace printf by puts for fixed strings. This would avoid issues caused by formats introduced in translated strings.
nekral-guest2008-01-24 21:07:14 +00:00
3dd5866244
Replace printf by puts for fixed strings. This would avoid issues caused by formats introduced in translated strings.
nekral-guest2008-01-24 20:42:12 +00:00