[Pkg-shadow-commits] r1870 - in debian/trunk/tests: . grouptools grouptools/gpasswd grouptools/gpasswd/01_gpasswd_change_member_list grouptools/gpasswd/01_gpasswd_change_member_list/config grouptools/gpasswd/01_gpasswd_change_member_list/config/etc grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/default grouptools/gpasswd/01_gpasswd_change_member_list/data grouptools/gpasswd/02_gpasswd_change_member_list grouptools/gpasswd/02_gpasswd_change_member_list/config grouptools/gpasswd/02_gpasswd_change_member_list/config/etc grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/default grouptools/gpasswd/02_gpasswd_change_member_list/data grouptools/gpasswd/03_gpasswd_change_member_list grouptools/gpasswd/03_gpasswd_change_member_list/config grouptools/gpasswd/03_gpasswd_change_member_list/config/etc grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/default grouptools/gpasswd/03_gpasswd_change_member_list/data grouptools/gpasswd/04_gpasswd_change_member_list grouptools/gpasswd/04_gpasswd_change_member_list/config grouptools/gpasswd/04_gpasswd_change_member_list/config/etc grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/default grouptools/gpasswd/04_gpasswd_change_member_list/data grouptools/gpasswd/05_gpasswd_change_member_list grouptools/gpasswd/05_gpasswd_change_member_list/config grouptools/gpasswd/05_gpasswd_change_member_list/config/etc grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/default grouptools/gpasswd/05_gpasswd_change_member_list/data grouptools/gpasswd/06_gpasswd_change_member_list grouptools/gpasswd/06_gpasswd_change_member_list/config grouptools/gpasswd/06_gpasswd_change_member_list/config/etc grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/default grouptools/gpasswd/06_gpasswd_change_member_list/data grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/default grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/default grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/default grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/default grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/default grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/default grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/default grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/default grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/default grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/default grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/default grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/default grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data grouptools/gpasswd/19_gpasswd_change_passwd-root grouptools/gpasswd/19_gpasswd_change_passwd-root/config grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc grouptools/gpasswd/19_gpasswd_change_passwd-root/data grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data grouptools/gpasswd/22_gpasswd_change_passwd-myuser grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data grouptools/gpasswd/25_gpasswd_remove_password grouptools/gpasswd/25_gpasswd_remove_password/config grouptools/gpasswd/25_gpasswd_remove_password/config/etc grouptools/gpasswd/25_gpasswd_remove_password/config/etc/default grouptools/gpasswd/25_gpasswd_remove_password/data grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/default grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/default grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data grouptools/gpasswd/28_gpasswd_lock_password grouptools/gpasswd/28_gpasswd_lock_password/config grouptools/gpasswd/28_gpasswd_lock_password/config/etc grouptools/gpasswd/28_gpasswd_lock_password/config/etc/default grouptools/gpasswd/28_gpasswd_lock_password/data grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/default grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/default grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data grouptools/gpasswd/31_gpasswd_add_user_to_group grouptools/gpasswd/31_gpasswd_add_user_to_group/config grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/default grouptools/gpasswd/31_gpasswd_add_user_to_group/data grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/default grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/default grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data grouptools/gpasswd/34_gpasswd_remove_user_from_group grouptools/gpasswd/34_gpasswd_remove_user_from_group/config grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/default grouptools/gpasswd/34_gpasswd_remove_user_from_group/data grouptools/gpasswd/35_gpasswd_remove_user_from_group grouptools/gpasswd/35_gpasswd_remove_user_from_group/config grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/default grouptools/gpasswd/35_gpasswd_remove_user_from_group/data grouptools/gpasswd/36_gpasswd_remove_user_from_group grouptools/gpasswd/36_gpasswd_remove_user_from_group/config grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/default grouptools/gpasswd/36_gpasswd_remove_user_from_group/data grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data grouptools/gpasswd/43_gpasswd_-r_locked_group grouptools/gpasswd/43_gpasswd_-r_locked_group/config grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/default grouptools/gpasswd/43_gpasswd_-r_locked_group/data grouptools/gpasswd/44_gpasswd_-r_locked_gshadow grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/default grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data grouptools/gpasswd/45_gpasswd_-r_unknown_group grouptools/gpasswd/45_gpasswd_-r_unknown_group/config grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/default grouptools/gpasswd/45_gpasswd_-r_unknown_group/data grouptools/gpasswd/46_gpasswd_-a_unknown_user grouptools/gpasswd/46_gpasswd_-a_unknown_user/config grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/default grouptools/gpasswd/46_gpasswd_-a_unknown_user/data grouptools/gpasswd/47_gpasswd_-M_unknown_user grouptools/gpasswd/47_gpasswd_-M_unknown_user/config grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/default grouptools/gpasswd/47_gpasswd_-M_unknown_user/data grouptools/gpasswd/48_gpasswd_change_admin_list grouptools/gpasswd/48_gpasswd_change_admin_list/config grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/default grouptools/gpasswd/48_gpasswd_change_admin_list/data grouptools/gpasswd/49_gpasswd_change_admin_list grouptools/gpasswd/49_gpasswd_change_admin_list/config grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/default grouptools/gpasswd/49_gpasswd_change_admin_list/data grouptools/gpasswd/50_gpasswd_change_admin_list grouptools/gpasswd/50_gpasswd_change_admin_list/config grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/default grouptools/gpasswd/50_gpasswd_change_admin_list/data grouptools/gpasswd/51_gpasswd_change_admin_list grouptools/gpasswd/51_gpasswd_change_admin_list/config grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/default grouptools/gpasswd/51_gpasswd_change_admin_list/data grouptools/gpasswd/52_gpasswd_change_admin_list grouptools/gpasswd/52_gpasswd_change_admin_list/config grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/default grouptools/gpasswd/52_gpasswd_change_admin_list/data grouptools/gpasswd/53_gpasswd_change_admin_list grouptools/gpasswd/53_gpasswd_change_admin_list/config grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/default grouptools/gpasswd/53_gpasswd_change_admin_list/data grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/default grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/tmp grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/default grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data grouptools/gpasswd/56_gpasswd_add_user_to_group grouptools/gpasswd/56_gpasswd_add_user_to_group/config grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/default grouptools/gpasswd/56_gpasswd_add_user_to_group/data grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/default grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/default grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/default grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Wed Feb 27 00:02:28 UTC 2008


Author: nekral-guest
Date: 2008-02-27 00:02:18 +0000 (Wed, 27 Feb 2008)
New Revision: 1870

Added:
   debian/trunk/tests/grouptools/
   debian/trunk/tests/grouptools/gpasswd/
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/group
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/group
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/group
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/group
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/group
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/group
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config.txt
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/group
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/passwd
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/shadow
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.exp
   debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.exp
   debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.exp
   debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config.txt
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/group
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/passwd
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/shadow
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.exp
   debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config.txt
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/group
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/passwd
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/shadow
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.exp
   debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.exp
   debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config.txt
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/group
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/passwd
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/shadow
   debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config.txt
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/group
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/passwd
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/shadow
   debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/group
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/group
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/group
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/group
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/group
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config.txt
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/group
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/passwd
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/shadow
   debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/group
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config.txt
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/group
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/passwd
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/shadow
   debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config.txt
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/group
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/passwd
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/shadow
   debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/group
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/group
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/group
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/group
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/group
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config.txt
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/group
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/passwd
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/shadow
   debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/group
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/tmp/
   debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/tmp/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config.txt
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/group
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/passwd
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/shadow
   debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config.txt
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/group
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/passwd
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/shadow
   debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config.txt
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gpasswd.err
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/group
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/passwd
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/shadow
   debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config.txt
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/group
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/passwd
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/shadow
   debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/gpasswd.test
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config.txt
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/default/
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/default/useradd
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/group
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/gshadow
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/passwd
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/shadow
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/group
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/gshadow
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/passwd
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/shadow
   debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/gpasswd.test
Modified:
   debian/trunk/tests/run_all
Log:
Add 59 tests for gpasswd.


Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (1 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to \"\" (gpasswd -M \"\" users)..."
+gpasswd -M "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/01_gpasswd_change_member_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to \"\" (gpasswd -M \"\" users)..."
+gpasswd -M "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/02_gpasswd_change_member_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (0 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/03_gpasswd_change_member_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (1 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/04_gpasswd_change_member_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/05_gpasswd_change_member_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root,daemon
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::root,daemon
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 2 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to root,daemon (gpasswd -M root,daemon users)..."
+gpasswd -M root,daemon users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/06_gpasswd_change_member_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:x::

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (1 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to \"\" (gpasswd -M \"\" users)..."
+gpasswd -M "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:*:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:*::

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to \"\" (gpasswd -M \"\" users)..."
+gpasswd -M "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:*:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:*::foo

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (0 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:password:100:bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:password::foo

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (1 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:*:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:*::foo

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:*:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root,daemon
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:*::root,daemon

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 2 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to root,daemon (gpasswd -M root,daemon users)..."
+gpasswd -M root,daemon users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (1 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "set the list of members to \"\" (gpasswd -M \"\" users)..."
+gpasswd -M "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "set the list of members to \"\" (gpasswd -M \"\" users)..."
+gpasswd -M "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (0 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (1 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 1 group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "set the list of members to foo (gpasswd -M foo users)..."
+gpasswd -M foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,bin
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,bin
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root,daemon
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::root,daemon
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of members (2 -> 2 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "set the list of members to root,daemon (gpasswd -M root,daemon users)..."
+gpasswd -M root,daemon users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,3 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:@PASS_DES usersPAS@::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.exp
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.exp	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.exp	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,70 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+if {$argc != 4} {
+	puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"
+	exit 1
+}
+
+set run_user    [lindex $argv 0]
+set group       [lindex $argv 1]
+set g_password  [lindex $argv 2]
+set user_prompt [lindex $argv 3]
+
+# First, switch to the testsuite user
+# (otherwise, no password will be asked)
+send_user "# switch to user '$run_user'\n"
+send_user "# and expect a '$user_prompt' prompt\n"
+spawn /bin/su $run_user
+
+expect "$user_prompt"		;# Wait for the prompt
+
+send_user "\n# make sure we are now '$run_user'"
+send_user "\n# whoami should return '$run_user'"
+send "\r"			;# restore the prompt for the logs
+send "whoami\r"			;# Verify we are really testsuite
+
+expect {
+	timeout {
+		puts "\ntimeout...FAIL"
+		exit 1
+	}
+	"$run_user"
+}
+
+expect "$user_prompt"			;# Wait for the prompt
+
+send_user "\n\n"
+send_user "# now change '$group' 's password to '$g_password'\n"
+send_user "# and expect a password prompt"
+send "\r"			;# restore the prompt for the logs
+send "gpasswd $group\r"		;# Change the password
+expect "New Password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "\n# password '$g_password' sent\n\n"
+
+send_user "Expect a new password prompt\n"
+expect "Re-enter new password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "# expect prompt '$user_prompt'"
+
+expect {
+	# Wait for the new prompt
+	"$user_prompt" {
+		send "exit\r"
+		expect "$ "
+		puts "\nPASS"
+		exit 0
+	}
+}
+
+puts "\ntimeout...FAIL"
+exit 1


Property changes on: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.exp
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can be used by root to change one group's passwd"
+
+
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+./gpasswd.exp root users usersPAS '# '
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,3 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:@PASS_DES usersPAS@::foo

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.exp
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.exp	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.exp	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,70 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+if {$argc != 4} {
+	puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"
+	exit 1
+}
+
+set run_user    [lindex $argv 0]
+set group       [lindex $argv 1]
+set g_password  [lindex $argv 2]
+set user_prompt [lindex $argv 3]
+
+# First, switch to the testsuite user
+# (otherwise, no password will be asked)
+send_user "# switch to user '$run_user'\n"
+send_user "# and expect a '$user_prompt' prompt\n"
+spawn /bin/su $run_user
+
+expect "$user_prompt"		;# Wait for the prompt
+
+send_user "\n# make sure we are now '$run_user'"
+send_user "\n# whoami should return '$run_user'"
+send "\r"			;# restore the prompt for the logs
+send "whoami\r"			;# Verify we are really testsuite
+
+expect {
+	timeout {
+		puts "\ntimeout...FAIL"
+		exit 1
+	}
+	"$run_user"
+}
+
+expect "$user_prompt"			;# Wait for the prompt
+
+send_user "\n\n"
+send_user "# now change '$group' 's password to '$g_password'\n"
+send_user "# and expect a password prompt"
+send "\r"			;# restore the prompt for the logs
+send "gpasswd $group\r"		;# Change the password
+expect "New Password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "\n# password '$g_password' sent\n\n"
+
+send_user "Expect a new password prompt\n"
+expect "Re-enter new password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "# expect prompt '$user_prompt'"
+
+expect {
+	# Wait for the new prompt
+	"$user_prompt" {
+		send "exit\r"
+		expect "$ "
+		puts "\nPASS"
+		exit 0
+	}
+}
+
+puts "\ntimeout...FAIL"
+exit 1


Property changes on: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.exp
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can be used by root to change one group's passwd"
+
+
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+./gpasswd.exp root users usersPAS '# '
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,3 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:@PASS_DES usersPAS@:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.exp
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.exp	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.exp	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,70 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+if {$argc != 4} {
+	puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"
+	exit 1
+}
+
+set run_user    [lindex $argv 0]
+set group       [lindex $argv 1]
+set g_password  [lindex $argv 2]
+set user_prompt [lindex $argv 3]
+
+# First, switch to the testsuite user
+# (otherwise, no password will be asked)
+send_user "# switch to user '$run_user'\n"
+send_user "# and expect a '$user_prompt' prompt\n"
+spawn /bin/su $run_user
+
+expect "$user_prompt"		;# Wait for the prompt
+
+send_user "\n# make sure we are now '$run_user'"
+send_user "\n# whoami should return '$run_user'"
+send "\r"			;# restore the prompt for the logs
+send "whoami\r"			;# Verify we are really testsuite
+
+expect {
+	timeout {
+		puts "\ntimeout...FAIL"
+		exit 1
+	}
+	"$run_user"
+}
+
+expect "$user_prompt"			;# Wait for the prompt
+
+send_user "\n\n"
+send_user "# now change '$group' 's password to '$g_password'\n"
+send_user "# and expect a password prompt"
+send "\r"			;# restore the prompt for the logs
+send "gpasswd $group\r"		;# Change the password
+expect "New Password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "\n# password '$g_password' sent\n\n"
+
+send_user "Expect a new password prompt\n"
+expect "Re-enter new password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "# expect prompt '$user_prompt'"
+
+expect {
+	# Wait for the new prompt
+	"$user_prompt" {
+		send "exit\r"
+		expect "$ "
+		puts "\nPASS"
+		exit 0
+	}
+}
+
+puts "\ntimeout...FAIL"
+exit 1


Property changes on: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.exp
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can be used by root to change one group's passwd"
+
+
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+./gpasswd.exp root users usersPAS '# '
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:myuser:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false
+myuser:x:1001:1000:::/bin/bash

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::
+myuser::12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+myuser exist and is an admin of group users

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:@PASS_DES usersPAS@:myuser:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false
+myuser:x:1001:1000:::/bin/bash

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::
+myuser::12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.exp
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.exp	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.exp	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,70 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+if {$argc != 4} {
+	puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"
+	exit 1
+}
+
+set run_user    [lindex $argv 0]
+set group       [lindex $argv 1]
+set g_password  [lindex $argv 2]
+set user_prompt [lindex $argv 3]
+
+# First, switch to the testsuite user
+# (otherwise, no password will be asked)
+send_user "# switch to user '$run_user'\n"
+send_user "# and expect a '$user_prompt' prompt\n"
+spawn /bin/su $run_user
+
+expect "$user_prompt"		;# Wait for the prompt
+
+send_user "\n# make sure we are now '$run_user'"
+send_user "\n# whoami should return '$run_user'"
+send "\r"			;# restore the prompt for the logs
+send "whoami\r"			;# Verify we are really testsuite
+
+expect {
+	timeout {
+		puts "\ntimeout...FAIL"
+		exit 1
+	}
+	"$run_user"
+}
+
+expect "$user_prompt"			;# Wait for the prompt
+
+send_user "\n\n"
+send_user "# now change '$group' 's password to '$g_password'\n"
+send_user "# and expect a password prompt"
+send "\r"			;# restore the prompt for the logs
+send "gpasswd $group\r"		;# Change the password
+expect "New Password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "\n# password '$g_password' sent\n\n"
+
+send_user "Expect a new password prompt\n"
+expect "Re-enter new password: "		;# Wait for the Password: prompt
+# Wait a little bit more (gpasswd is not ready to receive the password)
+sleep 0.1
+send "$g_password\r"		;# Send the password
+
+send_user "# expect prompt '$user_prompt'"
+
+expect {
+	# Wait for the new prompt
+	"$user_prompt" {
+		send "exit\r"
+		expect "$ "
+		puts "\nPASS"
+		exit 0
+	}
+}
+
+puts "\ntimeout...FAIL"
+exit 1


Property changes on: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.exp
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can be used by root to change one group's passwd"
+
+
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+./gpasswd.exp myuser users usersPAS '$ '
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false
+myuser:x:1001:1000:::/bin/bash

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::
+myuser::12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+myuser exist and is an admin of group users

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false
+myuser:x:1001:1000:::/bin/bash

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::
+myuser::12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.exp
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.exp	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.exp	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,59 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+if {$argc != 4} {
+	puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"
+	exit 1
+}
+
+set run_user    [lindex $argv 0]
+set group       [lindex $argv 1]
+set g_password  [lindex $argv 2]
+set user_prompt [lindex $argv 3]
+
+# First, switch to the testsuite user
+# (otherwise, no password will be asked)
+send_user "# switch to user '$run_user'\n"
+send_user "# and expect a '$user_prompt' prompt\n"
+spawn /bin/su $run_user
+
+expect "$user_prompt"		;# Wait for the prompt
+
+send_user "\n# make sure we are now '$run_user'"
+send_user "\n# whoami should return '$run_user'"
+send "\r"			;# restore the prompt for the logs
+send "whoami\r"			;# Verify we are really testsuite
+
+expect {
+	timeout {
+		puts "\ntimeout...FAIL"
+		exit 1
+	}
+	"$run_user"
+}
+
+expect "$user_prompt"			;# Wait for the prompt
+
+send_user "\n\n"
+send_user "# now change '$group' 's password to '$g_password'\n"
+send_user "# and expect a password prompt"
+send "\r"			;# restore the prompt for the logs
+send "gpasswd $group\r"		;# Change the password
+expect "gpasswd: Permission denied."	;# Not an admin
+
+send_user "# expect prompt '$user_prompt'\n"
+
+expect {
+	# Wait for the new prompt
+	"$user_prompt" {
+		send "exit\r"
+		expect "$ "
+		puts "\nPASS"
+		exit 0
+	}
+}
+
+puts "\ntimeout...FAIL"
+exit 1


Property changes on: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.exp
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can be used by root to change one group's passwd"
+
+
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+./gpasswd.exp myuser users usersPAS '$ '
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false
+myuser:x:1001:1000:::/bin/bash

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::
+myuser::12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+myuser exist and is an admin of group users

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false
+myuser:x:1001:1000:::/bin/bash

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,21 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::
+myuser::12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.exp
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.exp	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.exp	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,59 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+if {$argc != 4} {
+	puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"
+	exit 1
+}
+
+set run_user    [lindex $argv 0]
+set group       [lindex $argv 1]
+set g_password  [lindex $argv 2]
+set user_prompt [lindex $argv 3]
+
+# First, switch to the testsuite user
+# (otherwise, no password will be asked)
+send_user "# switch to user '$run_user'\n"
+send_user "# and expect a '$user_prompt' prompt\n"
+spawn /bin/su $run_user
+
+expect "$user_prompt"		;# Wait for the prompt
+
+send_user "\n# make sure we are now '$run_user'"
+send_user "\n# whoami should return '$run_user'"
+send "\r"			;# restore the prompt for the logs
+send "whoami\r"			;# Verify we are really testsuite
+
+expect {
+	timeout {
+		puts "\ntimeout...FAIL"
+		exit 1
+	}
+	"$run_user"
+}
+
+expect "$user_prompt"			;# Wait for the prompt
+
+send_user "\n\n"
+send_user "# now change '$group' 's password to '$g_password'\n"
+send_user "# and expect a password prompt"
+send "\r"			;# restore the prompt for the logs
+send "gpasswd $group\r"		;# Change the password
+expect "gpasswd: Permission denied."	;# Not an admin
+
+send_user "# expect prompt '$user_prompt'\n"
+
+expect {
+	# Wait for the new prompt
+	"$user_prompt" {
+		send "exit\r"
+		expect "$ "
+		puts "\nPASS"
+		exit 0
+	}
+}
+
+puts "\ntimeout...FAIL"
+exit 1


Property changes on: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.exp
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can be used by root to change one group's passwd"
+
+
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+./gpasswd.exp myuser users usersPAS '$ '
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users::100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove the password of a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove the pasword of group users (gpasswd -r users)..."
+gpasswd -r users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/25_gpasswd_remove_password/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users::100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:::foo

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove the password of a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove the pasword of group users (gpasswd -r users)..."
+gpasswd -r users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users::100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove the password of a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Remove the pasword of group users (gpasswd -r users)..."
+gpasswd -r users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:!:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:!::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can lock the password of a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Lock the pasword of group users (gpasswd -R users)..."
+gpasswd -R users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/28_gpasswd_lock_password/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:!:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:!::foo

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can lock the password of a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Lock the pasword of group users (gpasswd -R users)..."
+gpasswd -R users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:!:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can lock the password of a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Lock the pasword of group users (gpasswd -R users)..."
+gpasswd -R users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:foo
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::foo
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can add an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Add user foo to group bin (gpasswd -a foo bin)..."
+gpasswd -a foo bin
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/31_gpasswd_add_user_to_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:foo
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+bin:x::foo

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can add an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Add user foo to group bin (gpasswd -a foo bin)..."
+gpasswd -a foo bin
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:foo
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::foo
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can add an user to a group (no gshadow file)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Add user foo to group bin (gpasswd -a foo bin)..."
+gpasswd -a foo bin
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/34_gpasswd_remove_user_from_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo,root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group (don't touch other usrs/groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/35_gpasswd_remove_user_from_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:bin,foo,root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:bin,foo,root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:bin,root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:bin,root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+# TODO: maybe this is wrong
+log_start "$0" "gpasswd can remove an user to a group (don't touch administrative users)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/36_gpasswd_remove_user_from_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:x::

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:password:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:password::

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:x::root

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group (don't touch other usrs/groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:password:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:password:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo,root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::foo
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:foo
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group (don't touch other usrs/groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+gpasswd: can't get lock

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd -r checks if the group file is locked"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config; rm -f /etc/group.lock' 0
+
+change_config
+
+echo -n "Create lock file for /etc/group..."
+touch /etc/group.lock
+echo "done"
+
+echo -n "Remove the password of group users (usermod -r users)..."
+gpasswd -r users 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+rm -f /etc/group.lock
+
+echo -n "Check returned status ($status)..."
+test "$status" = "1"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/43_gpasswd_-r_locked_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+gpasswd: can't get shadow lock

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd -r checks if the gshadow file is locked"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config; rm -f /etc/gshadow.lock' 0
+
+change_config
+
+echo -n "Create lock file for /etc/gshadow..."
+touch /etc/gshadow.lock
+echo "done"
+
+echo -n "Remove the password of group users (usermod -r users)..."
+gpasswd -r users 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+rm -f /etc/gshadow.lock
+
+echo -n "Check returned status ($status)..."
+test "$status" = "1"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,2 @@
+unknown group: usersss
+gpasswd: Permission denied.

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd -r fails if the group does not exist"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove the password of unknown group usersss (usermod -r usersss)..."
+gpasswd -r usersss 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+echo -n "Check returned status ($status)..."
+test "$status" = "1"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+gpasswd: unknown user foooo

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd -a fails if the user does not exist"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Add user foooo to group users (usermod -a foooo users)..."
+gpasswd -a foooo users 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+echo -n "Check returned status ($status)..."
+test "$status" = "1"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+gpasswd: unknown user foooo

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd -M fails if an user does not exist"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Set members of users to root,foooo,bin (usermod -M root,foooo,bin users)..."
+gpasswd -M root,foooo,bin users 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+echo -n "Check returned status ($status)..."
+test "$status" = "1"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of admins (1 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to \"\" (gpasswd -A \"\" users)..."
+gpasswd -A "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/48_gpasswd_change_admin_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo,bin:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of admins (2 -> 0 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to \"\" (gpasswd -A \"\" users)..."
+gpasswd -A "" users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/49_gpasswd_change_admin_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of admins (0 -> 1 groups)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -A foo users)..."
+gpasswd -A foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/50_gpasswd_change_admin_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:bin:root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of admins (1 -> 1 users)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -A foo users)..."
+gpasswd -A foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/51_gpasswd_change_admin_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo,bin:root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of admins (2 -> 1 users)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -A foo users)..."
+gpasswd -A foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/52_gpasswd_change_admin_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo,bin:root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:root
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:daemon,foo:root
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can change the list of admins (2 -> 2 users)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "set the list of members to foo (gpasswd -A daemon,foo users)..."
+gpasswd -A daemon,foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/53_gpasswd_change_admin_list/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,41 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::
+users:x:foo:

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can set the list of admins if there is no shadow group"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Set the admin list of users to foo (usermod -A foo users)..."
+gpasswd -A foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/tmp/gpasswd.err
===================================================================

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,10 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users (only in /etc/group)
+user foo, in group tty (only in /etc/gshadow)
+user foo, in group floppy
+user foo, admin of group disk
+user foo, admin and member of group fax
+user foo, admin and member of group cdrom (only in /etc/gshadow)

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+gpasswd: shadow group passwords required for -A

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:root
+adm:x:4:root,foo
+tty:x:5:
+disk:x:6:
+lp:x:7:foo,root
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:foo
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:foo
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::root
+adm:*::root,foo
+tty:*::foo
+disk:*:foo:
+lp:*::foo,root
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*:foo:foo
+voice:*::
+cdrom:*:foo:foo
+floppy:*::foo
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000::/home/foo:/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd -A checks if the gshadow file exists"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo "remove the gshadow file"
+rm -f /etc/gshadow
+
+echo -n "Set the lists of admins to foo (usermod -A foo users)..."
+gpasswd -A foo users 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+echo -n "Check returned status ($status)..."
+test "$status" = "2"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+test ! -f /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:foo
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::foo
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:foo
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::foo
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can add an user to a group (already member)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Add user foo to group bin (gpasswd -a foo bin)..."
+gpasswd -a foo bin
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/56_gpasswd_add_user_to_group/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gpasswd.err
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gpasswd.err	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gpasswd.err	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1 @@
+gpasswd: unknown member foo

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group (not in the group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users 2>tmp/gpasswd.err && exit || {
+	status=$?
+}
+echo "OK"
+
+echo -n "Check returned status ($status)..."
+test "$status" = "1"
+echo "OK"
+
+echo "usermod reported:"
+echo "======================================================================="
+cat tmp/gpasswd.err
+echo "======================================================================="
+echo -n "Check that there were a failure message..."
+diff -au data/gpasswd.err tmp/gpasswd.err
+echo "error message OK."
+rm -f tmp/gpasswd.err
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:foo
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*:foo:
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group (not in the group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/default/useradd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/default/useradd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/default/useradd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,36 @@
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+# Similar to DHSELL in adduser. However, we use "sh" here because
+# useradd is a low level utility and should be as general
+# as possible
+SHELL=/bin/foobar
+#
+# The default group for users
+# 100=users on Debian systems
+# Same as USERS_GID in adduser
+# This argument is used when the -n flag is specified.
+# The default behavior (when -n and -g are not specified) is to create a
+# primary user group with the same name as the user being added to the
+# system.
+GROUP=10
+#
+# The default home directory. Same as DHOME for adduser
+HOME=/tmp
+#
+# The number of days after a password expires until the account 
+# is permanently disabled
+INACTIVE=12
+#
+# The default expire date
+EXPIRE=2007-12-02
+#
+# The SKEL variable specifies the directory containing "skeletal" user
+# files; in other words, files such as a sample .profile that will be
+# copied to the new user's home directory when it is created.
+# SKEL=/etc/skel
+#
+# Defines whether the mail spool should be created while
+# creating the account
+# CREATE_MAIL_SPOOL=yes

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::foo
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config/etc/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config.txt
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config.txt	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/config.txt	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,5 @@
+# no testsuite password
+# root password: rootF00barbaz
+# myuser password: myuserF00barbaz
+
+user foo, in group users

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/group
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/group	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/group	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:x:0:
+daemon:x:1:
+bin:x:2:
+sys:x:3:
+adm:x:4:
+tty:x:5:
+disk:x:6:
+lp:x:7:
+mail:x:8:
+news:x:9:
+uucp:x:10:
+man:x:12:
+proxy:x:13:
+kmem:x:15:
+dialout:x:20:
+fax:x:21:
+voice:x:22:
+cdrom:x:24:
+floppy:x:25:
+tape:x:26:
+sudo:x:27:
+audio:x:29:
+dip:x:30:
+www-data:x:33:
+backup:x:34:
+operator:x:37:
+list:x:38:
+irc:x:39:
+src:x:40:
+gnats:x:41:
+shadow:x:42:
+utmp:x:43:
+video:x:44:
+sasl:x:45:
+plugdev:x:46:
+staff:x:50:
+games:x:60:
+users:x:100:
+nogroup:x:65534:
+crontab:x:101:
+Debian-exim:x:102:
+foo:x:1000:

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/gshadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/gshadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/gshadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,42 @@
+root:*::
+daemon:*::
+bin:*::
+sys:*::
+adm:*::
+tty:*::
+disk:*::
+lp:*::
+mail:*::
+news:*::
+uucp:*::
+man:*::
+proxy:*::
+kmem:*::
+dialout:*::
+fax:*::
+voice:*::
+cdrom:*::
+floppy:*::
+tape:*::
+sudo:*::
+audio:*::
+dip:*::
+www-data:*::
+backup:*::
+operator:*::
+list:*::
+irc:*::
+src:*::
+gnats:*::
+shadow:*::
+utmp:*::
+video:*::
+sasl:*::
+plugdev:*::
+staff:*::
+games:*::
+users:*::
+nogroup:*::
+crontab:x::
+Debian-exim:x::
+foo:*::

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/passwd
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/passwd	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/passwd	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/bin/sh
+bin:x:2:2:bin:/bin:/bin/sh
+sys:x:3:3:sys:/dev:/bin/sh
+sync:x:4:65534:sync:/bin:/bin/sync
+games:x:5:60:games:/usr/games:/bin/sh
+man:x:6:12:man:/var/cache/man:/bin/sh
+lp:x:7:7:lp:/var/spool/lpd:/bin/sh
+mail:x:8:8:mail:/var/mail:/bin/sh
+news:x:9:9:news:/var/spool/news:/bin/sh
+uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
+proxy:x:13:13:proxy:/bin:/bin/sh
+www-data:x:33:33:www-data:/var/www:/bin/sh
+backup:x:34:34:backup:/var/backups:/bin/sh
+list:x:38:38:Mailing List Manager:/var/list:/bin/sh
+irc:x:39:39:ircd:/var/run/ircd:/bin/sh
+gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
+nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
+Debian-exim:x:102:102::/var/spool/exim4:/bin/false
+foo:x:1000:1000:::/bin/false

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/shadow
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/shadow	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/data/shadow	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,20 @@
+root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7:::
+daemon:*:12977:0:99999:7:::
+bin:*:12977:0:99999:7:::
+sys:*:12977:0:99999:7:::
+sync:*:12977:0:99999:7:::
+games:*:12977:0:99999:7:::
+man:*:12977:0:99999:7:::
+lp:*:12977:0:99999:7:::
+mail:*:12977:0:99999:7:::
+news:*:12977:0:99999:7:::
+uucp:*:12977:0:99999:7:::
+proxy:*:12977:0:99999:7:::
+www-data:*:12977:0:99999:7:::
+backup:*:12977:0:99999:7:::
+list:*:12977:0:99999:7:::
+irc:*:12977:0:99999:7:::
+gnats:*:12977:0:99999:7:::
+nobody:*:12977:0:99999:7:::
+Debian-exim:!:12977:0:99999:7:::
+foo:!:12977:0:99999:7:::

Added: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/gpasswd.test
===================================================================
--- debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/gpasswd.test	                        (rev 0)
+++ debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/gpasswd.test	2008-02-27 00:02:18 UTC (rev 1870)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+
+. ../../../common/config.sh
+. ../../../common/log.sh
+
+log_start "$0" "gpasswd can remove an user to a group (not in the group)"
+
+save_config
+
+# restore the files on exit
+trap 'log_status "$0" "FAILURE"; restore_config' 0
+
+change_config
+
+echo -n "Remove user foo to group bin (gpasswd -d foo users)..."
+gpasswd -d foo users
+echo "OK"
+
+echo -n "Check the passwd file..."
+../../../common/compare_file.pl data/passwd /etc/passwd
+echo "OK"
+echo -n "Check the group file..."
+../../../common/compare_file.pl data/group /etc/group
+echo "OK"
+echo -n "Check the shadow file..."
+../../../common/compare_file.pl data/shadow /etc/shadow
+echo "OK"
+echo -n "Check the gshadow file..."
+../../../common/compare_file.pl data/gshadow /etc/gshadow
+echo "OK"
+
+log_status "$0" "SUCCESS"
+restore_config
+trap '' 0
+


Property changes on: debian/trunk/tests/grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/gpasswd.test
___________________________________________________________________
Name: svn:executable
   + *

Modified: debian/trunk/tests/run_all
===================================================================
--- debian/trunk/tests/run_all	2008-02-26 20:09:56 UTC (rev 1869)
+++ debian/trunk/tests/run_all	2008-02-27 00:02:18 UTC (rev 1870)
@@ -107,6 +107,65 @@
 run_test ./chage/02/run
 run_test ./chsh/01/run
 run_test ./debian/01/run
+run_test ./grouptools/gpasswd/01_gpasswd_change_member_list/gpasswd.test
+run_test ./grouptools/gpasswd/02_gpasswd_change_member_list/gpasswd.test
+run_test ./grouptools/gpasswd/03_gpasswd_change_member_list/gpasswd.test
+run_test ./grouptools/gpasswd/04_gpasswd_change_member_list/gpasswd.test
+run_test ./grouptools/gpasswd/05_gpasswd_change_member_list/gpasswd.test
+run_test ./grouptools/gpasswd/06_gpasswd_change_member_list/gpasswd.test
+run_test ./grouptools/gpasswd/07_gpasswd_change_member_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/08_gpasswd_change_member_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/09_gpasswd_change_member_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/10_gpasswd_change_member_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/11_gpasswd_change_member_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/12_gpasswd_change_member_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/13_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/14_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/15_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/16_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/17_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/18_gpasswd_change_member_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/19_gpasswd_change_passwd-root/gpasswd.test
+run_test ./grouptools/gpasswd/20_gpasswd_change_passwd-root-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/21_gpasswd_change_passwd-root-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/22_gpasswd_change_passwd-myuser/gpasswd.test
+run_test ./grouptools/gpasswd/23_gpasswd_change_passwd-myuser-denied/gpasswd.test
+run_test ./grouptools/gpasswd/24_gpasswd_change_passwd-myuser-denied-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/25_gpasswd_remove_password/gpasswd.test
+run_test ./grouptools/gpasswd/26_gpasswd_remove_password-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/27_gpasswd_remove_password-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/28_gpasswd_lock_password/gpasswd.test
+run_test ./grouptools/gpasswd/29_gpasswd_lock_password-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/30_gpasswd_lock_password-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/31_gpasswd_add_user_to_group/gpasswd.test
+run_test ./grouptools/gpasswd/32_gpasswd_add_user_to_group-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/33_gpasswd_add_user_to_group-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/34_gpasswd_remove_user_from_group/gpasswd.test
+run_test ./grouptools/gpasswd/35_gpasswd_remove_user_from_group/gpasswd.test
+run_test ./grouptools/gpasswd/36_gpasswd_remove_user_from_group/gpasswd.test
+run_test ./grouptools/gpasswd/37_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/38_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/39_gpasswd_remove_user_from_group-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/40_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/41_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/42_gpasswd_remove_user_from_group-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/43_gpasswd_-r_locked_group/gpasswd.test
+run_test ./grouptools/gpasswd/44_gpasswd_-r_locked_gshadow/gpasswd.test
+run_test ./grouptools/gpasswd/45_gpasswd_-r_unknown_group/gpasswd.test
+run_test ./grouptools/gpasswd/46_gpasswd_-a_unknown_user/gpasswd.test
+run_test ./grouptools/gpasswd/47_gpasswd_-M_unknown_user/gpasswd.test
+run_test ./grouptools/gpasswd/48_gpasswd_change_admin_list/gpasswd.test
+run_test ./grouptools/gpasswd/49_gpasswd_change_admin_list/gpasswd.test
+run_test ./grouptools/gpasswd/50_gpasswd_change_admin_list/gpasswd.test
+run_test ./grouptools/gpasswd/51_gpasswd_change_admin_list/gpasswd.test
+run_test ./grouptools/gpasswd/52_gpasswd_change_admin_list/gpasswd.test
+run_test ./grouptools/gpasswd/53_gpasswd_change_admin_list/gpasswd.test
+run_test ./grouptools/gpasswd/54_gpasswd_change_admin_list-no_shadow_group/gpasswd.test
+run_test ./grouptools/gpasswd/55_gpasswd_change_admin_list-no_gshadow_file/gpasswd.test
+run_test ./grouptools/gpasswd/56_gpasswd_add_user_to_group/gpasswd.test
+run_test ./grouptools/gpasswd/57_gpasswd_remove_user_from_group-not_member/gpasswd.test
+run_test ./grouptools/gpasswd/58_gpasswd_remove_user_from_group-not_gshadow_member/gpasswd.test
+run_test ./grouptools/gpasswd/59_gpasswd_remove_user_from_group-not_group_member/gpasswd.test
 run_test ./usertools/01/01_useradd_add_user.test
 run_test ./usertools/01/01_userdel_delete_user.test
 run_test ./usertools/01/02_useradd_recreate_deleted_user.test




More information about the Pkg-shadow-commits mailing list