From 0e791f2ea8436caba4425ba7e42342eeb7a81118 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Wed, 25 Mar 2026 14:37:01 +0100 Subject: [PATCH 1/2] */: groupmems(8): Remove program The utility is redundant for root and effectively broken for regular users across major distributions, its continued maintenance adds complexity for little to no benefit. Closes: https://github.com/shadow-maint/shadow/issues/1343 Signed-off-by: Iker Pedrosa --- etc/pam.d/Makefile.am | 1 - man/Makefile.am | 2 - man/cs/Makefile.am | 8 - man/de/Makefile.am | 1 - man/fr/Makefile.am | 1 - man/groupmems.8.xml | 235 ------- man/it/Makefile.am | 1 - man/login.defs.5.xml | 6 - man/pl/Makefile.am | 1 - man/po/XMLFILES | 1 - man/po/shadow-man-pages.pot | 119 ---- man/ru/Makefile.am | 1 - man/sv/Makefile.am | 1 - man/uk/Makefile.am | 1 - man/zh_CN/Makefile.am | 1 - po/POTFILES.in | 1 - share/ansible/roles/ci_run/tasks/fedora.yml | 9 - src/.gitignore | 1 - src/Makefile.am | 2 - src/groupmems.c | 641 ------------------ tests/debian/01/data/passwd_files | 10 - .../config.txt | 1 - .../config/etc/group | 42 -- .../config/etc/gshadow | 42 -- .../config/etc/passwd | 19 - .../config/etc/shadow | 19 - .../data/groupmems.err | 2 - .../groupmems.test | 54 -- .../config.txt | 1 - .../config/etc/group | 42 -- .../config/etc/gshadow | 42 -- .../config/etc/passwd | 19 - .../config/etc/shadow | 19 - .../data/groupmems.err | 2 - .../groupmems.test | 54 -- .../01_groupmems_root_add_user/config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../01_groupmems_root_add_user/data/group | 44 -- .../01_groupmems_root_add_user/data/gshadow | 44 -- .../01_groupmems_root_add_user/groupmems.test | 39 -- .../02_groupmems_root_del_user/config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../02_groupmems_root_del_user/data/group | 44 -- .../02_groupmems_root_del_user/data/gshadow | 44 -- .../02_groupmems_root_del_user/groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../09_groupmems_root_purge_user/config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../09_groupmems_root_purge_user/data/group | 44 -- .../09_groupmems_root_purge_user/data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../config.txt | 2 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 20 - .../config/etc/shadow | 20 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../12_groupmems_user_add_user/config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../12_groupmems_user_add_user/data/group | 44 -- .../12_groupmems_user_add_user/data/gshadow | 44 -- .../12_groupmems_user_add_user/groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../13_groupmems_user_del_user/config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../13_groupmems_user_del_user/data/group | 44 -- .../13_groupmems_user_del_user/data/gshadow | 44 -- .../13_groupmems_user_del_user/groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../20_groupmems_user_purge_user/config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../20_groupmems_user_purge_user/data/group | 44 -- .../20_groupmems_user_purge_user/data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 41 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 48 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 43 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 43 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../groupmems.test | 42 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 48 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 48 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 43 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../groupmems.test | 42 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 43 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../data/gshadow | 44 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../data/group | 44 -- .../groupmems.test | 42 -- .../run_groupmems.exp | 49 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../42_groupmems_user_list_users/config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 42 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 50 -- .../config.txt | 1 - .../config/etc/group | 44 -- .../config/etc/gshadow | 44 -- .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 45 -- .../run_groupmems.exp | 50 -- .../groupmems/53_groupmems_usage/config.txt | 10 - .../53_groupmems_usage/config/etc/group | 41 -- .../53_groupmems_usage/config/etc/gshadow | 41 -- .../53_groupmems_usage/config/etc/passwd | 19 - .../53_groupmems_usage/config/etc/shadow | 19 - .../53_groupmems_usage/data/usage.out | 13 - .../53_groupmems_usage/groupmems.test | 49 -- .../config.txt | 1 - .../config/etc/group | 42 -- .../config/etc/gshadow | 42 -- .../config/etc/login.defs | 302 --------- .../config/etc/passwd | 19 - .../config/etc/shadow | 19 - .../data/groupmems.err | 14 - .../groupmems.test | 54 -- .../55_groupmems_usage-a-d/config.txt | 1 - .../55_groupmems_usage-a-d/config/etc/group | 42 -- .../55_groupmems_usage-a-d/config/etc/gshadow | 42 -- .../config/etc/login.defs | 302 --------- .../55_groupmems_usage-a-d/config/etc/passwd | 19 - .../55_groupmems_usage-a-d/config/etc/shadow | 19 - .../55_groupmems_usage-a-d/data/groupmems.err | 13 - .../55_groupmems_usage-a-d/groupmems.test | 54 -- .../56_groupmems_usage_extra_arg/config.txt | 1 - .../config/etc/group | 42 -- .../config/etc/gshadow | 42 -- .../config/etc/login.defs | 302 --------- .../config/etc/passwd | 19 - .../config/etc/shadow | 19 - .../data/groupmems.err | 13 - .../groupmems.test | 54 -- .../57_groupmems_authentication/config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/pam.d/common-account | 25 - .../config/etc/pam.d/common-auth | 25 - .../config/etc/pam.d/groupmems | 8 - .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../57_groupmems_authentication/data/group | 45 -- .../57_groupmems_authentication/data/gshadow | 45 -- .../groupmems.test | 39 -- .../run_groupmems.exp | 43 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/pam.d/common-account | 25 - .../config/etc/pam.d/common-auth | 25 - .../config/etc/pam.d/groupmems | 8 - .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 44 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/pam.d/common-account | 1 - .../config/etc/pam.d/common-auth | 25 - .../config/etc/pam.d/groupmems | 8 - .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 39 -- .../run_groupmems.exp | 44 -- .../config.txt | 1 - .../config/etc/group | 45 -- .../config/etc/gshadow | 45 -- .../config/etc/pam.d/groupmems | 1 - .../config/etc/pam.d/other | 1 - .../config/etc/passwd | 21 - .../config/etc/shadow | 21 - .../groupmems.test | 43 -- .../run_groupmems.exp | 42 -- tests/run_all | 62 -- tests/run_all.coverage | 62 -- tests/system/framework/roles/shadow.py | 24 - tests/system/tests/test_groupmems.py | 41 -- 522 files changed, 17748 deletions(-) delete mode 100644 man/groupmems.8.xml delete mode 100644 src/groupmems.c delete mode 100644 tests/failures/groupmems/01_groupmems_group_open_failure/config.txt delete mode 100644 tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/group delete mode 100644 tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/gshadow delete mode 100644 tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/passwd delete mode 100644 tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/shadow delete mode 100644 tests/failures/groupmems/01_groupmems_group_open_failure/data/groupmems.err delete mode 100755 tests/failures/groupmems/01_groupmems_group_open_failure/groupmems.test delete mode 100644 tests/failures/groupmems/02_groupmems_gshadow_open_failure/config.txt delete mode 100644 tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/group delete mode 100644 tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/gshadow delete mode 100644 tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/passwd delete mode 100644 tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/shadow delete mode 100644 tests/failures/groupmems/02_groupmems_gshadow_open_failure/data/groupmems.err delete mode 100755 tests/failures/groupmems/02_groupmems_gshadow_open_failure/groupmems.test delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/config.txt delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/data/group delete mode 100644 tests/grouptools/groupmems/01_groupmems_root_add_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/01_groupmems_root_add_user/groupmems.test delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/config.txt delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/data/group delete mode 100644 tests/grouptools/groupmems/02_groupmems_root_del_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/02_groupmems_root_del_user/groupmems.test delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config.txt delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/group delete mode 100644 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/03_groupmems_root_del_user_admin/groupmems.test delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config.txt delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/group delete mode 100644 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/groupmems.test delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config.txt delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/group delete mode 100644 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/gshadow delete mode 100755 tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/groupmems.test delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config.txt delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/group delete mode 100644 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/groupmems.test delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config.txt delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/group delete mode 100644 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/gshadow delete mode 100755 tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/groupmems.test delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config.txt delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/group delete mode 100644 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/groupmems.test delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/config.txt delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/data/group delete mode 100644 tests/grouptools/groupmems/09_groupmems_root_purge_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/09_groupmems_root_purge_user/groupmems.test delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config.txt delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/group delete mode 100644 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/gshadow delete mode 100755 tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/groupmems.test delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config.txt delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/group delete mode 100644 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/groupmems.test delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/config.txt delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/data/group delete mode 100644 tests/grouptools/groupmems/12_groupmems_user_add_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/12_groupmems_user_add_user/groupmems.test delete mode 100755 tests/grouptools/groupmems/12_groupmems_user_add_user/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/config.txt delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/data/group delete mode 100644 tests/grouptools/groupmems/13_groupmems_user_del_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/13_groupmems_user_del_user/groupmems.test delete mode 100755 tests/grouptools/groupmems/13_groupmems_user_del_user/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config.txt delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/group delete mode 100644 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/groupmems.test delete mode 100755 tests/grouptools/groupmems/14_groupmems_user_del_user_admin/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config.txt delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/group delete mode 100644 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/groupmems.test delete mode 100755 tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config.txt delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/group delete mode 100644 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/gshadow delete mode 100755 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/groupmems.test delete mode 100755 tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config.txt delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/group delete mode 100644 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/groupmems.test delete mode 100755 tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config.txt delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/group delete mode 100644 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/gshadow delete mode 100755 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/groupmems.test delete mode 100755 tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config.txt delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/group delete mode 100644 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/groupmems.test delete mode 100755 tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/config.txt delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/group delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/data/group delete mode 100644 tests/grouptools/groupmems/20_groupmems_user_purge_user/data/gshadow delete mode 100755 tests/grouptools/groupmems/20_groupmems_user_purge_user/groupmems.test delete mode 100755 tests/grouptools/groupmems/20_groupmems_user_purge_user/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config.txt delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/group delete mode 100644 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/gshadow delete mode 100755 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/groupmems.test delete mode 100755 tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config.txt delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/group delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/group delete mode 100644 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/gshadow delete mode 100755 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/groupmems.test delete mode 100755 tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config.txt delete mode 100644 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/group delete mode 100644 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/groupmems.test delete mode 100755 tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config.txt delete mode 100644 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config.txt delete mode 100644 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config.txt delete mode 100644 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/group delete mode 100644 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/groupmems.test delete mode 100755 tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config.txt delete mode 100644 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config.txt delete mode 100644 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/group delete mode 100644 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/data/group delete mode 100755 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/groupmems.test delete mode 100755 tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config.txt delete mode 100644 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/group delete mode 100644 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/groupmems.test delete mode 100755 tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config.txt delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/group delete mode 100644 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/gshadow delete mode 100755 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config.txt delete mode 100644 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/group delete mode 100644 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/data/group delete mode 100755 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/groupmems.test delete mode 100755 tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config.txt delete mode 100644 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/group delete mode 100644 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/groupmems.test delete mode 100755 tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config.txt delete mode 100644 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/group delete mode 100644 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/data/group delete mode 100755 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/groupmems.test delete mode 100755 tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config.txt delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/group delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/group delete mode 100644 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/gshadow delete mode 100755 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/groupmems.test delete mode 100755 tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config.txt delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/group delete mode 100644 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/gshadow delete mode 100755 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config.txt delete mode 100644 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/group delete mode 100644 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/data/group delete mode 100755 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/groupmems.test delete mode 100755 tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config.txt delete mode 100644 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/data/gshadow delete mode 100755 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config.txt delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/group delete mode 100644 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/gshadow delete mode 100755 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config.txt delete mode 100644 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/group delete mode 100644 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/data/group delete mode 100755 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/groupmems.test delete mode 100755 tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config.txt delete mode 100644 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config.txt delete mode 100644 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/42_groupmems_user_list_users/config.txt delete mode 100644 tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/group delete mode 100644 tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/42_groupmems_user_list_users/groupmems.test delete mode 100755 tests/grouptools/groupmems/42_groupmems_user_list_users/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config.txt delete mode 100644 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/group delete mode 100644 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/groupmems.test delete mode 100755 tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config.txt delete mode 100644 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/group delete mode 100644 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/groupmems.test delete mode 100755 tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config.txt delete mode 100644 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config.txt delete mode 100644 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config.txt delete mode 100644 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config.txt delete mode 100644 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config.txt delete mode 100644 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config.txt delete mode 100644 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config.txt delete mode 100644 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config.txt delete mode 100644 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/group delete mode 100644 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/groupmems.test delete mode 100755 tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/53_groupmems_usage/config.txt delete mode 100644 tests/grouptools/groupmems/53_groupmems_usage/config/etc/group delete mode 100644 tests/grouptools/groupmems/53_groupmems_usage/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/53_groupmems_usage/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/53_groupmems_usage/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/53_groupmems_usage/data/usage.out delete mode 100755 tests/grouptools/groupmems/53_groupmems_usage/groupmems.test delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config.txt delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/group delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/login.defs delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/data/groupmems.err delete mode 100755 tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/config.txt delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/group delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/login.defs delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/55_groupmems_usage-a-d/data/groupmems.err delete mode 100755 tests/grouptools/groupmems/55_groupmems_usage-a-d/groupmems.test delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config.txt delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/group delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/login.defs delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/data/groupmems.err delete mode 100755 tests/grouptools/groupmems/56_groupmems_usage_extra_arg/groupmems.test delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config.txt delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/group delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-account delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-auth delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/groupmems delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/config/etc/shadow delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/data/group delete mode 100644 tests/grouptools/groupmems/57_groupmems_authentication/data/gshadow delete mode 100755 tests/grouptools/groupmems/57_groupmems_authentication/groupmems.test delete mode 100755 tests/grouptools/groupmems/57_groupmems_authentication/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config.txt delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/group delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-account delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-auth delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/groupmems delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/58_groupmems_authentication_failure1/groupmems.test delete mode 100755 tests/grouptools/groupmems/58_groupmems_authentication_failure1/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config.txt delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/group delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-account delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-auth delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/groupmems delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/59_groupmems_authentication_failure2/groupmems.test delete mode 100755 tests/grouptools/groupmems/59_groupmems_authentication_failure2/run_groupmems.exp delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config.txt delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/group delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/gshadow delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/groupmems delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/other delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/passwd delete mode 100644 tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/shadow delete mode 100755 tests/grouptools/groupmems/60_groupmems_authentication_failure3/groupmems.test delete mode 100755 tests/grouptools/groupmems/60_groupmems_authentication_failure3/run_groupmems.exp delete mode 100644 tests/system/tests/test_groupmems.py diff --git a/etc/pam.d/Makefile.am b/etc/pam.d/Makefile.am index 053e35d9fe..9662cc0884 100644 --- a/etc/pam.d/Makefile.am +++ b/etc/pam.d/Makefile.am @@ -5,7 +5,6 @@ pamd_files = \ chpasswd \ chfn \ chsh \ - groupmems \ login \ newusers \ passwd diff --git a/man/Makefile.am b/man/Makefile.am index c1cfc90f04..899306a944 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -18,7 +18,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ @@ -84,7 +83,6 @@ man_XMANS = \ gpasswd.1.xml \ groupadd.8.xml \ groupdel.8.xml \ - groupmems.8.xml \ groupmod.8.xml \ grpck.8.xml \ gshadow.5.xml \ diff --git a/man/cs/Makefile.am b/man/cs/Makefile.am index 3a7a2a1ae0..4e1271efec 100644 --- a/man/cs/Makefile.am +++ b/man/cs/Makefile.am @@ -15,11 +15,3 @@ man_MANS = \ man5/shadow.5 \ man1/su.1 \ man8/vipw.8 - -if ENABLE_LASTLOG -man_MANS += man8/lastlog.8 -endif - -EXTRA_DIST = $(man_MANS) \ - man8/groupmems.8 - diff --git a/man/de/Makefile.am b/man/de/Makefile.am index 77fa038097..edb3a15bfa 100644 --- a/man/de/Makefile.am +++ b/man/de/Makefile.am @@ -13,7 +13,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ diff --git a/man/fr/Makefile.am b/man/fr/Makefile.am index 3987b8b95a..b030fc6af0 100644 --- a/man/fr/Makefile.am +++ b/man/fr/Makefile.am @@ -13,7 +13,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ diff --git a/man/groupmems.8.xml b/man/groupmems.8.xml deleted file mode 100644 index 7d4c2a4205..0000000000 --- a/man/groupmems.8.xml +++ /dev/null @@ -1,235 +0,0 @@ - - - - -]> - - - - - George - Kraft - IV - Creation, 2000 - - - Thomas - KÅ‚oczko - kloczek@pld.org.pl - shadow-utils maintainer, 2000 - 2007 - - - Nicolas - François - nicolas.francois@centraliens.net - shadow-utils maintainer, 2007 - now - - - - groupmems - 8 - System Management Commands - shadow-utils - &SHADOW_UTILS_VERSION; - - - groupmems - administer members of a user's primary group - - - - - groupmems - - -a user_name - -d user_name - -g group_name - -l -p - - - - - - DESCRIPTION - - The groupmems command allows a user to administer - their own group membership list without the requirement of - superuser privileges. The groupmems utility is for - systems that configure its users to be in their own name sake primary - group (i.e., guest / guest). - - - Only the superuser, as administrator, can use - groupmems to alter the memberships of other groups. - - - - - OPTIONS - - The options which apply to the groupmems command - are: - - - - ,  user_name - - Add a user to the group membership list. - - If the /etc/gshadow file exists, and the - group has no entry in the /etc/gshadow - file, a new entry will be created. - - - - - ,  user_name - - Delete a user from the group membership list. - - If the /etc/gshadow file exists, the user - will be removed from the list of members and administrators of - the group. - - - If the /etc/gshadow file exists, and the - group has no entry in the /etc/gshadow - file, a new entry will be created. - - - - - ,  group_name - - The superuser can specify which group membership - list to modify. - - - - - , - - Display help message and exit. - - - - , - - List the group membership list. - - - - , - - Purge all users from the group membership list. - - If the /etc/gshadow file exists, and the - group has no entry in the /etc/gshadow - file, a new entry will be created. - - - - - - ,  CHROOT_DIR - - - - Apply changes in the CHROOT_DIR - directory and use the configuration files from the - CHROOT_DIR directory. - Only absolute paths are supported. - No SELINUX support. - - - - - - - - SETUP - - The groupmems executable should be in mode - 2710 as user root and in group - groups. The system administrator can add users to - group groups to allow or disallow them using the - groupmems utility to manage their own group - membership list. - - - - $ groupadd -r groups - $ chmod 2710 groupmems - $ chown root:groups groupmems - $ groupmems -g groups -a gk4 - - - - - CONFIGURATION - - The following configuration variables in - /etc/login.defs change the behavior of this - tool: - - - &MAX_MEMBERS_PER_GROUP; - - - - - FILES - - - /etc/group - - Group account information. - - - - /etc/gshadow - - secure group account information - - - - - - - SEE ALSO - - - chfn1 - , - - chsh1 - , - - passwd1 - , - - groupadd8 - , - - groupdel8 - , - - useradd8 - , - - userdel8 - , - - usermod8 - . - - - diff --git a/man/it/Makefile.am b/man/it/Makefile.am index 709478d9f5..4c2adb271e 100644 --- a/man/it/Makefile.am +++ b/man/it/Makefile.am @@ -13,7 +13,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ diff --git a/man/login.defs.5.xml b/man/login.defs.5.xml index 009de06d1a..2b18c14f85 100644 --- a/man/login.defs.5.xml +++ b/man/login.defs.5.xml @@ -307,12 +307,6 @@ MAX_MEMBERS_PER_GROUP - - groupmems - - MAX_MEMBERS_PER_GROUP - - groupmod diff --git a/man/pl/Makefile.am b/man/pl/Makefile.am index f821770884..998bbc2e4a 100644 --- a/man/pl/Makefile.am +++ b/man/pl/Makefile.am @@ -10,7 +10,6 @@ man_MANS = \ man3/getspnam.3 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man1/newgrp.1 \ diff --git a/man/po/XMLFILES b/man/po/XMLFILES index 12f207dd40..f3fbdacb94 100644 --- a/man/po/XMLFILES +++ b/man/po/XMLFILES @@ -10,7 +10,6 @@ XMLFILES = \ $(top_srcdir)/man/gpasswd.1.xml \ $(top_srcdir)/man/groupadd.8.xml \ $(top_srcdir)/man/groupdel.8.xml \ - $(top_srcdir)/man/groupmems.8.xml \ $(top_srcdir)/man/groupmod.8.xml \ $(top_srcdir)/man/grpck.8.xml \ $(top_srcdir)/man/gshadow.5.xml \ diff --git a/man/po/shadow-man-pages.pot b/man/po/shadow-man-pages.pot index 8c9c6fc456..1a0c409b26 100644 --- a/man/po/shadow-man-pages.pot +++ b/man/po/shadow-man-pages.pot @@ -92,7 +92,6 @@ msgstr "" #: gpasswd.1.xml.out:27 #: groupadd.8.xml.out:23 #: groupdel.8.xml.out:21 -#: groupmems.8.xml.out:24 #: groupmod.8.xml.out:21 #: groups.1.xml.out:20 #: grpck.8.xml.out:20 @@ -132,7 +131,6 @@ msgstr "" #: gpasswd.1.xml.out:28 #: groupadd.8.xml.out:24 #: groupdel.8.xml.out:22 -#: groupmems.8.xml.out:25 #: groupmod.8.xml.out:22 #: groups.1.xml.out:21 #: grpck.8.xml.out:21 @@ -172,7 +170,6 @@ msgstr "" #: gpasswd.1.xml.out:29 #: groupadd.8.xml.out:25 #: groupdel.8.xml.out:23 -#: groupmems.8.xml.out:26 #: groupmod.8.xml.out:23 #: groups.1.xml.out:22 #: grpck.8.xml.out:22 @@ -211,7 +208,6 @@ msgstr "" #: gpasswd.1.xml.out:30 #: groupadd.8.xml.out:26 #: groupdel.8.xml.out:24 -#: groupmems.8.xml.out:27 #: groupmod.8.xml.out:24 #: groups.1.xml.out:23 #: grpck.8.xml.out:23 @@ -251,7 +247,6 @@ msgstr "" #: gpasswd.1.xml.out:33 #: groupadd.8.xml.out:29 #: groupdel.8.xml.out:27 -#: groupmems.8.xml.out:30 #: groupmod.8.xml.out:27 #: groups.1.xml.out:26 #: grpck.8.xml.out:26 @@ -293,7 +288,6 @@ msgstr "" #: gpasswd.1.xml.out:34 #: groupadd.8.xml.out:30 #: groupdel.8.xml.out:28 -#: groupmems.8.xml.out:31 #: groupmod.8.xml.out:28 #: groups.1.xml.out:27 #: grpck.8.xml.out:27 @@ -335,7 +329,6 @@ msgstr "" #: gpasswd.1.xml.out:35 #: groupadd.8.xml.out:31 #: groupdel.8.xml.out:29 -#: groupmems.8.xml.out:32 #: groupmod.8.xml.out:29 #: groups.1.xml.out:28 #: grpck.8.xml.out:28 @@ -377,7 +370,6 @@ msgstr "" #: gpasswd.1.xml.out:36 #: groupadd.8.xml.out:32 #: groupdel.8.xml.out:30 -#: groupmems.8.xml.out:33 #: groupmod.8.xml.out:30 #: groups.1.xml.out:29 #: grpck.8.xml.out:29 @@ -452,9 +444,6 @@ msgstr "" #: groupdel.8.xml.out:205 #: groupdel.8.xml.out:208 #: groupdel.8.xml.out:211 -#: groupmems.8.xml.out:209 -#: groupmems.8.xml.out:212 -#: groupmems.8.xml.out:215 #: groupmod.8.xml.out:326 #: groupmod.8.xml.out:329 #: groupmod.8.xml.out:332 @@ -554,7 +543,6 @@ msgstr "" #: gpasswd.1.xml.out:43 #: groupadd.8.xml.out:39 #: groupdel.8.xml.out:37 -#: groupmems.8.xml.out:40 #: groupmod.8.xml.out:37 #: groups.1.xml.out:36 #: grpck.8.xml.out:36 @@ -596,7 +584,6 @@ msgstr "" #: gpasswd.1.xml.out:44 #: groupadd.8.xml.out:40 #: groupdel.8.xml.out:38 -#: groupmems.8.xml.out:41 #: groupmod.8.xml.out:38 #: groups.1.xml.out:37 #: grpck.8.xml.out:37 @@ -692,7 +679,6 @@ msgstr "" #: gpasswd.1.xml.out:72 #: groupadd.8.xml.out:60 #: groupdel.8.xml.out:56 -#: groupmems.8.xml.out:61 #: groupmod.8.xml.out:56 #: groups.1.xml.out:54 #: grpck.8.xml.out:58 @@ -741,7 +727,6 @@ msgstr "" #: groupadd.8.xml.out:51 #: groupadd.8.xml.out:80 #: groupdel.8.xml.out:64 -#: groupmems.8.xml.out:76 #: groupmod.8.xml.out:65 #: grpck.8.xml.out:122 #: lastlog.8.xml.out:68 @@ -768,7 +753,6 @@ msgstr "" #: gpasswd.1.xml.out:120 #: groupadd.8.xml.out:81 #: groupdel.8.xml.out:65 -#: groupmems.8.xml.out:77 #: groupmod.8.xml.out:66 #: grpck.8.xml.out:127 #: lastlog.8.xml.out:69 @@ -786,7 +770,6 @@ msgstr "" #. (itstool) path: para/option #: chage.1.xml.out:74 #: gpasswd.1.xml.out:139 -#: groupmems.8.xml.out:94 #: passwd.1.xml.out:164 #: useradd.8.xml.out:123 #: useradd.8.xml.out:151 @@ -844,10 +827,6 @@ msgstr "" #: groupadd.8.xml.out:213 #: groupdel.8.xml.out:88 #: groupdel.8.xml.out:101 -#: groupmems.8.xml.out:83 -#: groupmems.8.xml.out:94 -#: groupmems.8.xml.out:110 -#: groupmems.8.xml.out:141 #: groupmod.8.xml.out:72 #: groupmod.8.xml.out:81 #: groupmod.8.xml.out:120 @@ -995,7 +974,6 @@ msgstr "" #: gpasswd.1.xml.out:151 #: groupadd.8.xml.out:118 #: groupdel.8.xml.out:82 -#: groupmems.8.xml.out:118 #: groupmod.8.xml.out:114 #: grpck.8.xml.out:132 #: lastlog.8.xml.out:96 @@ -1022,7 +1000,6 @@ msgstr "" #: gpasswd.1.xml.out:151 #: groupadd.8.xml.out:118 #: groupdel.8.xml.out:82 -#: groupmems.8.xml.out:118 #: groupmod.8.xml.out:114 #: grpck.8.xml.out:132 #: lastlog.8.xml.out:96 @@ -1064,9 +1041,6 @@ msgstr "" #: groupadd.8.xml.out:228 #: groupdel.8.xml.out:71 #: groupdel.8.xml.out:82 -#: groupmems.8.xml.out:118 -#: groupmems.8.xml.out:124 -#: groupmems.8.xml.out:130 #: groupmod.8.xml.out:114 #: groupmod.8.xml.out:131 #: groupmod.8.xml.out:193 @@ -1136,7 +1110,6 @@ msgstr "" #: gpasswd.1.xml.out:153 #: groupadd.8.xml.out:120 #: groupdel.8.xml.out:84 -#: groupmems.8.xml.out:120 #: groupmod.8.xml.out:116 #: grpck.8.xml.out:134 #: lastlog.8.xml.out:99 @@ -1215,8 +1188,6 @@ msgstr "" #: faillog.8.xml.out:105 #: faillog.8.xml.out:185 #: faillog.8.xml.out:202 -#: groupmems.8.xml.out:55 -#: groupmems.8.xml.out:124 #: passwd.1.xml.out:218 #: passwd.1.xml.out:327 #: su.1.xml.out:144 @@ -1228,7 +1199,6 @@ msgstr "" #. (itstool) path: term/option #: chage.1.xml.out:147 -#: groupmems.8.xml.out:124 msgid "--list" msgstr "" @@ -1337,7 +1307,6 @@ msgstr "" #: gpasswd.1.xml.out:191 #: groupadd.8.xml.out:201 #: groupdel.8.xml.out:89 -#: groupmems.8.xml.out:142 #: groupmod.8.xml.out:164 #: grpck.8.xml.out:149 #: lastlog.8.xml.out:104 @@ -1362,7 +1331,6 @@ msgstr "" #: gpasswd.1.xml.out:160 #: groupadd.8.xml.out:201 #: groupdel.8.xml.out:89 -#: groupmems.8.xml.out:142 #: groupmod.8.xml.out:164 #: grpck.8.xml.out:149 #: lastlog.8.xml.out:104 @@ -1406,9 +1374,6 @@ msgstr "" #: groupdel.8.xml.out:89 #: groupdel.8.xml.out:93 #: groupdel.8.xml.out:95 -#: groupmems.8.xml.out:142 -#: groupmems.8.xml.out:146 -#: groupmems.8.xml.out:148 #: groupmod.8.xml.out:164 #: groupmod.8.xml.out:168 #: groupmod.8.xml.out:170 @@ -1455,7 +1420,6 @@ msgstr "" #: gpasswd.1.xml.out:163 #: groupadd.8.xml.out:204 #: groupdel.8.xml.out:92 -#: groupmems.8.xml.out:145 #: groupmod.8.xml.out:167 #: grpck.8.xml.out:152 #: lastlog.8.xml.out:107 @@ -1625,7 +1589,6 @@ msgstr "" #: gpasswd.1.xml.out:243 #: groupadd.8.xml.out:247 #: groupdel.8.xml.out:133 -#: groupmems.8.xml.out:176 #: groupmod.8.xml.out:212 #: grpck.8.xml.out:196 #: lastlog.8.xml.out:182 @@ -1671,7 +1634,6 @@ msgstr "" #: groupadd.8.xml.out:250 #: groupadd.8.xml.out:276 #: groupdel.8.xml.out:136 -#: groupmems.8.xml.out:179 #: groupmod.8.xml.out:109 #: groupmod.8.xml.out:204 #: groupmod.8.xml.out:215 @@ -1731,7 +1693,6 @@ msgstr "" #: gpasswd.1.xml.out:244 #: groupadd.8.xml.out:248 #: groupdel.8.xml.out:134 -#: groupmems.8.xml.out:177 #: groupmod.8.xml.out:213 #: grpck.8.xml.out:197 #: lastlog.8.xml.out:183 @@ -1760,7 +1721,6 @@ msgstr "" #: gpasswd.1.xml.out:258 #: groupadd.8.xml.out:261 #: groupdel.8.xml.out:145 -#: groupmems.8.xml.out:188 #: groupmod.8.xml.out:224 #: groups.1.xml.out:77 #: grpck.8.xml.out:208 @@ -2010,7 +1970,6 @@ msgstr "" #: gpasswd.1.xml.out:276 #: groupadd.8.xml.out:343 #: groupdel.8.xml.out:202 -#: groupmems.8.xml.out:206 #: groupmod.8.xml.out:323 #: groups.1.xml.out:89 #: grpck.8.xml.out:277 @@ -2054,7 +2013,6 @@ msgstr "" #: chsh.1.xml.out:218 #: groupadd.8.xml.out:351 #: groupdel.8.xml.out:211 -#: groupmems.8.xml.out:215 #: groupmod.8.xml.out:332 #: grpck.8.xml.out:291 #: lastlog.8.xml.out:176 @@ -2243,7 +2201,6 @@ msgstr "" #: chsh.1.xml.out:212 #: groupadd.8.xml.out:345 #: groupdel.8.xml.out:205 -#: groupmems.8.xml.out:209 #: groupmod.8.xml.out:326 #: login.defs.5.xml.out:243 #: useradd.8.xml.out:898 @@ -2479,7 +2436,6 @@ msgstr "" #: chsh.1.xml.out:109 #: groupadd.8.xml.out:348 #: groupdel.8.xml.out:208 -#: groupmems.8.xml.out:212 #: groupmod.8.xml.out:329 #: login.defs.5.xml.out:280 #: useradd.8.xml.out:901 @@ -2575,12 +2531,6 @@ msgstr "" #: groupdel.8.xml.out:223 #: groupdel.8.xml.out:226 #: groupdel.8.xml.out:229 -#: groupmems.8.xml.out:38 -#: groupmems.8.xml.out:218 -#: groupmems.8.xml.out:221 -#: groupmems.8.xml.out:224 -#: groupmems.8.xml.out:227 -#: groupmems.8.xml.out:230 #: groupmod.8.xml.out:35 #: groupmod.8.xml.out:335 #: groupmod.8.xml.out:338 @@ -2658,7 +2608,6 @@ msgstr "" #: faillog.8.xml.out:35 #: groupadd.8.xml.out:38 #: groupdel.8.xml.out:36 -#: groupmems.8.xml.out:39 #: groupmod.8.xml.out:36 #: grpck.8.xml.out:35 #: lastlog.8.xml.out:37 @@ -2688,8 +2637,6 @@ msgstr "" #. (itstool) path: arg/replaceable #. (itstool) path: term/replaceable #: chgpasswd.8.xml.out:63 -#: groupmems.8.xml.out:54 -#: groupmems.8.xml.out:110 msgid "group_name" msgstr "" @@ -3009,7 +2956,6 @@ msgstr "" #: groupadd.8.xml.out:170 #: groupadd.8.xml.out:264 #: groupdel.8.xml.out:148 -#: groupmems.8.xml.out:191 #: groupmod.8.xml.out:227 #: groups.1.xml.out:58 #: groups.1.xml.out:70 @@ -3045,7 +2991,6 @@ msgstr "" #: gpasswd.1.xml.out:263 #: groupadd.8.xml.out:266 #: groupdel.8.xml.out:150 -#: groupmems.8.xml.out:193 #: groupmod.8.xml.out:229 #: groups.1.xml.out:82 #: grpck.8.xml.out:213 @@ -3071,14 +3016,6 @@ msgstr "" #: groupadd.8.xml.out:170 #: groupadd.8.xml.out:270 #: groupdel.8.xml.out:154 -#: groupmems.8.xml.out:87 -#: groupmems.8.xml.out:88 -#: groupmems.8.xml.out:98 -#: groupmems.8.xml.out:103 -#: groupmems.8.xml.out:104 -#: groupmems.8.xml.out:134 -#: groupmems.8.xml.out:135 -#: groupmems.8.xml.out:197 #: groupmod.8.xml.out:233 #: grpck.8.xml.out:63 #: grpck.8.xml.out:93 @@ -3157,7 +3094,6 @@ msgstr "" #: groupadd.8.xml.out:292 #: groupadd.8.xml.out:300 #: groupdel.8.xml.out:217 -#: groupmems.8.xml.out:218 #: groupmod.8.xml.out:338 #: login.defs.5.xml.out:303 #: useradd.8.xml.out:910 @@ -3217,10 +3153,6 @@ msgstr "" #. (itstool) path: arg/replaceable #. (itstool) path: term/replaceable #: chpasswd.8.xml.out:67 -#: groupmems.8.xml.out:52 -#: groupmems.8.xml.out:53 -#: groupmems.8.xml.out:83 -#: groupmems.8.xml.out:94 msgid "user_name" msgstr "" @@ -3335,7 +3267,6 @@ msgstr "" #: chpasswd.8.xml.out:318 #: groupadd.8.xml.out:366 #: groupdel.8.xml.out:223 -#: groupmems.8.xml.out:224 #: groupmod.8.xml.out:347 #: login.defs.5.xml.out:481 #: newusers.8.xml.out:488 @@ -3625,7 +3556,6 @@ msgstr "" #: faillog.8.xml.out:72 #: faillog.8.xml.out:215 #: gpasswd.1.xml.out:126 -#: groupmems.8.xml.out:83 #: groupmod.8.xml.out:73 #: passwd.1.xml.out:153 #: usermod.8.xml.out:78 @@ -3716,7 +3646,6 @@ msgstr "" #. (itstool) path: para/emphasis #: faillog.8.xml.out:134 -#: groupmems.8.xml.out:160 #: porttime.5.xml.out:85 msgid "root" msgstr "" @@ -4020,7 +3949,6 @@ msgstr "" #. (itstool) path: term/option #: gpasswd.1.xml.out:126 -#: groupmems.8.xml.out:83 msgid "--add" msgstr "" @@ -4045,7 +3973,6 @@ msgstr "" #. (itstool) path: term/option #: gpasswd.1.xml.out:139 -#: groupmems.8.xml.out:94 #: passwd.1.xml.out:164 msgid "--delete" msgstr "" @@ -4135,7 +4062,6 @@ msgstr "" #: groupdel.8.xml.out:57 #: groupdel.8.xml.out:66 #: groupdel.8.xml.out:165 -#: groupmems.8.xml.out:221 #: groupmod.8.xml.out:341 #: login.defs.5.xml.out:312 #: useradd.8.xml.out:913 @@ -4259,7 +4185,6 @@ msgstr "" #: groupadd.8.xml.out:95 #: groupadd.8.xml.out:102 #: groupadd.8.xml.out:236 -#: groupmems.8.xml.out:110 #: groupmod.8.xml.out:82 #: groupmod.8.xml.out:136 #: groupmod.8.xml.out:201 @@ -4432,8 +4357,6 @@ msgstr "" #. (itstool) path: cmdsynopsis/arg #. (itstool) path: para/option #: groupadd.8.xml.out:158 -#: groupmems.8.xml.out:55 -#: groupmems.8.xml.out:130 #: groupmod.8.xml.out:143 #: login.1.xml.out:80 #: login.1.xml.out:88 @@ -4693,7 +4616,6 @@ msgstr "" #. (itstool) path: para/command #: groupadd.8.xml.out:369 #: groupdel.8.xml.out:226 -#: groupmems.8.xml.out:227 #: groupmod.8.xml.out:350 #: login.defs.5.xml.out:499 #: useradd.8.xml.out:933 @@ -4720,7 +4642,6 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #: groupadd.8.xml.out:372 #: groupdel.8.xml.out:229 -#: groupmems.8.xml.out:230 #: groupmod.8.xml.out:353 #: login.defs.5.xml.out:509 #: passwd.1.xml.out:513 @@ -4828,22 +4749,18 @@ msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citeref msgstr "" #. (itstool) path: author/firstname -#: groupmems.8.xml.out:18 msgid "George" msgstr "" #. (itstool) path: author/surname -#: groupmems.8.xml.out:19 msgid "Kraft" msgstr "" #. (itstool) path: author/lineage -#: groupmems.8.xml.out:20 msgid "IV" msgstr "" #. (itstool) path: author/contrib -#: groupmems.8.xml.out:21 msgid "Creation, 2000" msgstr "" @@ -4852,104 +4769,75 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: groupmems.8.xml.out:37 -#: groupmems.8.xml.out:44 -#: groupmems.8.xml.out:50 -#: groupmems.8.xml.out:63 -#: groupmems.8.xml.out:65 -#: groupmems.8.xml.out:71 -#: groupmems.8.xml.out:78 -#: groupmems.8.xml.out:159 -#: groupmems.8.xml.out:163 #: login.defs.5.xml.out:318 -msgid "groupmems" msgstr "" #. (itstool) path: refnamediv/refpurpose -#: groupmems.8.xml.out:45 msgid "administer members of a user's primary group" msgstr "" #. (itstool) path: group/arg -#: groupmems.8.xml.out:52 msgid "-a <_:replaceable-1/>" msgstr "" #. (itstool) path: group/arg -#: groupmems.8.xml.out:53 msgid "-d <_:replaceable-1/>" msgstr "" #. (itstool) path: group/arg -#: groupmems.8.xml.out:54 msgid "-g <_:replaceable-1/>" msgstr "" #. (itstool) path: refsect1/para -#: groupmems.8.xml.out:62 msgid "The <_:command-1/> command allows a user to administer their own group membership list without the requirement of superuser privileges. The <_:command-2/> utility is for systems that configure its users to be in their own name sake primary group (i.e., guest / guest)." msgstr "" #. (itstool) path: refsect1/para -#: groupmems.8.xml.out:70 msgid "Only the superuser, as administrator, can use <_:command-1/> to alter the memberships of other groups." msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:85 msgid "Add a user to the group membership list." msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:86 -#: groupmems.8.xml.out:102 -#: groupmems.8.xml.out:133 msgid "If the <_:filename-1/> file exist, and the group has no entry in the <_:filename-2/> file, a new entry will be created." msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:96 msgid "Delete a user from the group membership list." msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:97 msgid "If the <_:filename-1/> file exist, the user will be removed from the list of members and administrators of the group." msgstr "" #. (itstool) path: term/option -#: groupmems.8.xml.out:110 #: vipw.8.xml.out:90 msgid "--group" msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:112 msgid "The superuser can specify which group membership list to modify." msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:126 msgid "List the group membership list." msgstr "" #. (itstool) path: term/option -#: groupmems.8.xml.out:130 msgid "--purge" msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:132 msgid "Purge all users from the group membership list." msgstr "" #. (itstool) path: refsect1/title -#: groupmems.8.xml.out:157 msgid "SETUP" msgstr "" #. (itstool) path: para/literal -#: groupmems.8.xml.out:160 msgid "2710" msgstr "" @@ -4958,8 +4846,6 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: groupmems.8.xml.out:161 -#: groupmems.8.xml.out:162 #: groups.1.xml.out:33 #: groups.1.xml.out:40 #: groups.1.xml.out:46 @@ -4968,22 +4854,17 @@ msgid "groups" msgstr "" #. (itstool) path: refsect1/para -#: groupmems.8.xml.out:158 msgid "The <_:command-1/> executable should be in mode <_:literal-2/> as user <_:emphasis-3/> and in group <_:emphasis-4/>. The system administrator can add users to group <_:emphasis-5/> to allow or disallow them using the <_:command-6/> utility to manage their own group membership list." msgstr "" #. (itstool) path: refsect1/programlisting -#: groupmems.8.xml.out:167 -msgid "$ groupadd -r groups $ chmod 2710 groupmems $ chown root:groups groupmems $ groupmems -g groups -a gk4" msgstr "" #. (itstool) path: listitem/para -#: groupmems.8.xml.out:199 msgid "secure group account information" msgstr "" #. (itstool) path: refsect1/para -#: groupmems.8.xml.out:207 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>, <_:citerefentry-8/>." msgstr "" diff --git a/man/ru/Makefile.am b/man/ru/Makefile.am index b3102b1d23..69c43cf753 100644 --- a/man/ru/Makefile.am +++ b/man/ru/Makefile.am @@ -13,7 +13,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ diff --git a/man/sv/Makefile.am b/man/sv/Makefile.am index 64eda7e65f..688183768f 100644 --- a/man/sv/Makefile.am +++ b/man/sv/Makefile.am @@ -9,7 +9,6 @@ man_MANS = \ man3/getspnam.3 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man5/gshadow.5 \ diff --git a/man/uk/Makefile.am b/man/uk/Makefile.am index b61a38e822..60b6508c49 100644 --- a/man/uk/Makefile.am +++ b/man/uk/Makefile.am @@ -13,7 +13,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ diff --git a/man/zh_CN/Makefile.am b/man/zh_CN/Makefile.am index 83ed1776e0..1d5f7b4ca2 100644 --- a/man/zh_CN/Makefile.am +++ b/man/zh_CN/Makefile.am @@ -13,7 +13,6 @@ man_MANS = \ man1/gpasswd.1 \ man8/groupadd.8 \ man8/groupdel.8 \ - man8/groupmems.8 \ man8/groupmod.8 \ man8/grpck.8 \ man8/grpconv.8 \ diff --git a/po/POTFILES.in b/po/POTFILES.in index 2071f3f82f..8dd9610d38 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -83,7 +83,6 @@ src/faillog.c src/gpasswd.c src/groupadd.c src/groupdel.c -src/groupmems.c src/groupmod.c src/grpck.c src/grpconv.c diff --git a/share/ansible/roles/ci_run/tasks/fedora.yml b/share/ansible/roles/ci_run/tasks/fedora.yml index 7f02e77b7d..2fc6781e27 100644 --- a/share/ansible/roles/ci_run/tasks/fedora.yml +++ b/share/ansible/roles/ci_run/tasks/fedora.yml @@ -31,15 +31,6 @@ group: root mode: '0644' -- name: Temporary workaround to create the groupmems PAM service file - ansible.builtin.copy: - src: /etc/pam.d/chfn - dest: /etc/pam.d/groupmems - remote_src: yes - owner: root - group: root - mode: '0644' - - name: Temporary workaround to create the chpasswd PAM service file ansible.builtin.copy: src: /etc/pam.d/chfn diff --git a/src/.gitignore b/src/.gitignore index 5c78083e15..1a99dff241 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -7,7 +7,6 @@ /gpasswd /groupadd /groupdel -/groupmems /groupmod /grpck /grpconv diff --git a/src/Makefile.am b/src/Makefile.am index 187a32a8d1..c935e05b30 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -43,7 +43,6 @@ usbin_PROGRAMS = \ chpasswd \ groupadd \ groupdel \ - groupmems \ groupmod \ grpck \ grpconv \ @@ -99,7 +98,6 @@ chpasswd_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT) $(LIBE gpasswd_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT) $(LIBECONF) groupadd_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBECONF) -ldl groupdel_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBECONF) -ldl -groupmems_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX) $(LIBECONF) groupmod_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBECONF) -ldl grpck_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBECONF) grpconv_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBECONF) diff --git a/src/groupmems.c b/src/groupmems.c deleted file mode 100644 index 88054bb704..0000000000 --- a/src/groupmems.c +++ /dev/null @@ -1,641 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2000 , International Business Machines - * SPDX-FileCopyrightText: 2000 , George Kraft IV, gk4@us.ibm.com, 03/23/2000 - * SPDX-FileCopyrightText: 2000 - 2006, Tomasz KÅ‚oczko - * SPDX-FileCopyrightText: 2007 - 2011, Nicolas François - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#include "config.h" - -#include -#include -#include -#include -#include -#ifdef USE_PAM -#include "pam_defs.h" -#endif /* USE_PAM */ -#include - -#include "alloc/malloc.h" -#include "attr.h" -#include "defines.h" -#include "groupio.h" -#include "prototypes.h" -#ifdef SHADOWGRP -#include "sgroupio.h" -#endif -#include "shadow/gshadow/sgrp.h" -#include "shadowlog.h" -#include "string/strcmp/streq.h" -#include "string/strdup/strdup.h" - - -/* Exit Status Values */ -/*@-exitarg@*/ -#define EXIT_SUCCESS 0 /* success */ -#define EXIT_USAGE 1 /* invalid command syntax */ -#define EXIT_GROUP_FILE 2 /* group file access problems */ -#define EXIT_NOT_ROOT 3 /* not superuser */ -#define EXIT_NOT_EROOT 4 /* not effective superuser */ -#define EXIT_NOT_PRIMARY 5 /* not primary owner of group */ -#define EXIT_NOT_MEMBER 6 /* member of group does not exist */ -#define EXIT_MEMBER_EXISTS 7 /* member of group already exists */ -#define EXIT_INVALID_USER 8 /* specified user does not exist */ -#define EXIT_INVALID_GROUP 9 /* specified group does not exist */ - -/* - * Structures - */ -struct option_flags { - bool chroot; -}; - -/* - * Global variables - */ -static const char Prog[] = "groupmems"; - -static char *adduser = NULL; -static char *deluser = NULL; -static char *thisgroup = NULL; -static bool purge = false; -static bool list = false; -static int exclusive = 0; -static bool gr_locked = false; -#ifdef SHADOWGRP -/* Indicate if shadow groups are enabled on the system - * (/etc/gshadow present) */ -static bool is_shadowgrp; -static bool sgr_locked = false; -#endif - -/* local function prototypes */ -static char *whoami (void); -static void add_user (const char *user, - const struct group *grp, - bool process_selinux); -static void remove_user (const char *user, - const struct group *grp, - bool process_selinux); -static void purge_members (const struct group *grp, bool process_selinux); -static void display_members (const char *const *members); -NORETURN static void usage (int status); -static void process_flags (int argc, char **argv, struct option_flags *flags); -static void check_perms (bool process_selinux); -NORETURN static void fail_exit (int code, bool process_selinux); -#define isroot() (getuid () == 0) - -static char *whoami (void) -{ - /* local, no need for xgetgrgid */ - struct group *grp = getgrgid (getgid ()); - /* local, no need for xgetpwuid */ - struct passwd *usr = getpwuid (getuid ()); - - if ( (NULL != usr) - && (NULL != grp) - && streq(usr->pw_name, grp->gr_name)) { - return xstrdup (usr->pw_name); - } else { - return NULL; - } -} - -/* - * add_user - Add a user to the specified group - */ -static void add_user (const char *user, - const struct group *grp, - bool process_selinux) -{ - struct group *newgrp; - - /* Make sure the user is not already part of the group */ - if (is_on_list (grp->gr_mem, user)) { - fprintf (stderr, - _("%s: user '%s' is already a member of '%s'\n"), - Prog, user, grp->gr_name); - fail_exit (EXIT_MEMBER_EXISTS, process_selinux); - } - - newgrp = __gr_dup(grp); - if (NULL == newgrp) { - fprintf (stderr, - _("%s: Out of memory. Cannot update %s.\n"), - Prog, gr_dbname ()); - fail_exit (13, process_selinux); - } - - /* Add the user to the /etc/group group */ - newgrp->gr_mem = add_list (newgrp->gr_mem, user); - -#ifdef SHADOWGRP - if (is_shadowgrp) { - const struct sgrp *sg = sgr_locate (newgrp->gr_name); - struct sgrp *newsg; - - if (NULL == sg) { - /* Create a shadow group based on this group */ - static struct sgrp sgrent; - sgrent.sg_namp = xstrdup (newgrp->gr_name); - sgrent.sg_mem = dup_list (newgrp->gr_mem); - sgrent.sg_adm = xmalloc_T(1, char *); - sgrent.sg_adm[0] = NULL; - - /* Move any password to gshadow */ - sgrent.sg_passwd = newgrp->gr_passwd; - newgrp->gr_passwd = SHADOW_PASSWD_STRING; - - newsg = &sgrent; - } else { - newsg = __sgr_dup (sg); - if (NULL == newsg) { - fprintf (stderr, - _("%s: Out of memory. Cannot update %s.\n"), - Prog, sgr_dbname ()); - fail_exit (13, process_selinux); - } - /* Add the user to the members */ - newsg->sg_mem = add_list (newsg->sg_mem, user); - /* Do not touch the administrators */ - } - - if (sgr_update (newsg) == 0) { - fprintf (stderr, - _("%s: failed to prepare the new %s entry '%s'\n"), - Prog, sgr_dbname (), newsg->sg_namp); - fail_exit (13, process_selinux); - } - } -#endif - - if (gr_update (newgrp) == 0) { - fprintf (stderr, - _("%s: failed to prepare the new %s entry '%s'\n"), - Prog, gr_dbname (), newgrp->gr_name); - fail_exit (13, process_selinux); - } -} - -/* - * remove_user - Remove a user from a given group - */ -static void remove_user (const char *user, - const struct group *grp, - bool process_selinux) -{ - struct group *newgrp; - - /* Check if the user is a member of the specified group */ - if (!is_on_list (grp->gr_mem, user)) { - fprintf (stderr, - _("%s: user '%s' is not a member of '%s'\n"), - Prog, user, grp->gr_name); - fail_exit (EXIT_NOT_MEMBER, process_selinux); - } - - newgrp = __gr_dup (grp); - if (NULL == newgrp) { - fprintf (stderr, - _("%s: Out of memory. Cannot update %s.\n"), - Prog, gr_dbname ()); - fail_exit (13, process_selinux); - } - - /* Remove the user from the /etc/group group */ - newgrp->gr_mem = del_list (newgrp->gr_mem, user); - -#ifdef SHADOWGRP - if (is_shadowgrp) { - const struct sgrp *sg = sgr_locate (newgrp->gr_name); - struct sgrp *newsg; - - if (NULL == sg) { - /* Create a shadow group based on this group */ - static struct sgrp sgrent; - sgrent.sg_namp = xstrdup (newgrp->gr_name); - sgrent.sg_mem = dup_list (newgrp->gr_mem); - sgrent.sg_adm = xmalloc_T(1, char *); - sgrent.sg_adm[0] = NULL; - - /* Move any password to gshadow */ - sgrent.sg_passwd = newgrp->gr_passwd; - newgrp->gr_passwd = SHADOW_PASSWD_STRING; - - newsg = &sgrent; - } else { - newsg = __sgr_dup (sg); - if (NULL == newsg) { - fprintf (stderr, - _("%s: Out of memory. Cannot update %s.\n"), - Prog, sgr_dbname ()); - fail_exit (13, process_selinux); - } - /* Remove the user from the members */ - newsg->sg_mem = del_list (newsg->sg_mem, user); - /* Remove the user from the administrators */ - newsg->sg_adm = del_list (newsg->sg_adm, user); - } - - if (sgr_update (newsg) == 0) { - fprintf (stderr, - _("%s: failed to prepare the new %s entry '%s'\n"), - Prog, sgr_dbname (), newsg->sg_namp); - fail_exit (13, process_selinux); - } - } -#endif - - if (gr_update (newgrp) == 0) { - fprintf (stderr, - _("%s: failed to prepare the new %s entry '%s'\n"), - Prog, gr_dbname (), newgrp->gr_name); - fail_exit (13, process_selinux); - } -} - -/* - * purge_members - Remove every members of the specified group - */ -static void purge_members (const struct group *grp, bool process_selinux) -{ - struct group *newgrp = __gr_dup (grp); - - if (NULL == newgrp) { - fprintf (stderr, - _("%s: Out of memory. Cannot update %s.\n"), - Prog, gr_dbname ()); - fail_exit (13, process_selinux); - } - - /* Remove all the members of the /etc/group group */ - newgrp->gr_mem[0] = NULL; - -#ifdef SHADOWGRP - if (is_shadowgrp) { - const struct sgrp *sg = sgr_locate (newgrp->gr_name); - struct sgrp *newsg; - - if (NULL == sg) { - /* Create a shadow group based on this group */ - static struct sgrp sgrent; - sgrent.sg_namp = xstrdup (newgrp->gr_name); - sgrent.sg_mem = xmalloc_T(1, char *); - sgrent.sg_mem[0] = NULL; - sgrent.sg_adm = xmalloc_T(1, char *); - sgrent.sg_adm[0] = NULL; - - /* Move any password to gshadow */ - sgrent.sg_passwd = newgrp->gr_passwd; - newgrp->gr_passwd = xstrdup(SHADOW_PASSWD_STRING); - - newsg = &sgrent; - } else { - newsg = __sgr_dup (sg); - if (NULL == newsg) { - fprintf (stderr, - _("%s: Out of memory. Cannot update %s.\n"), - Prog, sgr_dbname ()); - fail_exit (13, process_selinux); - } - /* Remove all the members of the /etc/gshadow - * group */ - newsg->sg_mem[0] = NULL; - /* Remove all the administrators of the - * /etc/gshadow group */ - newsg->sg_adm[0] = NULL; - } - - if (sgr_update (newsg) == 0) { - fprintf (stderr, - _("%s: failed to prepare the new %s entry '%s'\n"), - Prog, sgr_dbname (), newsg->sg_namp); - fail_exit (13, process_selinux); - } - } -#endif - - if (gr_update (newgrp) == 0) { - fprintf (stderr, - _("%s: failed to prepare the new %s entry '%s'\n"), - Prog, gr_dbname (), newgrp->gr_name); - fail_exit (13, process_selinux); - } -} - -static void display_members (const char *const *members) -{ - int i; - - for (i = 0; NULL != members[i]; i++) { - printf ("%s ", members[i]); - - if (NULL == members[i + 1]) { - printf ("\n"); - } else { - printf (" "); - } - } -} - -NORETURN -static void -usage (int status) -{ - FILE *usageout = (EXIT_SUCCESS != status) ? stderr : stdout; - (void) fprintf (usageout, - _("Usage: %s [options] [action]\n" - "\n" - "Options:\n"), - Prog); - (void) fputs (_(" -g, --group groupname change groupname instead of the user's group\n" - " (root only)\n"), usageout); - (void) fputs (_(" -R, --root CHROOT_DIR directory to chroot into\n"), usageout); - (void) fputs (_("\n"), usageout); - (void) fputs (_("Actions:\n"), usageout); - (void) fputs (_(" -a, --add username add username to the members of the group\n"), usageout); - (void) fputs (_(" -d, --delete username remove username from the members of the group\n"), usageout); - (void) fputs (_(" -h, --help display this help message and exit\n"), usageout); - (void) fputs (_(" -p, --purge purge all members from the group\n"), usageout); - (void) fputs (_(" -l, --list list the members of the group\n"), usageout); - exit (status); -} - -/* - * process_flags - perform command line argument setting - */ -static void process_flags (int argc, char **argv, struct option_flags *flags) -{ - int c; - static struct option long_options[] = { - {"add", required_argument, NULL, 'a'}, - {"delete", required_argument, NULL, 'd'}, - {"group", required_argument, NULL, 'g'}, - {"help", no_argument, NULL, 'h'}, - {"list", no_argument, NULL, 'l'}, - {"purge", no_argument, NULL, 'p'}, - {"root", required_argument, NULL, 'R'}, - {NULL, 0, NULL, '\0'} - }; - - while ((c = getopt_long (argc, argv, "a:d:g:hlpR:", - long_options, NULL)) != EOF) { - switch (c) { - case 'a': - adduser = xstrdup (optarg); - ++exclusive; - break; - case 'd': - deluser = xstrdup (optarg); - ++exclusive; - break; - case 'g': - thisgroup = xstrdup (optarg); - break; - case 'h': - usage (EXIT_SUCCESS); - /*@notreached@*/break; - case 'l': - list = true; - ++exclusive; - break; - case 'p': - purge = true; - ++exclusive; - break; - case 'R': /* no-op, handled in process_root_flag () */ - flags->chroot = true; - break; - default: - usage (EXIT_USAGE); - } - } - - if ((exclusive > 1) || (optind < argc)) { - usage (EXIT_USAGE); - } - - /* local, no need for xgetpwnam */ - if ( (NULL != adduser) - && (getpwnam (adduser) == NULL)) { - fprintf (stderr, _("%s: user '%s' does not exist\n"), - Prog, adduser); - fail_exit (EXIT_INVALID_USER, !flags->chroot); - } - -} - -static void -check_perms(MAYBE_UNUSED bool process_selinux) -{ - if (!list) { -#ifdef USE_PAM - pam_handle_t *pamh = NULL; - int retval; - struct passwd *pampw; - - pampw = getpwuid (getuid ()); /* local, no need for xgetpwuid */ - if (NULL == pampw) { - fprintf (stderr, - _("%s: Cannot determine your user name.\n"), - Prog); - fail_exit (1, process_selinux); - } - - retval = pam_start (Prog, pampw->pw_name, &conv, &pamh); - - if (PAM_SUCCESS == retval) { - retval = pam_authenticate (pamh, 0); - } - - if (PAM_SUCCESS == retval) { - retval = pam_acct_mgmt (pamh, 0); - } - - if (PAM_SUCCESS != retval) { - fprintf (stderr, _("%s: PAM: %s\n"), - Prog, pam_strerror (pamh, retval)); - SYSLOG(LOG_ERR, "%s", pam_strerror(pamh, retval)); - if (NULL != pamh) { - (void) pam_end (pamh, retval); - } - fail_exit (1, process_selinux); - } - (void) pam_end (pamh, retval); -#endif - } -} - -static void fail_exit (int code, bool process_selinux) -{ - if (gr_locked) { - if (gr_unlock (process_selinux) == 0) { - fprintf (stderr, - _("%s: failed to unlock %s\n"), - Prog, gr_dbname ()); - SYSLOG(LOG_ERR, "failed to unlock %s", gr_dbname()); - /* continue */ - } - } - -#ifdef SHADOWGRP - if (sgr_locked) { - if (sgr_unlock (process_selinux) == 0) { - fprintf (stderr, - _("%s: failed to unlock %s\n"), - Prog, sgr_dbname ()); - SYSLOG(LOG_ERR, "failed to unlock %s", sgr_dbname()); - /* continue */ - } - } -#endif - - exit (code); -} - -static void open_files (bool process_selinux) -{ - if (!list) { - if (gr_lock () == 0) { - fprintf (stderr, - _("%s: cannot lock %s; try again later.\n"), - Prog, gr_dbname ()); - fail_exit (EXIT_GROUP_FILE, process_selinux); - } - gr_locked = true; - -#ifdef SHADOWGRP - if (is_shadowgrp) { - if (sgr_lock () == 0) { - fprintf (stderr, - _("%s: cannot lock %s; try again later.\n"), - Prog, sgr_dbname ()); - fail_exit (EXIT_GROUP_FILE, process_selinux); - } - sgr_locked = true; - } -#endif - } - - if (gr_open (list ? O_RDONLY : O_CREAT | O_RDWR) == 0) { - fprintf (stderr, _("%s: cannot open %s\n"), Prog, gr_dbname ()); - fail_exit (EXIT_GROUP_FILE, process_selinux); - } - -#ifdef SHADOWGRP - if (is_shadowgrp) { - if (sgr_open (list ? O_RDONLY : O_CREAT | O_RDWR) == 0) { - fprintf (stderr, _("%s: cannot open %s\n"), Prog, sgr_dbname ()); - fail_exit (EXIT_GROUP_FILE, process_selinux); - } - } -#endif -} - -static void close_files(const struct option_flags *flags) -{ - bool process_selinux; - - process_selinux = !flags->chroot; - - if ((gr_close (process_selinux) == 0) && !list) { - fprintf (stderr, _("%s: failure while writing changes to %s\n"), Prog, gr_dbname ()); - SYSLOG(LOG_ERR, "failure while writing changes to %s", gr_dbname()); - fail_exit (EXIT_GROUP_FILE, process_selinux); - } - if (gr_locked) { - if (gr_unlock (process_selinux) == 0) { - fprintf (stderr, _("%s: failed to unlock %s\n"), Prog, gr_dbname ()); - SYSLOG(LOG_ERR, "failed to unlock %s", gr_dbname()); - /* continue */ - } - gr_locked = false; - } - -#ifdef SHADOWGRP - if (is_shadowgrp) { - if ((sgr_close (process_selinux) == 0) && !list) { - fprintf (stderr, _("%s: failure while writing changes to %s\n"), Prog, sgr_dbname ()); - SYSLOG(LOG_ERR, "failure while writing changes to %s", sgr_dbname()); - fail_exit (EXIT_GROUP_FILE, process_selinux); - } - if (sgr_locked) { - if (sgr_unlock (process_selinux) == 0) { - fprintf (stderr, _("%s: failed to unlock %s\n"), Prog, sgr_dbname ()); - SYSLOG(LOG_ERR, "failed to unlock %s", sgr_dbname()); - /* continue */ - } - sgr_locked = false; - } - } -#endif -} - -int main (int argc, char **argv) -{ - char *name; - const struct group *grp; - struct option_flags flags = {.chroot = false}; - bool process_selinux; - - log_set_progname(Prog); - log_set_logfd(stderr); - - (void) setlocale (LC_ALL, ""); - (void) bindtextdomain (PACKAGE, LOCALEDIR); - (void) textdomain (PACKAGE); - - process_root_flag ("-R", argc, argv); - - OPENLOG (Prog); - -#ifdef SHADOWGRP - is_shadowgrp = sgr_file_present (); -#endif - - process_flags (argc, argv, &flags); - process_selinux = !flags.chroot; - - if (NULL == thisgroup) { - name = whoami (); - if (!list && (NULL == name)) { - fprintf (stderr, _("%s: your groupname does not match your username\n"), Prog); - fail_exit (EXIT_NOT_PRIMARY, process_selinux); - } - } else { - name = thisgroup; - if (!list && !isroot ()) { - fprintf (stderr, _("%s: only root can use the -g/--group option\n"), Prog); - fail_exit (EXIT_NOT_ROOT, process_selinux); - } - } - - check_perms (process_selinux); - - open_files (process_selinux); - - grp = gr_locate (name); - if (NULL == grp) { - fprintf (stderr, _("%s: group '%s' does not exist in %s\n"), - Prog, name, gr_dbname ()); - fail_exit (EXIT_INVALID_GROUP, process_selinux); - } - - if (list) { - display_members ((const char *const *)grp->gr_mem); - } else if (NULL != adduser) { - add_user (adduser, grp, process_selinux); - } else if (NULL != deluser) { - remove_user (deluser, grp, process_selinux); - } else if (purge) { - purge_members (grp, process_selinux); - } - - close_files (&flags); - - exit (EXIT_SUCCESS); -} - diff --git a/tests/debian/01/data/passwd_files b/tests/debian/01/data/passwd_files index 2f3cabdd02..f66d4c7225 100644 --- a/tests/debian/01/data/passwd_files +++ b/tests/debian/01/data/passwd_files @@ -8,7 +8,6 @@ /etc/pam.d/chfn /etc/pam.d/chpasswd /etc/pam.d/chsh -/etc/pam.d/groupmems /etc/pam.d/newusers /etc/pam.d/passwd /sbin @@ -25,7 +24,6 @@ /usr/sbin/chpasswd /usr/sbin/groupadd /usr/sbin/groupdel -/usr/sbin/groupmems /usr/sbin/groupmod /usr/sbin/grpck /usr/sbin/grpconv @@ -93,7 +91,6 @@ /usr/share/man/de/man8/chpasswd.8.gz /usr/share/man/de/man8/groupadd.8.gz /usr/share/man/de/man8/groupdel.8.gz -/usr/share/man/de/man8/groupmems.8.gz /usr/share/man/de/man8/groupmod.8.gz /usr/share/man/de/man8/grpck.8.gz /usr/share/man/de/man8/grpconv.8.gz @@ -128,7 +125,6 @@ /usr/share/man/fr/man8/chpasswd.8.gz /usr/share/man/fr/man8/groupadd.8.gz /usr/share/man/fr/man8/groupdel.8.gz -/usr/share/man/fr/man8/groupmems.8.gz /usr/share/man/fr/man8/groupmod.8.gz /usr/share/man/fr/man8/grpck.8.gz /usr/share/man/fr/man8/grpconv.8.gz @@ -170,7 +166,6 @@ /usr/share/man/it/man8/chpasswd.8.gz /usr/share/man/it/man8/groupadd.8.gz /usr/share/man/it/man8/groupdel.8.gz -/usr/share/man/it/man8/groupmems.8.gz /usr/share/man/it/man8/groupmod.8.gz /usr/share/man/it/man8/grpck.8.gz /usr/share/man/it/man8/grpconv.8.gz @@ -238,7 +233,6 @@ /usr/share/man/man8/chpasswd.8.gz /usr/share/man/man8/groupadd.8.gz /usr/share/man/man8/groupdel.8.gz -/usr/share/man/man8/groupmems.8.gz /usr/share/man/man8/groupmod.8.gz /usr/share/man/man8/grpck.8.gz /usr/share/man/man8/grpconv.8.gz @@ -260,7 +254,6 @@ /usr/share/man/pl/man8 /usr/share/man/pl/man8/groupadd.8.gz /usr/share/man/pl/man8/groupdel.8.gz -/usr/share/man/pl/man8/groupmems.8.gz /usr/share/man/pl/man8/groupmod.8.gz /usr/share/man/pl/man8/grpck.8.gz /usr/share/man/pl/man8/shadowconfig.8.gz @@ -293,7 +286,6 @@ /usr/share/man/ru/man8/chpasswd.8.gz /usr/share/man/ru/man8/groupadd.8.gz /usr/share/man/ru/man8/groupdel.8.gz -/usr/share/man/ru/man8/groupmems.8.gz /usr/share/man/ru/man8/groupmod.8.gz /usr/share/man/ru/man8/grpck.8.gz /usr/share/man/ru/man8/grpconv.8.gz @@ -318,7 +310,6 @@ /usr/share/man/sv/man8 /usr/share/man/sv/man8/groupadd.8.gz /usr/share/man/sv/man8/groupdel.8.gz -/usr/share/man/sv/man8/groupmems.8.gz /usr/share/man/sv/man8/groupmod.8.gz /usr/share/man/sv/man8/grpck.8.gz /usr/share/man/sv/man8/pwck.8.gz @@ -355,7 +346,6 @@ /usr/share/man/zh_CN/man8/chpasswd.8.gz /usr/share/man/zh_CN/man8/groupadd.8.gz /usr/share/man/zh_CN/man8/groupdel.8.gz -/usr/share/man/zh_CN/man8/groupmems.8.gz /usr/share/man/zh_CN/man8/groupmod.8.gz /usr/share/man/zh_CN/man8/grpck.8.gz /usr/share/man/zh_CN/man8/grpconv.8.gz diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/config.txt b/tests/failures/groupmems/01_groupmems_group_open_failure/config.txt deleted file mode 100644 index e9e4bbed8b..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/config.txt +++ /dev/null @@ -1 +0,0 @@ -group foo, GID 1000 diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/group b/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/group deleted file mode 100644 index fecba0c4ed..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/group +++ /dev/null @@ -1,42 +0,0 @@ -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: diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/gshadow b/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/gshadow deleted file mode 100644 index 5042e5818a..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/gshadow +++ /dev/null @@ -1,42 +0,0 @@ -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:*:: diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/passwd b/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/passwd deleted file mode 100644 index 43fc135a40..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/passwd +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/shadow b/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/shadow deleted file mode 100644 index 5f50d1873b..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/config/etc/shadow +++ /dev/null @@ -1,19 +0,0 @@ -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::: diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/data/groupmems.err b/tests/failures/groupmems/01_groupmems_group_open_failure/data/groupmems.err deleted file mode 100644 index 1d13747d82..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/data/groupmems.err +++ /dev/null @@ -1,2 +0,0 @@ -open FAILURE /etc/group 2 ... -groupmems: cannot open /etc/group diff --git a/tests/failures/groupmems/01_groupmems_group_open_failure/groupmems.test b/tests/failures/groupmems/01_groupmems_group_open_failure/groupmems.test deleted file mode 100755 index 7b772cfa98..0000000000 --- a/tests/failures/groupmems/01_groupmems_group_open_failure/groupmems.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems report failures when it cannot open the group file" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Change group 1001 (groupmems -g 1001 -a nobody)..." -LD_PRELOAD=../../../common/open_RDWR_failure.so FAILURE_PATH=/etc/group groupmems -g 1001 -a nobody 2>tmp/groupmems.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "2" -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/groupmems.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/groupmems.err tmp/groupmems.err -echo "error message OK." -rm -f tmp/groupmems.err - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config.txt b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config.txt deleted file mode 100644 index e9e4bbed8b..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config.txt +++ /dev/null @@ -1 +0,0 @@ -group foo, GID 1000 diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/group b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/group deleted file mode 100644 index fecba0c4ed..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/group +++ /dev/null @@ -1,42 +0,0 @@ -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: diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/gshadow b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/gshadow deleted file mode 100644 index 5042e5818a..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/gshadow +++ /dev/null @@ -1,42 +0,0 @@ -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:*:: diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/passwd b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/passwd deleted file mode 100644 index 43fc135a40..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/passwd +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/shadow b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/shadow deleted file mode 100644 index 5f50d1873b..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/config/etc/shadow +++ /dev/null @@ -1,19 +0,0 @@ -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::: diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/data/groupmems.err b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/data/groupmems.err deleted file mode 100644 index 3e01ee178d..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/data/groupmems.err +++ /dev/null @@ -1,2 +0,0 @@ -open FAILURE /etc/gshadow 2 ... -groupmems: cannot open /etc/gshadow diff --git a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/groupmems.test b/tests/failures/groupmems/02_groupmems_gshadow_open_failure/groupmems.test deleted file mode 100755 index 8be4d6efa6..0000000000 --- a/tests/failures/groupmems/02_groupmems_gshadow_open_failure/groupmems.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems report failures when it cannot open the gshadow file" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Change group 1001 (groupmems -g 1001 -a nobody)..." -LD_PRELOAD=../../../common/open_RDWR_failure.so FAILURE_PATH=/etc/gshadow groupmems -g 1001 -a nobody 2>tmp/groupmems.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "2" -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/groupmems.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/groupmems.err tmp/groupmems.err -echo "error message OK." -rm -f tmp/groupmems.err - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/config.txt b/tests/grouptools/groupmems/01_groupmems_root_add_user/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/group b/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/gshadow b/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/passwd b/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/shadow b/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/data/group b/tests/grouptools/groupmems/01_groupmems_root_add_user/data/group deleted file mode 100644 index 62aeba48fa..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1 diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/data/gshadow b/tests/grouptools/groupmems/01_groupmems_root_add_user/data/gshadow deleted file mode 100644 index 563a8baa5d..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::utest1 diff --git a/tests/grouptools/groupmems/01_groupmems_root_add_user/groupmems.test b/tests/grouptools/groupmems/01_groupmems_root_add_user/groupmems.test deleted file mode 100755 index 74c7420575..0000000000 --- a/tests/grouptools/groupmems/01_groupmems_root_add_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) 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 utest1 to group gtest1..." -groupmems -a utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/config.txt b/tests/grouptools/groupmems/02_groupmems_root_del_user/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/group b/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/group deleted file mode 100644 index 62aeba48fa..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1 diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/gshadow b/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/gshadow deleted file mode 100644 index 563a8baa5d..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::utest1 diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/passwd b/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/shadow b/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/data/group b/tests/grouptools/groupmems/02_groupmems_root_del_user/data/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/data/gshadow b/tests/grouptools/groupmems/02_groupmems_root_del_user/data/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/02_groupmems_root_del_user/groupmems.test b/tests/grouptools/groupmems/02_groupmems_root_del_user/groupmems.test deleted file mode 100755 index fca4fdb4c3..0000000000 --- a/tests/grouptools/groupmems/02_groupmems_root_del_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can remove an user from a group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Remove user utest1 from group gtest1..." -groupmems -d utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config.txt b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/group b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/group deleted file mode 100644 index 62aeba48fa..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1 diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/gshadow b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/gshadow deleted file mode 100644 index a559a9acc9..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:utest1: diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/passwd b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/shadow b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/group b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/gshadow b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/groupmems.test b/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/groupmems.test deleted file mode 100755 index 6e5de89a64..0000000000 --- a/tests/grouptools/groupmems/03_groupmems_root_del_user_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can remove an user from a group (only admin in gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Remove user utest1 from group gtest1..." -groupmems -d utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config.txt b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/group b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/group deleted file mode 100644 index 62aeba48fa..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1 diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/gshadow b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/gshadow deleted file mode 100644 index 793955f1c8..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:utest1:utest1 diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/passwd b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/shadow b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/group b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/gshadow b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/groupmems.test b/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/groupmems.test deleted file mode 100755 index e4d9d07e3f..0000000000 --- a/tests/grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can remove an user from a group (both from the admins and members in gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Remove user utest1 from group gtest1..." -groupmems -d utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config.txt b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/group b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/group deleted file mode 100644 index fbc5ea6a98..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:sasl diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/gshadow b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/gshadow deleted file mode 100644 index 63f3a7680e..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::sasl diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/passwd b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/shadow b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/group b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/group deleted file mode 100644 index f4d05d08c8..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:sasl,utest1 diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/gshadow b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/gshadow deleted file mode 100644 index 567fc66065..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::sasl,utest1 diff --git a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/groupmems.test b/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/groupmems.test deleted file mode 100755 index 3fbfac2246..0000000000 --- a/tests/grouptools/groupmems/05_groupmems_root_add_user_with_other_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can add an user to a group with multipleusers (even admins according to gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Add user utest1 to group gtest1..." -groupmems -a utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config.txt b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/group b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/group deleted file mode 100644 index ce188f9d2f..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:sasl,tape diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/gshadow b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/gshadow deleted file mode 100644 index 27eb9190ec..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:tape:sasl,tape diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/passwd b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/shadow b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/group b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/group deleted file mode 100644 index 6080f7ce27..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:sasl,tape,utest1 diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/gshadow b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/gshadow deleted file mode 100644 index e6f990223d..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:tape:sasl,tape,utest1 diff --git a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/groupmems.test b/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/groupmems.test deleted file mode 100755 index 74c7420575..0000000000 --- a/tests/grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) 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 utest1 to group gtest1..." -groupmems -a utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config.txt b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/group b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/group deleted file mode 100644 index f1b283251b..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1,sasl diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/gshadow b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/gshadow deleted file mode 100644 index 567fc66065..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::sasl,utest1 diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/passwd b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/shadow b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/group b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/group deleted file mode 100644 index fbc5ea6a98..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:sasl diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/gshadow b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/gshadow deleted file mode 100644 index 63f3a7680e..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::sasl diff --git a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/groupmems.test b/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/groupmems.test deleted file mode 100755 index 8c1576b6a5..0000000000 --- a/tests/grouptools/groupmems/07_groupmems_root_del_user_with_other_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can remove an user from a group with multiple users" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Remove user utest1 from group gtest1..." -groupmems -d utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config.txt b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/group b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/group deleted file mode 100644 index 9c4e2c0cd7..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:tape,utest1,sasl,staff diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/gshadow b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/gshadow deleted file mode 100644 index b5e0c75553..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:tape:sasl,utest1,staff diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/passwd b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/shadow b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/group b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/group deleted file mode 100644 index 2e57cf65eb..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:tape,sasl,staff diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/gshadow b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/gshadow deleted file mode 100644 index 411f209f60..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:tape:sasl,staff diff --git a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/groupmems.test b/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/groupmems.test deleted file mode 100755 index d340e3d906..0000000000 --- a/tests/grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can remove an user from a group with multiple users (even admins according to gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Remove user utest1 from group gtest1..." -groupmems -d utest1 -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config.txt b/tests/grouptools/groupmems/09_groupmems_root_purge_user/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/group b/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/group deleted file mode 100644 index 62aeba48fa..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1 diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/gshadow b/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/gshadow deleted file mode 100644 index 563a8baa5d..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::utest1 diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/passwd b/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/shadow b/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/data/group b/tests/grouptools/groupmems/09_groupmems_root_purge_user/data/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/data/gshadow b/tests/grouptools/groupmems/09_groupmems_root_purge_user/data/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/09_groupmems_root_purge_user/groupmems.test b/tests/grouptools/groupmems/09_groupmems_root_purge_user/groupmems.test deleted file mode 100755 index c8cf32d145..0000000000 --- a/tests/grouptools/groupmems/09_groupmems_root_purge_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can purge all users from a group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Purge group gtest1..." -groupmems -p -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config.txt b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/group b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/group deleted file mode 100644 index 8d6f75ba65..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1,dip,plugdev diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/gshadow b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/gshadow deleted file mode 100644 index ea0fc859db..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*::utest1,plugdev,tape diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/passwd b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/shadow b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/group b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/gshadow b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/groupmems.test b/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/groupmems.test deleted file mode 100755 index 9728b1529f..0000000000 --- a/tests/grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can purge all users from a group (multiple users)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Purge group gtest1..." -groupmems -p -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config.txt b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config.txt deleted file mode 100644 index d222d9104a..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user utest1 -group gtest1 diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/group b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/group deleted file mode 100644 index 8d6f75ba65..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001:utest1,dip,plugdev diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/gshadow b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/gshadow deleted file mode 100644 index 3677f64c34..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:plugdev,daemon,backup:utest1,plugdev,tape diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/passwd b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/passwd deleted file mode 100644 index a07e498944..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/passwd +++ /dev/null @@ -1,20 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/shadow b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/shadow deleted file mode 100644 index 976b4f9433..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/config/etc/shadow +++ /dev/null @@ -1,20 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/group b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/group deleted file mode 100644 index 4f7c1843bf..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -gtest1:x:1001: diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/gshadow b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/gshadow deleted file mode 100644 index 283ca8ce0f..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -gtest1:*:: diff --git a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/groupmems.test b/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/groupmems.test deleted file mode 100755 index 3bc106869e..0000000000 --- a/tests/grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by root) can purge all users from a group (multiple users and admins)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Purge group gtest1..." -groupmems -p -g gtest1 -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/config.txt b/tests/grouptools/groupmems/12_groupmems_user_add_user/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/group b/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/gshadow b/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/passwd b/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/shadow b/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/data/group b/tests/grouptools/groupmems/12_groupmems_user_add_user/data/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/data/gshadow b/tests/grouptools/groupmems/12_groupmems_user_add_user/data/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/groupmems.test b/tests/grouptools/groupmems/12_groupmems_user_add_user/groupmems.test deleted file mode 100755 index fc9360bbb7..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) 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 "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/12_groupmems_user_add_user/run_groupmems.exp b/tests/grouptools/groupmems/12_groupmems_user_add_user/run_groupmems.exp deleted file mode 100755 index 18a29d1dcc..0000000000 --- a/tests/grouptools/groupmems/12_groupmems_user_add_user/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/config.txt b/tests/grouptools/groupmems/13_groupmems_user_del_user/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/group b/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/gshadow b/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/passwd b/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/shadow b/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/data/group b/tests/grouptools/groupmems/13_groupmems_user_del_user/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/data/gshadow b/tests/grouptools/groupmems/13_groupmems_user_del_user/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/groupmems.test b/tests/grouptools/groupmems/13_groupmems_user_del_user/groupmems.test deleted file mode 100755 index 6edd279267..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can remove an user from a group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/13_groupmems_user_del_user/run_groupmems.exp b/tests/grouptools/groupmems/13_groupmems_user_del_user/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/13_groupmems_user_del_user/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config.txt b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/group b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/gshadow b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/gshadow deleted file mode 100644 index 7bc44c538d..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:utest1: diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/passwd b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/shadow b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/group b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/gshadow b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/groupmems.test b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/groupmems.test deleted file mode 100755 index 38d0dcd4e2..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can remove an user from a group (only member according to gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/run_groupmems.exp b/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/14_groupmems_user_del_user_admin/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config.txt b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/group b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/gshadow b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/gshadow deleted file mode 100644 index c824f7b4ca..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:utest1:utest1 diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/passwd b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/shadow b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/group b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/gshadow b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/groupmems.test b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/groupmems.test deleted file mode 100755 index 9377a0216c..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can remove an user from a group (both gshadow members and admins)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/run_groupmems.exp b/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config.txt b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/group b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/group deleted file mode 100644 index f1718b3d2e..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/gshadow b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/gshadow deleted file mode 100644 index e4953ce70d..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::sasl diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/passwd b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/shadow b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/group b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/group deleted file mode 100644 index b79c5b0f36..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,utest1 diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/gshadow b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/gshadow deleted file mode 100644 index b5681f7782..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::sasl,utest1 diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/groupmems.test b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/groupmems.test deleted file mode 100755 index 39acbdbd23..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can add an user to a group with multiple users" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/run_groupmems.exp b/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/run_groupmems.exp deleted file mode 100755 index 18a29d1dcc..0000000000 --- a/tests/grouptools/groupmems/16_groupmems_user_add_user_with_other_users/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config.txt b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/group b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/group deleted file mode 100644 index d28c3ef6fb..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,tape diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/gshadow b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/gshadow deleted file mode 100644 index a8221cb140..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:tape:sasl,tape diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/passwd b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/shadow b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/group b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/group deleted file mode 100644 index 9ab6baf40e..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,tape,utest1 diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/gshadow b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/gshadow deleted file mode 100644 index 599f28bf62..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:tape:sasl,tape,utest1 diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/groupmems.test b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/groupmems.test deleted file mode 100755 index 7b63ddcd2c..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can add an user to a group with multiple users (even gshadow admins)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/run_groupmems.exp b/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/run_groupmems.exp deleted file mode 100755 index 18a29d1dcc..0000000000 --- a/tests/grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config.txt b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/group b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/group deleted file mode 100644 index dfa09d4e18..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,sasl diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/gshadow b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/gshadow deleted file mode 100644 index b5681f7782..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::sasl,utest1 diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/passwd b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/shadow b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/group b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/group deleted file mode 100644 index f1718b3d2e..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/gshadow b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/gshadow deleted file mode 100644 index e4953ce70d..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::sasl diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/groupmems.test b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/groupmems.test deleted file mode 100755 index 9bd46b615f..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can remove an user from a group with multiple users" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/run_groupmems.exp b/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/18_groupmems_user_del_user_with_other_users/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config.txt b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/group b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/group deleted file mode 100644 index 5ebdecad27..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:tape,utest1,sasl,staff diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/gshadow b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/gshadow deleted file mode 100644 index 934d2aff65..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:tape:sasl,utest1,staff diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/passwd b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/shadow b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/group b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/group deleted file mode 100644 index 406d0783d8..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:tape,sasl,staff diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/gshadow b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/gshadow deleted file mode 100644 index 8fe2213a80..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:tape:sasl,staff diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/groupmems.test b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/groupmems.test deleted file mode 100755 index 68ebb2f79a..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can remove an user from a group with multiple users (even gshadow admins)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/run_groupmems.exp b/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config.txt b/tests/grouptools/groupmems/20_groupmems_user_purge_user/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/group b/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/gshadow b/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/passwd b/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/shadow b/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/data/group b/tests/grouptools/groupmems/20_groupmems_user_purge_user/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/data/gshadow b/tests/grouptools/groupmems/20_groupmems_user_purge_user/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/groupmems.test b/tests/grouptools/groupmems/20_groupmems_user_purge_user/groupmems.test deleted file mode 100755 index 23988412d2..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can purge users" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/20_groupmems_user_purge_user/run_groupmems.exp b/tests/grouptools/groupmems/20_groupmems_user_purge_user/run_groupmems.exp deleted file mode 100755 index 33324492a2..0000000000 --- a/tests/grouptools/groupmems/20_groupmems_user_purge_user/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config.txt b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/group b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/group deleted file mode 100644 index d0009e5440..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,dip,plugdev diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/gshadow b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/gshadow deleted file mode 100644 index dfce137be8..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,plugdev,tape diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/passwd b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/shadow b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/group b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/gshadow b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/groupmems.test b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/groupmems.test deleted file mode 100755 index e63fc92aa6..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can purge users when multiple users were already in the group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/run_groupmems.exp b/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/run_groupmems.exp deleted file mode 100755 index 33324492a2..0000000000 --- a/tests/grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config.txt b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/group b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/group deleted file mode 100644 index d0009e5440..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,dip,plugdev diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/gshadow b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/gshadow deleted file mode 100644 index 2f63428fa0..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:plugdev,daemon,backup:utest1,plugdev,tape diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/passwd b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/shadow b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/group b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/gshadow b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/groupmems.test b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/groupmems.test deleted file mode 100755 index bbcd7d6715..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can purge users when multiple users were already in the group (even gshadow admins)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/run_groupmems.exp b/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/run_groupmems.exp deleted file mode 100755 index 33324492a2..0000000000 --- a/tests/grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config.txt b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/group b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/group deleted file mode 100644 index 0b80d30e73..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99: -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/gshadow b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/gshadow deleted file mode 100644 index 750eceab13..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*:: -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/passwd b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/shadow b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/groupmems.test b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/groupmems.test deleted file mode 100755 index f287ade8a1..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) fails for users not in the groups group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/run_groupmems.exp b/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/run_groupmems.exp deleted file mode 100755 index 084bb12e3f..0000000000 --- a/tests/grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/run_groupmems.exp +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "groupmems: Permission denied" -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "126\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config.txt b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/group b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/group deleted file mode 100644 index 230ff8eebc..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: -gmyuser:x:424243: diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/gshadow b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/gshadow deleted file mode 100644 index cd86429e21..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: -gmyuser:x:: diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/passwd b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/shadow b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/groupmems.test b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/groupmems.test deleted file mode 100755 index 3a78effaac..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails if a regular user tries to change (-a) another group with -g" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/run_groupmems.exp b/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/run_groupmems.exp deleted file mode 100755 index ac12a1625a..0000000000 --- a/tests/grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1 -g gmyuser\r" ;# -expect "groupmems: only root can use the -g/--group option" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "3\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config.txt b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/group b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/group deleted file mode 100644 index 230ff8eebc..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: -gmyuser:x:424243: diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/gshadow b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/gshadow deleted file mode 100644 index cd86429e21..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: -gmyuser:x:: diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/passwd b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/passwd deleted file mode 100644 index 9e07aa1f25..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424243::/home:/bin/bash diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/shadow b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/groupmems.test b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/groupmems.test deleted file mode 100755 index 2a65f7bef6..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails if the name of the user's primary group differ from the user's name" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/run_groupmems.exp b/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/run_groupmems.exp deleted file mode 100755 index 3de3fabdf3..0000000000 --- a/tests/grouptools/groupmems/25_groupmems_user_add_user-not_user_group/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424243(gmyuser) groups=424243(gmyuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424243(gmyuser) groups=424243(gmyuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "groupmems: your groupname does not match your username" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "5\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config.txt b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/group b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/gshadow b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/passwd b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/shadow b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/groupmems.test b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/groupmems.test deleted file mode 100755 index d2b3383c6b..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails if the user is already a member of the group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/run_groupmems.exp b/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/run_groupmems.exp deleted file mode 100755 index a7442aa1f6..0000000000 --- a/tests/grouptools/groupmems/26_groupmems_user_add_user-already_member/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: user 'utest1' is already a member of 'myuser'" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "7\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config.txt b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/group b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/gshadow b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/passwd b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/shadow b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/groupmems.test b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/groupmems.test deleted file mode 100755 index 1a5666a3da..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails if the user is already a member of the group (even if it is not according to gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/run_groupmems.exp b/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/run_groupmems.exp deleted file mode 100755 index a7442aa1f6..0000000000 --- a/tests/grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: user 'utest1' is already a member of 'myuser'" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "7\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config.txt b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/group b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/gshadow b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/passwd b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/shadow b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/data/group b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/data/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/groupmems.test b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/groupmems.test deleted file mode 100755 index 23b224a668..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems adds the user if it does not exist in group (but exists in gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/run_groupmems.exp b/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/run_groupmems.exp deleted file mode 100755 index 4c40ef109c..0000000000 --- a/tests/grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/run_groupmems.exp +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config.txt b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/group b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/gshadow b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/passwd b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/shadow b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/groupmems.test b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/groupmems.test deleted file mode 100755 index 201bb9af57..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails when the user to be added does not exist" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/run_groupmems.exp b/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/run_groupmems.exp deleted file mode 100755 index 6864f5c3c1..0000000000 --- a/tests/grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest2\r" ;# -expect "groupmems: user 'utest2' does not exist" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "8\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config.txt b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/group b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/group deleted file mode 100644 index 9ceded095a..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,root,bin diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/gshadow b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/gshadow deleted file mode 100644 index 46c2778713..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/gshadow +++ /dev/null @@ -1,43 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/passwd b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/shadow b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/group b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/group deleted file mode 100644 index 6249a8aa42..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,root,bin,utest1 diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/gshadow b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/gshadow deleted file mode 100644 index 3748fc53c1..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::sasl,root,bin,utest1 diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/groupmems.test b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/groupmems.test deleted file mode 100755 index 783876ac86..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can add an user to a group, and creates the gshadow entry if it did not exist" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/run_groupmems.exp b/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/run_groupmems.exp deleted file mode 100755 index 18a29d1dcc..0000000000 --- a/tests/grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config.txt b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/group b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/group deleted file mode 100644 index 9ceded095a..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,root,bin diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/gshadow b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/gshadow deleted file mode 100644 index 46c2778713..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/gshadow +++ /dev/null @@ -1,43 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/passwd b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/shadow b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/data/group b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/data/group deleted file mode 100644 index 6249a8aa42..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:sasl,root,bin,utest1 diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/groupmems.test b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/groupmems.test deleted file mode 100755 index 31983b654c..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/groupmems.test +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can add an user to a group, even if the gshadow file does not exist" - -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 "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/run_groupmems.exp b/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/run_groupmems.exp deleted file mode 100755 index 18a29d1dcc..0000000000 --- a/tests/grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config.txt b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/group b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/group deleted file mode 100644 index 248e7b7a1b..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:bin,daemon diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/gshadow b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/gshadow deleted file mode 100644 index d2f4c7b357..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:bin,daemon: diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/passwd b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/shadow b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/groupmems.test b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/groupmems.test deleted file mode 100755 index 243d830a78..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems -d fails if the user is not a member of the group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/run_groupmems.exp b/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/run_groupmems.exp deleted file mode 100755 index bc66529206..0000000000 --- a/tests/grouptools/groupmems/32_groupmems_user_del_user-not_member/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: user 'utest1' is not a member of 'myuser'" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "6\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config.txt b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/group b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/group deleted file mode 100644 index 2ef69bb5e3..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:daemon,utest1,bin diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/gshadow b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/gshadow deleted file mode 100644 index eefaca894d..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:daemon:bin diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/passwd b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/shadow b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/data/group b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/data/group deleted file mode 100644 index d1fae982c6..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:daemon,bin diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/groupmems.test b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/groupmems.test deleted file mode 100755 index b42c8f7eed..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems removes the user if it exists in group (but does not exist in gshadow)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/run_groupmems.exp b/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/run_groupmems.exp deleted file mode 100755 index 7c6de70aa9..0000000000 --- a/tests/grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/run_groupmems.exp +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config.txt b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/group b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/group deleted file mode 100644 index 0a4716b7ba..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,utest2 diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/gshadow b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/gshadow deleted file mode 100644 index 0a1cb18b64..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:utest2:utest1 diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/passwd b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/shadow b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/group b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/gshadow b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/groupmems.test b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/groupmems.test deleted file mode 100755 index da1ebc5950..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems accepts to remove the user if this user does not (no more) exist)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/run_groupmems.exp b/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/run_groupmems.exp deleted file mode 100755 index 8c18c9425b..0000000000 --- a/tests/grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/run_groupmems.exp +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest2\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config.txt b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/group b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/group deleted file mode 100644 index 0f4bff9baa..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:daemon,utest1,utest2,bin diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/gshadow b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/gshadow deleted file mode 100644 index 46c2778713..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/gshadow +++ /dev/null @@ -1,43 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/passwd b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/shadow b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/group b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/group deleted file mode 100644 index 497eed7df4..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:daemon,utest2,bin diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/gshadow b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/gshadow deleted file mode 100644 index 487ecb3686..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::daemon,utest2,bin diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/groupmems.test b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/groupmems.test deleted file mode 100755 index 43f2e5db1d..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems -d will copy the group entry to gshadow if there were no entries" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/run_groupmems.exp b/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config.txt b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/group b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/gshadow b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/passwd b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/shadow b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/data/group b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/groupmems.test b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/groupmems.test deleted file mode 100755 index 22a83e5766..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/groupmems.test +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can remove an user from a group if there are 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 "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/run_groupmems.exp b/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/run_groupmems.exp deleted file mode 100755 index 8087c56ad9..0000000000 --- a/tests/grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config.txt b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/group b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/gshadow b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/gshadow deleted file mode 100644 index 288d6c3719..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::< diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/passwd b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/shadow b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/data/gshadow b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/groupmems.test b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/groupmems.test deleted file mode 100755 index d97b9047bb..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can purge users even if the group is empty" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/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 - diff --git a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/run_groupmems.exp b/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/run_groupmems.exp deleted file mode 100755 index 33324492a2..0000000000 --- a/tests/grouptools/groupmems/37_groupmems_user_purge_user-empty_group/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config.txt b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/group b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/gshadow b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/gshadow deleted file mode 100644 index 46c2778713..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/gshadow +++ /dev/null @@ -1,43 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/passwd b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/shadow b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/group b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/gshadow b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/data/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/groupmems.test b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/groupmems.test deleted file mode 100755 index f9d58f6b00..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can purge users even if there are no gshadow group (and a gshadow group is created)" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/run_groupmems.exp b/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/run_groupmems.exp deleted file mode 100755 index 33324492a2..0000000000 --- a/tests/grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config.txt b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/group b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/gshadow b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/passwd b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/shadow b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/data/group b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/data/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/data/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/groupmems.test b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/groupmems.test deleted file mode 100755 index e6e8e9c7f9..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/groupmems.test +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called from a regular user) can purge users, even if there are 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 "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/run_groupmems.exp b/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/run_groupmems.exp deleted file mode 100755 index 33324492a2..0000000000 --- a/tests/grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/run_groupmems.exp +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" -send_user "# expect prompt '$ '" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config.txt b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/group b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/group deleted file mode 100644 index 230ff8eebc..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: -gmyuser:x:424243: diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/gshadow b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/gshadow deleted file mode 100644 index cd86429e21..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: -gmyuser:x:: diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/passwd b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/shadow b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/groupmems.test b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/groupmems.test deleted file mode 100755 index a2976d1963..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails if a regular user tries to change (-d) another group with -g" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/run_groupmems.exp b/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/run_groupmems.exp deleted file mode 100755 index 0c5763386e..0000000000 --- a/tests/grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1 -g gmyuser\r" ;# -expect "groupmems: only root can use the -g/--group option" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "3\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config.txt b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/group b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/group deleted file mode 100644 index 230ff8eebc..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: -gmyuser:x:424243: diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/gshadow b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/gshadow deleted file mode 100644 index cd86429e21..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: -gmyuser:x:: diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/passwd b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/shadow b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/groupmems.test b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/groupmems.test deleted file mode 100755 index f70f12a6d4..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems fails if a regular user tries to change (-p) another group with -g" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/run_groupmems.exp b/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/run_groupmems.exp deleted file mode 100755 index 39cd9f8258..0000000000 --- a/tests/grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p -g gmyuser\r" ;# -expect "groupmems: only root can use the -g/--group option" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "3\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/config.txt b/tests/grouptools/groupmems/42_groupmems_user_list_users/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/group b/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/group deleted file mode 100644 index bd6da4e7a2..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/gshadow b/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/gshadow deleted file mode 100644 index 02b9401d6b..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/passwd b/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/shadow b/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/groupmems.test b/tests/grouptools/groupmems/42_groupmems_user_list_users/groupmems.test deleted file mode 100755 index cb6bff40ef..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can list the users of a group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/42_groupmems_user_list_users/run_groupmems.exp b/tests/grouptools/groupmems/42_groupmems_user_list_users/run_groupmems.exp deleted file mode 100755 index a628348bef..0000000000 --- a/tests/grouptools/groupmems/42_groupmems_user_list_users/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -l\r" ;# -expect -re "\nutest1 bin daemon \r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config.txt b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/group b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/group deleted file mode 100644 index bd6da4e7a2..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/gshadow b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/gshadow deleted file mode 100644 index 74f0e82f3b..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:nouser,root: diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/passwd b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/shadow b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/groupmems.test b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/groupmems.test deleted file mode 100755 index 9d2388b356..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can list the users of a group, and gshadow is not taken into account" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/run_groupmems.exp b/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/run_groupmems.exp deleted file mode 100755 index a628348bef..0000000000 --- a/tests/grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -l\r" ;# -expect -re "\nutest1 bin daemon \r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config.txt b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/group b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/group deleted file mode 100644 index 287981ed12..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon -gtest1:x:424242:utest1,bin,utmp diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/gshadow b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/gshadow deleted file mode 100644 index f9ba86afab..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon -gtest1:*:: diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/passwd b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/shadow b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/groupmems.test b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/groupmems.test deleted file mode 100755 index 33e4fc4343..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can list the users of another group" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/run_groupmems.exp b/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/run_groupmems.exp deleted file mode 100755 index 43c335c11e..0000000000 --- a/tests/grouptools/groupmems/44_groupmems_user_list_users-another_group/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -l -g gtest1\r" ;# -expect -re "\nutest1 bin utmp \r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config.txt b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/group b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/group deleted file mode 100644 index bd6da4e7a2..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/gshadow b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/gshadow deleted file mode 100644 index 02b9401d6b..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/passwd b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/shadow b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/groupmems.test b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/groupmems.test deleted file mode 100755 index 58f09cd7b0..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can list the users of a group, even if group is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/group..." -touch /etc/group.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/group.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/run_groupmems.exp b/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/run_groupmems.exp deleted file mode 100755 index a628348bef..0000000000 --- a/tests/grouptools/groupmems/45_groupmems_user_list_users-group_locked/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -l\r" ;# -expect -re "\nutest1 bin daemon \r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config.txt b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/group b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/group deleted file mode 100644 index bd6da4e7a2..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/gshadow b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/gshadow deleted file mode 100644 index 02b9401d6b..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/passwd b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/shadow b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/groupmems.test b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/groupmems.test deleted file mode 100755 index a01a10e8f2..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) can list the users of a group, even if gshadow is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/gshadow..." -touch /etc/gshadow.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/gshadow.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/run_groupmems.exp b/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/run_groupmems.exp deleted file mode 100755 index a628348bef..0000000000 --- a/tests/grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -l\r" ;# -expect -re "\nutest1 bin daemon \r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config.txt b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/group b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/gshadow b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/passwd b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/shadow b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/groupmems.test b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/groupmems.test deleted file mode 100755 index 302b68979f..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (-a) fails if the group file is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/group..." -touch /etc/group.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/group.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/run_groupmems.exp b/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/run_groupmems.exp deleted file mode 100755 index 8d5e55e2fe..0000000000 --- a/tests/grouptools/groupmems/47_groupmems_user_add_user-group_locked/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: cannot lock /etc/group; try again later." - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "2\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config.txt b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/group b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/group deleted file mode 100644 index 7505b93b91..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242: diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/gshadow b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/gshadow deleted file mode 100644 index 9945adca0c..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x:: diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/passwd b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/shadow b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/groupmems.test b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/groupmems.test deleted file mode 100755 index 38ac7a2f55..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (-a) fails if the gshadow file is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/gshadow..." -touch /etc/gshadow.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/gshadow.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/run_groupmems.exp b/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/run_groupmems.exp deleted file mode 100755 index ba0ae56c9b..0000000000 --- a/tests/grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: cannot lock /etc/gshadow; try again later." - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "2\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config.txt b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/group b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/gshadow b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/passwd b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/shadow b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/groupmems.test b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/groupmems.test deleted file mode 100755 index cfb869967b..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (-d) fails if the group file is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/group..." -touch /etc/group.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/group.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/run_groupmems.exp b/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/run_groupmems.exp deleted file mode 100755 index d28b18c153..0000000000 --- a/tests/grouptools/groupmems/49_groupmems_user_del_user-group_locked/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: cannot lock /etc/group; try again later." - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "2\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config.txt b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/group b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/gshadow b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/passwd b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/shadow b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/groupmems.test b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/groupmems.test deleted file mode 100755 index c2b5626e0d..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (-d) fails if the gshadow file is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/gshadow..." -touch /etc/gshadow.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/gshadow.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/run_groupmems.exp b/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/run_groupmems.exp deleted file mode 100755 index bf66b104fc..0000000000 --- a/tests/grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -d utest1\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: cannot lock /etc/gshadow; try again later." - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "2\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config.txt b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/group b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/gshadow b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/passwd b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/shadow b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/groupmems.test b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/groupmems.test deleted file mode 100755 index 75272b3a5d..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (-p) fails if the group file is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/group..." -touch /etc/group.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/group.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/run_groupmems.exp b/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/run_groupmems.exp deleted file mode 100755 index 8f47464992..0000000000 --- a/tests/grouptools/groupmems/51_groupmems_user_purge_user-group_locked/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: cannot lock /etc/group; try again later." - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "2\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config.txt b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/group b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/group deleted file mode 100644 index 7a0e295569..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/group +++ /dev/null @@ -1,44 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1 diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/gshadow b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/gshadow deleted file mode 100644 index c908c39439..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/gshadow +++ /dev/null @@ -1,44 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1 diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/passwd b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/shadow b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/groupmems.test b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/groupmems.test deleted file mode 100755 index ecff63f347..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/groupmems.test +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (-p) fails if the gshadow file is locked" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Create lock file for /etc/gshadow..." -touch /etc/gshadow.lock -echo "done" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -rm -f /etc/gshadow.lock - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/run_groupmems.exp b/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/run_groupmems.exp deleted file mode 100755 index 3913f7a4ba..0000000000 --- a/tests/grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/run_groupmems.exp +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -p\r" ;# -expect "Password: " ;# Wait for the Password: prompt -# Wait a little bit more (it is not ready to receive the password) -sleep 0.1 - -send "myuserF00barbaz\r" ;# Send the password - -send_user "\n# password 'myuserF00barbaz' sent\n\n" - -expect "groupmems: cannot lock /etc/gshadow; try again later." - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "2\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/53_groupmems_usage/config.txt b/tests/grouptools/groupmems/53_groupmems_usage/config.txt deleted file mode 100644 index 31f56359ee..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/config.txt +++ /dev/null @@ -1,10 +0,0 @@ -# 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) diff --git a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/group b/tests/grouptools/groupmems/53_groupmems_usage/config/etc/group deleted file mode 100644 index 101239088b..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/group +++ /dev/null @@ -1,41 +0,0 @@ -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: diff --git a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/gshadow b/tests/grouptools/groupmems/53_groupmems_usage/config/etc/gshadow deleted file mode 100644 index ae42486590..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/gshadow +++ /dev/null @@ -1,41 +0,0 @@ -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:: diff --git a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/passwd b/tests/grouptools/groupmems/53_groupmems_usage/config/etc/passwd deleted file mode 100644 index 43fc135a40..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/passwd +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/shadow b/tests/grouptools/groupmems/53_groupmems_usage/config/etc/shadow deleted file mode 100644 index 5f50d1873b..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/config/etc/shadow +++ /dev/null @@ -1,19 +0,0 @@ -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::: diff --git a/tests/grouptools/groupmems/53_groupmems_usage/data/usage.out b/tests/grouptools/groupmems/53_groupmems_usage/data/usage.out deleted file mode 100644 index 584313c5d6..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/data/usage.out +++ /dev/null @@ -1,13 +0,0 @@ -Usage: groupmems [options] [action] - -Options: - -g, --group groupname change groupname instead of the user's group - (root only) - -R, --root CHROOT_DIR directory to chroot into - -Actions: - -a, --add username add username to the members of the group - -d, --delete username remove username from the members of the group - -h, --help display this help message and exit - -p, --purge purge all members from the group - -l, --list list the members of the group diff --git a/tests/grouptools/groupmems/53_groupmems_usage/groupmems.test b/tests/grouptools/groupmems/53_groupmems_usage/groupmems.test deleted file mode 100755 index 7b3784a58f..0000000000 --- a/tests/grouptools/groupmems/53_groupmems_usage/groupmems.test +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems can display its usage message" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Get groupmems usage (groupmems -h)..." -groupmems -h >tmp/usage.out - -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/usage.out -echo "=======================================================================" -echo -n "Check the usage message..." -diff -au data/usage.out tmp/usage.out -echo "usage message OK." -rm -f tmp/usage.out - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config.txt b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config.txt deleted file mode 100644 index e9e4bbed8b..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config.txt +++ /dev/null @@ -1 +0,0 @@ -group foo, GID 1000 diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/group b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/group deleted file mode 100644 index fecba0c4ed..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/group +++ /dev/null @@ -1,42 +0,0 @@ -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: diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/gshadow b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/gshadow deleted file mode 100644 index 5042e5818a..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/gshadow +++ /dev/null @@ -1,42 +0,0 @@ -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:*:: diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/login.defs b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/login.defs deleted file mode 100644 index 62f9d227cb..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/login.defs +++ /dev/null @@ -1,302 +0,0 @@ -# -# /etc/login.defs - Configuration control definitions for the login package. -# -# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH. -# If unspecified, some arbitrary (and possibly incorrect) value will -# be assumed. All other items are optional - if not specified then -# the described action or option will be inhibited. -# -# Comment lines (lines beginning with "#") and blank lines are ignored. -# -# Modified for Linux. --marekm - -# REQUIRED for useradd/userdel/usermod -# Directory where mailboxes reside, _or_ name of file, relative to the -# home directory. If you _do_ define MAIL_DIR and MAIL_FILE, -# MAIL_DIR takes precedence. -# -# Essentially: -# - MAIL_DIR defines the location of users mail spool files -# (for mbox use) by appending the username to MAIL_DIR as defined -# below. -# - MAIL_FILE defines the location of the users mail spool files as the -# fully-qualified filename obtained by prepending the user home -# directory before $MAIL_FILE -# -# NOTE: This is no more used for setting up users MAIL environment variable -# which is, starting from shadow 4.0.12-1 in Debian, entirely the -# job of the pam_mail PAM modules -# See default PAM configuration files provided for -# login, su, etc. -# -# This is a temporary situation: setting these variables will soon -# move to /etc/default/useradd and the variables will then be -# no more supported -MAIL_DIR /var/mail -#MAIL_FILE .mail - -# -# Enable logging and display of /var/log/faillog login failure info. -# This option conflicts with the pam_tally PAM module. -# -FAILLOG_ENAB yes - -# -# Enable display of unknown usernames when login failures are recorded. -# -# WARNING: Unknown usernames may become world readable. -# See #290803 and #298773 for details about how this could become a security -# concern -LOG_UNKFAIL_ENAB no - -# -# Enable logging of successful logins -# -LOG_OK_LOGINS no - -# -# Enable "syslog" logging of su activity - in addition to sulog file logging. -# SYSLOG_SG_ENAB does the same for newgrp and sg. -# -SYSLOG_SU_ENAB yes -SYSLOG_SG_ENAB yes - -# -# If defined, all su activity is logged to this file. -# -#SULOG_FILE /var/log/sulog - -# -# If defined, file which maps tty line to TERM environment parameter. -# Each line of the file is in a format something like "vt100 tty01". -# -#TTYTYPE_FILE /etc/ttytype - -# -# If defined, login failures will be logged here in a utmp format -# last, when invoked as lastb, will read /var/log/btmp, so... -# -FTMP_FILE /var/log/btmp - -# -# If defined, the command name to display when running "su -". For -# example, if this is defined as "su" then a "ps" will display the -# command is "-su". If not defined, then "ps" would display the -# name of the shell actually being run, e.g. something like "-sh". -# -SU_NAME su - -# -# If defined, file which inhibits all the usual chatter during the login -# sequence. If a full pathname, then hushed mode will be enabled if the -# user's name or shell are found in the file. If not a full pathname, then -# hushed mode will be enabled if the file exists in the user's home directory. -# -HUSHLOGIN_FILE .hushlogin -#HUSHLOGIN_FILE /etc/hushlogins - -# -# *REQUIRED* The default PATH settings, for superuser and normal users. -# -# (they are minimal, add the rest in the shell startup files) -ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/games - -# -# Terminal permissions -# -# TTYGROUP Login tty will be assigned this group ownership. -# TTYPERM Login tty will be set to this permission. -# -# If you have a "write" program which is "setgid" to a special group -# which owns the terminals, define TTYGROUP to the group number and -# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign -# TTYPERM to either 622 or 600. -# -# In Debian /usr/bin/bsd-write or similar programs are setgid tty -# However, the default and recommended value for TTYPERM is still 0600 -# to not allow anyone to write to anyone else console or terminal - -# Users can still allow other people to write them by issuing -# the "mesg y" command. - -TTYGROUP tty -TTYPERM 0600 - -# -# Login configuration initializations: -# -# ERASECHAR Terminal ERASE character ('\010' = backspace). -# KILLCHAR Terminal KILL character ('\025' = CTRL/U). -# UMASK Default "umask" value. -# -# The ERASECHAR and KILLCHAR are used only on System V machines. -# -# UMASK usage is discouraged because it catches only some classes of user -# entries to system, in fact only those made through login(1), while setting -# umask in shell rc file will catch also logins through su, cron, ssh etc. -# -# At the same time, using shell rc to set umask won't catch entries which use -# non-shell executables in place of login shell, like /usr/sbin/pppd for "ppp" -# user and alike. -# -# Therefore the use of pam_umask is recommended (Debian package libpam-umask) -# as the solution which catches all these cases on PAM-enabled systems. -# -# This avoids the confusion created by having the umask set -# in two different places -- in login.defs and shell rc files (i.e. -# /etc/profile). -# -# For discussion, see #314539 and #248150 as well as the thread starting at -# http://lists.debian.org/debian-devel/2005/06/msg01598.html -# -# Prefix these values with "0" to get octal, "0x" to get hexadecimal. -# -ERASECHAR 0177 -KILLCHAR 025 -# 022 is the "historical" value in Debian for UMASK when it was used -# 027, or even 077, could be considered better for privacy -# There is no One True Answer here : each sysadmin must make up their -# mind. -#UMASK 022 - -# -# Password aging controls: -# -# PASS_MAX_DAYS Maximum number of days a password may be used. -# PASS_MIN_DAYS Minimum number of days allowed between password changes. -# PASS_WARN_AGE Number of days warning given before a password expires. -# -PASS_MAX_DAYS 99999 -PASS_MIN_DAYS 0 -PASS_WARN_AGE 7 - -# -# Min/max values for automatic uid selection in useradd -# -UID_MIN 1000 -UID_MAX 60000 - -# -# Min/max values for automatic gid selection in groupadd -# -GID_MIN 100 -GID_MAX 60000 - -# -# Max number of login retries if password is bad. This will most likely be -# overridden by PAM, since the default pam_unix module has it's own built -# in of 3 retries. However, this is a safe fallback in case you are using -# an authentication module that does not enforce PAM_MAXTRIES. -# -LOGIN_RETRIES 5 - -# -# Max time in seconds for login -# -LOGIN_TIMEOUT 60 - -# -# Which fields may be changed by regular users using chfn - use -# any combination of letters "frwh" (full name, room number, work -# phone, home phone). If not defined, no changes are allowed. -# For backward compatibility, "yes" = "rwh" and "no" = "frwh". -# -CHFN_RESTRICT rwh - -# -# Should login be allowed if we can't cd to the home directory? -# Default is no. -# -DEFAULT_HOME yes - -# -# If defined, this command is run when removing a user. -# It should remove any at/cron/print jobs etc. owned by -# the user to be removed (passed as the first argument). -# -#USERDEL_CMD /usr/sbin/userdel_local - -# -# This enables userdel to remove user groups if no members exist. -# -# Other former uses of this variable such as setting the umask when -# user==primary group are not used in PAM environments, thus in Debian -# -USERGROUPS_ENAB yes - -# -# Instead of the real user shell, the program specified by this parameter -# will be launched, although its visible name (argv[0]) will be the shell's. -# The program may do whatever it wants (logging, additional authentification, -# banner, ...) before running the actual shell. -# -# FAKE_SHELL /bin/fakeshell - -# -# If defined, either full pathname of a file containing device names or -# a ":" delimited list of device names. Root logins will be allowed only -# upon these devices. -# -# This variable is used by login and su. -# -#CONSOLE /etc/consoles -#CONSOLE console:tty01:tty02:tty03:tty04 - -# -# List of groups to add to the user's supplementary group set -# when logging in on the console (as determined by the CONSOLE -# setting). Default is none. -# -# Use with caution - it is possible for users to gain permanent -# access to these groups, even when not logged in on the console. -# How to do it is left as an exercise for the reader... -# -# This variable is used by login and su. -# -#CONSOLE_GROUPS floppy:audio:cdrom - -################# OBSOLETED BY PAM ############## -# # -# These options are now handled by PAM. Please # -# edit the appropriate file in /etc/pam.d/ to # -# enable the equivalents of them. -# -############### - -#MOTD_FILE -#DIALUPS_CHECK_ENAB -#LASTLOG_ENAB -#MAIL_CHECK_ENAB -#OBSCURE_CHECKS_ENAB -#PORTTIME_CHECKS_ENAB -#SU_WHEEL_ONLY -#PASS_CHANGE_TRIES -#PASS_ALWAYS_WARN -#ENVIRON_FILE -#NOLOGINS_FILE -#ISSUE_FILE -#PASS_MIN_LEN -#PASS_MAX_LEN -#ULIMIT -#ENV_HZ -#CHFN_AUTH -#CHSH_AUTH -#FAIL_DELAY - -################# OBSOLETED ####################### -# # -# These options are no more handled by shadow. # -# # -# Shadow utilities will display a warning if they # -# still appear. # -# # -################################################### - -# CLOSE_SESSIONS -# LOGIN_STRING -# NO_PASSWORD_CONSOLE -# QMAIL_DIR - - - diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/passwd b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/passwd deleted file mode 100644 index 43fc135a40..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/passwd +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/shadow b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/shadow deleted file mode 100644 index 5f50d1873b..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/config/etc/shadow +++ /dev/null @@ -1,19 +0,0 @@ -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::: diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/data/groupmems.err b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/data/groupmems.err deleted file mode 100644 index a6ac1f6b22..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/data/groupmems.err +++ /dev/null @@ -1,14 +0,0 @@ -groupmems: invalid option -- 'Z' -Usage: groupmems [options] [action] - -Options: - -g, --group groupname change groupname instead of the user's group - (root only) - -R, --root CHROOT_DIR directory to chroot into - -Actions: - -a, --add username add username to the members of the group - -d, --delete username remove username from the members of the group - -h, --help display this help message and exit - -p, --purge purge all members from the group - -l, --list list the members of the group diff --git a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test b/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test deleted file mode 100755 index d0e1fa7954..0000000000 --- a/tests/grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems reports usage when called with an invalid option" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Call groupmems with an invalid option (groupmems -Z bar -g 1000 foo)..." -groupmems -Z bar -g 1000 -a foo 2>tmp/groupmems.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "1" -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/groupmems.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/groupmems.err tmp/groupmems.err -echo "error message OK." -rm -f tmp/groupmems.err - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config.txt b/tests/grouptools/groupmems/55_groupmems_usage-a-d/config.txt deleted file mode 100644 index e9e4bbed8b..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config.txt +++ /dev/null @@ -1 +0,0 @@ -group foo, GID 1000 diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/group b/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/group deleted file mode 100644 index fecba0c4ed..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/group +++ /dev/null @@ -1,42 +0,0 @@ -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: diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/gshadow b/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/gshadow deleted file mode 100644 index 5042e5818a..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/gshadow +++ /dev/null @@ -1,42 +0,0 @@ -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:*:: diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/login.defs b/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/login.defs deleted file mode 100644 index 62f9d227cb..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/login.defs +++ /dev/null @@ -1,302 +0,0 @@ -# -# /etc/login.defs - Configuration control definitions for the login package. -# -# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH. -# If unspecified, some arbitrary (and possibly incorrect) value will -# be assumed. All other items are optional - if not specified then -# the described action or option will be inhibited. -# -# Comment lines (lines beginning with "#") and blank lines are ignored. -# -# Modified for Linux. --marekm - -# REQUIRED for useradd/userdel/usermod -# Directory where mailboxes reside, _or_ name of file, relative to the -# home directory. If you _do_ define MAIL_DIR and MAIL_FILE, -# MAIL_DIR takes precedence. -# -# Essentially: -# - MAIL_DIR defines the location of users mail spool files -# (for mbox use) by appending the username to MAIL_DIR as defined -# below. -# - MAIL_FILE defines the location of the users mail spool files as the -# fully-qualified filename obtained by prepending the user home -# directory before $MAIL_FILE -# -# NOTE: This is no more used for setting up users MAIL environment variable -# which is, starting from shadow 4.0.12-1 in Debian, entirely the -# job of the pam_mail PAM modules -# See default PAM configuration files provided for -# login, su, etc. -# -# This is a temporary situation: setting these variables will soon -# move to /etc/default/useradd and the variables will then be -# no more supported -MAIL_DIR /var/mail -#MAIL_FILE .mail - -# -# Enable logging and display of /var/log/faillog login failure info. -# This option conflicts with the pam_tally PAM module. -# -FAILLOG_ENAB yes - -# -# Enable display of unknown usernames when login failures are recorded. -# -# WARNING: Unknown usernames may become world readable. -# See #290803 and #298773 for details about how this could become a security -# concern -LOG_UNKFAIL_ENAB no - -# -# Enable logging of successful logins -# -LOG_OK_LOGINS no - -# -# Enable "syslog" logging of su activity - in addition to sulog file logging. -# SYSLOG_SG_ENAB does the same for newgrp and sg. -# -SYSLOG_SU_ENAB yes -SYSLOG_SG_ENAB yes - -# -# If defined, all su activity is logged to this file. -# -#SULOG_FILE /var/log/sulog - -# -# If defined, file which maps tty line to TERM environment parameter. -# Each line of the file is in a format something like "vt100 tty01". -# -#TTYTYPE_FILE /etc/ttytype - -# -# If defined, login failures will be logged here in a utmp format -# last, when invoked as lastb, will read /var/log/btmp, so... -# -FTMP_FILE /var/log/btmp - -# -# If defined, the command name to display when running "su -". For -# example, if this is defined as "su" then a "ps" will display the -# command is "-su". If not defined, then "ps" would display the -# name of the shell actually being run, e.g. something like "-sh". -# -SU_NAME su - -# -# If defined, file which inhibits all the usual chatter during the login -# sequence. If a full pathname, then hushed mode will be enabled if the -# user's name or shell are found in the file. If not a full pathname, then -# hushed mode will be enabled if the file exists in the user's home directory. -# -HUSHLOGIN_FILE .hushlogin -#HUSHLOGIN_FILE /etc/hushlogins - -# -# *REQUIRED* The default PATH settings, for superuser and normal users. -# -# (they are minimal, add the rest in the shell startup files) -ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/games - -# -# Terminal permissions -# -# TTYGROUP Login tty will be assigned this group ownership. -# TTYPERM Login tty will be set to this permission. -# -# If you have a "write" program which is "setgid" to a special group -# which owns the terminals, define TTYGROUP to the group number and -# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign -# TTYPERM to either 622 or 600. -# -# In Debian /usr/bin/bsd-write or similar programs are setgid tty -# However, the default and recommended value for TTYPERM is still 0600 -# to not allow anyone to write to anyone else console or terminal - -# Users can still allow other people to write them by issuing -# the "mesg y" command. - -TTYGROUP tty -TTYPERM 0600 - -# -# Login configuration initializations: -# -# ERASECHAR Terminal ERASE character ('\010' = backspace). -# KILLCHAR Terminal KILL character ('\025' = CTRL/U). -# UMASK Default "umask" value. -# -# The ERASECHAR and KILLCHAR are used only on System V machines. -# -# UMASK usage is discouraged because it catches only some classes of user -# entries to system, in fact only those made through login(1), while setting -# umask in shell rc file will catch also logins through su, cron, ssh etc. -# -# At the same time, using shell rc to set umask won't catch entries which use -# non-shell executables in place of login shell, like /usr/sbin/pppd for "ppp" -# user and alike. -# -# Therefore the use of pam_umask is recommended (Debian package libpam-umask) -# as the solution which catches all these cases on PAM-enabled systems. -# -# This avoids the confusion created by having the umask set -# in two different places -- in login.defs and shell rc files (i.e. -# /etc/profile). -# -# For discussion, see #314539 and #248150 as well as the thread starting at -# http://lists.debian.org/debian-devel/2005/06/msg01598.html -# -# Prefix these values with "0" to get octal, "0x" to get hexadecimal. -# -ERASECHAR 0177 -KILLCHAR 025 -# 022 is the "historical" value in Debian for UMASK when it was used -# 027, or even 077, could be considered better for privacy -# There is no One True Answer here : each sysadmin must make up their -# mind. -#UMASK 022 - -# -# Password aging controls: -# -# PASS_MAX_DAYS Maximum number of days a password may be used. -# PASS_MIN_DAYS Minimum number of days allowed between password changes. -# PASS_WARN_AGE Number of days warning given before a password expires. -# -PASS_MAX_DAYS 99999 -PASS_MIN_DAYS 0 -PASS_WARN_AGE 7 - -# -# Min/max values for automatic uid selection in useradd -# -UID_MIN 1000 -UID_MAX 60000 - -# -# Min/max values for automatic gid selection in groupadd -# -GID_MIN 100 -GID_MAX 60000 - -# -# Max number of login retries if password is bad. This will most likely be -# overridden by PAM, since the default pam_unix module has it's own built -# in of 3 retries. However, this is a safe fallback in case you are using -# an authentication module that does not enforce PAM_MAXTRIES. -# -LOGIN_RETRIES 5 - -# -# Max time in seconds for login -# -LOGIN_TIMEOUT 60 - -# -# Which fields may be changed by regular users using chfn - use -# any combination of letters "frwh" (full name, room number, work -# phone, home phone). If not defined, no changes are allowed. -# For backward compatibility, "yes" = "rwh" and "no" = "frwh". -# -CHFN_RESTRICT rwh - -# -# Should login be allowed if we can't cd to the home directory? -# Default is no. -# -DEFAULT_HOME yes - -# -# If defined, this command is run when removing a user. -# It should remove any at/cron/print jobs etc. owned by -# the user to be removed (passed as the first argument). -# -#USERDEL_CMD /usr/sbin/userdel_local - -# -# This enables userdel to remove user groups if no members exist. -# -# Other former uses of this variable such as setting the umask when -# user==primary group are not used in PAM environments, thus in Debian -# -USERGROUPS_ENAB yes - -# -# Instead of the real user shell, the program specified by this parameter -# will be launched, although its visible name (argv[0]) will be the shell's. -# The program may do whatever it wants (logging, additional authentification, -# banner, ...) before running the actual shell. -# -# FAKE_SHELL /bin/fakeshell - -# -# If defined, either full pathname of a file containing device names or -# a ":" delimited list of device names. Root logins will be allowed only -# upon these devices. -# -# This variable is used by login and su. -# -#CONSOLE /etc/consoles -#CONSOLE console:tty01:tty02:tty03:tty04 - -# -# List of groups to add to the user's supplementary group set -# when logging in on the console (as determined by the CONSOLE -# setting). Default is none. -# -# Use with caution - it is possible for users to gain permanent -# access to these groups, even when not logged in on the console. -# How to do it is left as an exercise for the reader... -# -# This variable is used by login and su. -# -#CONSOLE_GROUPS floppy:audio:cdrom - -################# OBSOLETED BY PAM ############## -# # -# These options are now handled by PAM. Please # -# edit the appropriate file in /etc/pam.d/ to # -# enable the equivalents of them. -# -############### - -#MOTD_FILE -#DIALUPS_CHECK_ENAB -#LASTLOG_ENAB -#MAIL_CHECK_ENAB -#OBSCURE_CHECKS_ENAB -#PORTTIME_CHECKS_ENAB -#SU_WHEEL_ONLY -#PASS_CHANGE_TRIES -#PASS_ALWAYS_WARN -#ENVIRON_FILE -#NOLOGINS_FILE -#ISSUE_FILE -#PASS_MIN_LEN -#PASS_MAX_LEN -#ULIMIT -#ENV_HZ -#CHFN_AUTH -#CHSH_AUTH -#FAIL_DELAY - -################# OBSOLETED ####################### -# # -# These options are no more handled by shadow. # -# # -# Shadow utilities will display a warning if they # -# still appear. # -# # -################################################### - -# CLOSE_SESSIONS -# LOGIN_STRING -# NO_PASSWORD_CONSOLE -# QMAIL_DIR - - - diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/passwd b/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/passwd deleted file mode 100644 index 43fc135a40..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/passwd +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/shadow b/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/shadow deleted file mode 100644 index 5f50d1873b..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/config/etc/shadow +++ /dev/null @@ -1,19 +0,0 @@ -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::: diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/data/groupmems.err b/tests/grouptools/groupmems/55_groupmems_usage-a-d/data/groupmems.err deleted file mode 100644 index 584313c5d6..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/data/groupmems.err +++ /dev/null @@ -1,13 +0,0 @@ -Usage: groupmems [options] [action] - -Options: - -g, --group groupname change groupname instead of the user's group - (root only) - -R, --root CHROOT_DIR directory to chroot into - -Actions: - -a, --add username add username to the members of the group - -d, --delete username remove username from the members of the group - -h, --help display this help message and exit - -p, --purge purge all members from the group - -l, --list list the members of the group diff --git a/tests/grouptools/groupmems/55_groupmems_usage-a-d/groupmems.test b/tests/grouptools/groupmems/55_groupmems_usage-a-d/groupmems.test deleted file mode 100755 index 4b82e0da01..0000000000 --- a/tests/grouptools/groupmems/55_groupmems_usage-a-d/groupmems.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems reports usage if the -a and -d options are used at the same time" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Call groupmems with the -a and -d options (groupmems -a root -d nobody -g foo)..." -groupmems -a root -d nobody -g foo 2>tmp/groupmems.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "1" -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/groupmems.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/groupmems.err tmp/groupmems.err -echo "error message OK." -rm -f tmp/groupmems.err - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config.txt b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config.txt deleted file mode 100644 index e9e4bbed8b..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config.txt +++ /dev/null @@ -1 +0,0 @@ -group foo, GID 1000 diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/group b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/group deleted file mode 100644 index fecba0c4ed..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/group +++ /dev/null @@ -1,42 +0,0 @@ -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: diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/gshadow b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/gshadow deleted file mode 100644 index 5042e5818a..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/gshadow +++ /dev/null @@ -1,42 +0,0 @@ -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:*:: diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/login.defs b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/login.defs deleted file mode 100644 index 62f9d227cb..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/login.defs +++ /dev/null @@ -1,302 +0,0 @@ -# -# /etc/login.defs - Configuration control definitions for the login package. -# -# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH. -# If unspecified, some arbitrary (and possibly incorrect) value will -# be assumed. All other items are optional - if not specified then -# the described action or option will be inhibited. -# -# Comment lines (lines beginning with "#") and blank lines are ignored. -# -# Modified for Linux. --marekm - -# REQUIRED for useradd/userdel/usermod -# Directory where mailboxes reside, _or_ name of file, relative to the -# home directory. If you _do_ define MAIL_DIR and MAIL_FILE, -# MAIL_DIR takes precedence. -# -# Essentially: -# - MAIL_DIR defines the location of users mail spool files -# (for mbox use) by appending the username to MAIL_DIR as defined -# below. -# - MAIL_FILE defines the location of the users mail spool files as the -# fully-qualified filename obtained by prepending the user home -# directory before $MAIL_FILE -# -# NOTE: This is no more used for setting up users MAIL environment variable -# which is, starting from shadow 4.0.12-1 in Debian, entirely the -# job of the pam_mail PAM modules -# See default PAM configuration files provided for -# login, su, etc. -# -# This is a temporary situation: setting these variables will soon -# move to /etc/default/useradd and the variables will then be -# no more supported -MAIL_DIR /var/mail -#MAIL_FILE .mail - -# -# Enable logging and display of /var/log/faillog login failure info. -# This option conflicts with the pam_tally PAM module. -# -FAILLOG_ENAB yes - -# -# Enable display of unknown usernames when login failures are recorded. -# -# WARNING: Unknown usernames may become world readable. -# See #290803 and #298773 for details about how this could become a security -# concern -LOG_UNKFAIL_ENAB no - -# -# Enable logging of successful logins -# -LOG_OK_LOGINS no - -# -# Enable "syslog" logging of su activity - in addition to sulog file logging. -# SYSLOG_SG_ENAB does the same for newgrp and sg. -# -SYSLOG_SU_ENAB yes -SYSLOG_SG_ENAB yes - -# -# If defined, all su activity is logged to this file. -# -#SULOG_FILE /var/log/sulog - -# -# If defined, file which maps tty line to TERM environment parameter. -# Each line of the file is in a format something like "vt100 tty01". -# -#TTYTYPE_FILE /etc/ttytype - -# -# If defined, login failures will be logged here in a utmp format -# last, when invoked as lastb, will read /var/log/btmp, so... -# -FTMP_FILE /var/log/btmp - -# -# If defined, the command name to display when running "su -". For -# example, if this is defined as "su" then a "ps" will display the -# command is "-su". If not defined, then "ps" would display the -# name of the shell actually being run, e.g. something like "-sh". -# -SU_NAME su - -# -# If defined, file which inhibits all the usual chatter during the login -# sequence. If a full pathname, then hushed mode will be enabled if the -# user's name or shell are found in the file. If not a full pathname, then -# hushed mode will be enabled if the file exists in the user's home directory. -# -HUSHLOGIN_FILE .hushlogin -#HUSHLOGIN_FILE /etc/hushlogins - -# -# *REQUIRED* The default PATH settings, for superuser and normal users. -# -# (they are minimal, add the rest in the shell startup files) -ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/games - -# -# Terminal permissions -# -# TTYGROUP Login tty will be assigned this group ownership. -# TTYPERM Login tty will be set to this permission. -# -# If you have a "write" program which is "setgid" to a special group -# which owns the terminals, define TTYGROUP to the group number and -# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign -# TTYPERM to either 622 or 600. -# -# In Debian /usr/bin/bsd-write or similar programs are setgid tty -# However, the default and recommended value for TTYPERM is still 0600 -# to not allow anyone to write to anyone else console or terminal - -# Users can still allow other people to write them by issuing -# the "mesg y" command. - -TTYGROUP tty -TTYPERM 0600 - -# -# Login configuration initializations: -# -# ERASECHAR Terminal ERASE character ('\010' = backspace). -# KILLCHAR Terminal KILL character ('\025' = CTRL/U). -# UMASK Default "umask" value. -# -# The ERASECHAR and KILLCHAR are used only on System V machines. -# -# UMASK usage is discouraged because it catches only some classes of user -# entries to system, in fact only those made through login(1), while setting -# umask in shell rc file will catch also logins through su, cron, ssh etc. -# -# At the same time, using shell rc to set umask won't catch entries which use -# non-shell executables in place of login shell, like /usr/sbin/pppd for "ppp" -# user and alike. -# -# Therefore the use of pam_umask is recommended (Debian package libpam-umask) -# as the solution which catches all these cases on PAM-enabled systems. -# -# This avoids the confusion created by having the umask set -# in two different places -- in login.defs and shell rc files (i.e. -# /etc/profile). -# -# For discussion, see #314539 and #248150 as well as the thread starting at -# http://lists.debian.org/debian-devel/2005/06/msg01598.html -# -# Prefix these values with "0" to get octal, "0x" to get hexadecimal. -# -ERASECHAR 0177 -KILLCHAR 025 -# 022 is the "historical" value in Debian for UMASK when it was used -# 027, or even 077, could be considered better for privacy -# There is no One True Answer here : each sysadmin must make up their -# mind. -#UMASK 022 - -# -# Password aging controls: -# -# PASS_MAX_DAYS Maximum number of days a password may be used. -# PASS_MIN_DAYS Minimum number of days allowed between password changes. -# PASS_WARN_AGE Number of days warning given before a password expires. -# -PASS_MAX_DAYS 99999 -PASS_MIN_DAYS 0 -PASS_WARN_AGE 7 - -# -# Min/max values for automatic uid selection in useradd -# -UID_MIN 1000 -UID_MAX 60000 - -# -# Min/max values for automatic gid selection in groupadd -# -GID_MIN 100 -GID_MAX 60000 - -# -# Max number of login retries if password is bad. This will most likely be -# overridden by PAM, since the default pam_unix module has it's own built -# in of 3 retries. However, this is a safe fallback in case you are using -# an authentication module that does not enforce PAM_MAXTRIES. -# -LOGIN_RETRIES 5 - -# -# Max time in seconds for login -# -LOGIN_TIMEOUT 60 - -# -# Which fields may be changed by regular users using chfn - use -# any combination of letters "frwh" (full name, room number, work -# phone, home phone). If not defined, no changes are allowed. -# For backward compatibility, "yes" = "rwh" and "no" = "frwh". -# -CHFN_RESTRICT rwh - -# -# Should login be allowed if we can't cd to the home directory? -# Default is no. -# -DEFAULT_HOME yes - -# -# If defined, this command is run when removing a user. -# It should remove any at/cron/print jobs etc. owned by -# the user to be removed (passed as the first argument). -# -#USERDEL_CMD /usr/sbin/userdel_local - -# -# This enables userdel to remove user groups if no members exist. -# -# Other former uses of this variable such as setting the umask when -# user==primary group are not used in PAM environments, thus in Debian -# -USERGROUPS_ENAB yes - -# -# Instead of the real user shell, the program specified by this parameter -# will be launched, although its visible name (argv[0]) will be the shell's. -# The program may do whatever it wants (logging, additional authentification, -# banner, ...) before running the actual shell. -# -# FAKE_SHELL /bin/fakeshell - -# -# If defined, either full pathname of a file containing device names or -# a ":" delimited list of device names. Root logins will be allowed only -# upon these devices. -# -# This variable is used by login and su. -# -#CONSOLE /etc/consoles -#CONSOLE console:tty01:tty02:tty03:tty04 - -# -# List of groups to add to the user's supplementary group set -# when logging in on the console (as determined by the CONSOLE -# setting). Default is none. -# -# Use with caution - it is possible for users to gain permanent -# access to these groups, even when not logged in on the console. -# How to do it is left as an exercise for the reader... -# -# This variable is used by login and su. -# -#CONSOLE_GROUPS floppy:audio:cdrom - -################# OBSOLETED BY PAM ############## -# # -# These options are now handled by PAM. Please # -# edit the appropriate file in /etc/pam.d/ to # -# enable the equivalents of them. -# -############### - -#MOTD_FILE -#DIALUPS_CHECK_ENAB -#LASTLOG_ENAB -#MAIL_CHECK_ENAB -#OBSCURE_CHECKS_ENAB -#PORTTIME_CHECKS_ENAB -#SU_WHEEL_ONLY -#PASS_CHANGE_TRIES -#PASS_ALWAYS_WARN -#ENVIRON_FILE -#NOLOGINS_FILE -#ISSUE_FILE -#PASS_MIN_LEN -#PASS_MAX_LEN -#ULIMIT -#ENV_HZ -#CHFN_AUTH -#CHSH_AUTH -#FAIL_DELAY - -################# OBSOLETED ####################### -# # -# These options are no more handled by shadow. # -# # -# Shadow utilities will display a warning if they # -# still appear. # -# # -################################################### - -# CLOSE_SESSIONS -# LOGIN_STRING -# NO_PASSWORD_CONSOLE -# QMAIL_DIR - - - diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/passwd b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/passwd deleted file mode 100644 index 43fc135a40..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/passwd +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/shadow b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/shadow deleted file mode 100644 index 5f50d1873b..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/config/etc/shadow +++ /dev/null @@ -1,19 +0,0 @@ -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::: diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/data/groupmems.err b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/data/groupmems.err deleted file mode 100644 index 584313c5d6..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/data/groupmems.err +++ /dev/null @@ -1,13 +0,0 @@ -Usage: groupmems [options] [action] - -Options: - -g, --group groupname change groupname instead of the user's group - (root only) - -R, --root CHROOT_DIR directory to chroot into - -Actions: - -a, --add username add username to the members of the group - -d, --delete username remove username from the members of the group - -h, --help display this help message and exit - -p, --purge purge all members from the group - -l, --list list the members of the group diff --git a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/groupmems.test b/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/groupmems.test deleted file mode 100755 index bdd0632bac..0000000000 --- a/tests/grouptools/groupmems/56_groupmems_usage_extra_arg/groupmems.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems reports usage if extra arguments are provided" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Call groupmems with an extra argument (groupmems -a root -g foo foo)..." -groupmems -a root -g foo foo 2>tmp/groupmems.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "1" -echo "OK" - -echo "groupmems reported:" -echo "=======================================================================" -cat tmp/groupmems.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/groupmems.err tmp/groupmems.err -echo "error message OK." -rm -f tmp/groupmems.err - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config.txt b/tests/grouptools/groupmems/57_groupmems_authentication/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/group b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/group deleted file mode 100644 index 287981ed12..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon -gtest1:x:424242:utest1,bin,utmp diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/gshadow b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/gshadow deleted file mode 100644 index f9ba86afab..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon -gtest1:*:: diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-account b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-account deleted file mode 100644 index 316b17337b..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-account +++ /dev/null @@ -1,25 +0,0 @@ -# -# /etc/pam.d/common-account - authorization settings common to all services -# -# This file is included from other service-specific PAM config files, -# and should contain a list of the authorization modules that define -# the central access policy for use on the system. The default is to -# only deny service to users whose accounts are expired in /etc/shadow. -# -# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. -# To take advantage of this, it is recommended that you configure any -# local modules either before or after the default block, and use -# pam-auth-update to manage selection of other modules. See -# pam-auth-update(8) for details. -# - -# here are the per-package modules (the "Primary" block) -account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so -# here's the fallback if no module succeeds -account requisite pam_deny.so -# prime the stack with a positive return value if there isn't one already; -# this avoids us returning an error just because nothing sets a success code -# since the modules above will each just jump around -account required pam_permit.so -# and here are more per-package modules (the "Additional" block) -# end of pam-auth-update config diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-auth b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-auth deleted file mode 100644 index 5facfa290b..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/common-auth +++ /dev/null @@ -1,25 +0,0 @@ -# -# /etc/pam.d/common-auth - authentication settings common to all services -# -# This file is included from other service-specific PAM config files, -# and should contain a list of the authentication modules that define -# the central authentication scheme for use on the system -# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the -# traditional Unix authentication mechanisms. -# -# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. -# To take advantage of this, it is recommended that you configure any -# local modules either before or after the default block, and use -# pam-auth-update to manage selection of other modules. See -# pam-auth-update(8) for details. - -# here are the per-package modules (the "Primary" block) -auth [success=1 default=ignore] pam_unix.so nullok_secure -# here's the fallback if no module succeeds -auth requisite pam_deny.so -# prime the stack with a positive return value if there isn't one already; -# this avoids us returning an error just because nothing sets a success code -# since the modules above will each just jump around -auth required pam_permit.so -# and here are more per-package modules (the "Additional" block) -# end of pam-auth-update config diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/groupmems b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/groupmems deleted file mode 100644 index 2b65f340a5..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/pam.d/groupmems +++ /dev/null @@ -1,8 +0,0 @@ -# The PAM configuration file for the Shadow 'groupmod' service -# - -# This allows root to modify groups without being prompted for a password -auth sufficient pam_rootok.so - -@include common-auth -@include common-account diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/passwd b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/shadow b/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/data/group b/tests/grouptools/groupmems/57_groupmems_authentication/data/group deleted file mode 100644 index 7214940d7c..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/data/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon,nobody -gtest1:x:424242:utest1,bin,utmp diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/data/gshadow b/tests/grouptools/groupmems/57_groupmems_authentication/data/gshadow deleted file mode 100644 index b79987c5ab..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/data/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon,nobody -gtest1:*:: diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/groupmems.test b/tests/grouptools/groupmems/57_groupmems_authentication/groupmems.test deleted file mode 100755 index 4abad1baa8..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) authenticate the caller" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/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 config/etc/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 - diff --git a/tests/grouptools/groupmems/57_groupmems_authentication/run_groupmems.exp b/tests/grouptools/groupmems/57_groupmems_authentication/run_groupmems.exp deleted file mode 100755 index 5689cd5a32..0000000000 --- a/tests/grouptools/groupmems/57_groupmems_authentication/run_groupmems.exp +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a nobody\r" -expect "Password: " -send "myuserF00barbaz\r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "0\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config.txt b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/group b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/group deleted file mode 100644 index 287981ed12..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon -gtest1:x:424242:utest1,bin,utmp diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/gshadow b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/gshadow deleted file mode 100644 index f9ba86afab..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon -gtest1:*:: diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-account b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-account deleted file mode 100644 index 316b17337b..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-account +++ /dev/null @@ -1,25 +0,0 @@ -# -# /etc/pam.d/common-account - authorization settings common to all services -# -# This file is included from other service-specific PAM config files, -# and should contain a list of the authorization modules that define -# the central access policy for use on the system. The default is to -# only deny service to users whose accounts are expired in /etc/shadow. -# -# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. -# To take advantage of this, it is recommended that you configure any -# local modules either before or after the default block, and use -# pam-auth-update to manage selection of other modules. See -# pam-auth-update(8) for details. -# - -# here are the per-package modules (the "Primary" block) -account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so -# here's the fallback if no module succeeds -account requisite pam_deny.so -# prime the stack with a positive return value if there isn't one already; -# this avoids us returning an error just because nothing sets a success code -# since the modules above will each just jump around -account required pam_permit.so -# and here are more per-package modules (the "Additional" block) -# end of pam-auth-update config diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-auth b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-auth deleted file mode 100644 index 5facfa290b..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/common-auth +++ /dev/null @@ -1,25 +0,0 @@ -# -# /etc/pam.d/common-auth - authentication settings common to all services -# -# This file is included from other service-specific PAM config files, -# and should contain a list of the authentication modules that define -# the central authentication scheme for use on the system -# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the -# traditional Unix authentication mechanisms. -# -# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. -# To take advantage of this, it is recommended that you configure any -# local modules either before or after the default block, and use -# pam-auth-update to manage selection of other modules. See -# pam-auth-update(8) for details. - -# here are the per-package modules (the "Primary" block) -auth [success=1 default=ignore] pam_unix.so nullok_secure -# here's the fallback if no module succeeds -auth requisite pam_deny.so -# prime the stack with a positive return value if there isn't one already; -# this avoids us returning an error just because nothing sets a success code -# since the modules above will each just jump around -auth required pam_permit.so -# and here are more per-package modules (the "Additional" block) -# end of pam-auth-update config diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/groupmems b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/groupmems deleted file mode 100644 index 2b65f340a5..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/pam.d/groupmems +++ /dev/null @@ -1,8 +0,0 @@ -# The PAM configuration file for the Shadow 'groupmod' service -# - -# This allows root to modify groups without being prompted for a password -auth sufficient pam_rootok.so - -@include common-auth -@include common-account diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/passwd b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/shadow b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/groupmems.test b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/groupmems.test deleted file mode 100755 index bf741c9573..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) authenticates the caller" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/run_groupmems.exp b/tests/grouptools/groupmems/58_groupmems_authentication_failure1/run_groupmems.exp deleted file mode 100755 index b42b92edc4..0000000000 --- a/tests/grouptools/groupmems/58_groupmems_authentication_failure1/run_groupmems.exp +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/expect - -set timeout 3 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a nobody\r" -expect "Password: " -send "!myuserF00barbaz\r" -expect -re "groupmems: PAM: Authentication failure\r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "1\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config.txt b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/group b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/group deleted file mode 100644 index 287981ed12..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon -gtest1:x:424242:utest1,bin,utmp diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/gshadow b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/gshadow deleted file mode 100644 index f9ba86afab..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon -gtest1:*:: diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-account b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-account deleted file mode 100644 index c175a14131..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-account +++ /dev/null @@ -1 +0,0 @@ -account requisite pam_deny.so diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-auth b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-auth deleted file mode 100644 index 5facfa290b..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/common-auth +++ /dev/null @@ -1,25 +0,0 @@ -# -# /etc/pam.d/common-auth - authentication settings common to all services -# -# This file is included from other service-specific PAM config files, -# and should contain a list of the authentication modules that define -# the central authentication scheme for use on the system -# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the -# traditional Unix authentication mechanisms. -# -# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. -# To take advantage of this, it is recommended that you configure any -# local modules either before or after the default block, and use -# pam-auth-update to manage selection of other modules. See -# pam-auth-update(8) for details. - -# here are the per-package modules (the "Primary" block) -auth [success=1 default=ignore] pam_unix.so nullok_secure -# here's the fallback if no module succeeds -auth requisite pam_deny.so -# prime the stack with a positive return value if there isn't one already; -# this avoids us returning an error just because nothing sets a success code -# since the modules above will each just jump around -auth required pam_permit.so -# and here are more per-package modules (the "Additional" block) -# end of pam-auth-update config diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/groupmems b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/groupmems deleted file mode 100644 index 2b65f340a5..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/pam.d/groupmems +++ /dev/null @@ -1,8 +0,0 @@ -# The PAM configuration file for the Shadow 'groupmod' service -# - -# This allows root to modify groups without being prompted for a password -auth sufficient pam_rootok.so - -@include common-auth -@include common-account diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/passwd b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/shadow b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/groupmems.test b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/groupmems.test deleted file mode 100755 index bf741c9573..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/groupmems.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) authenticates the caller" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/run_groupmems.exp b/tests/grouptools/groupmems/59_groupmems_authentication_failure2/run_groupmems.exp deleted file mode 100755 index 0da4b225d2..0000000000 --- a/tests/grouptools/groupmems/59_groupmems_authentication_failure2/run_groupmems.exp +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/expect - -set timeout 3 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a nobody\r" -expect "Password: " -send "myuserF00barbaz\r" -expect -re "groupmems: PAM: Authentication failure\r" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "1\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config.txt b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config.txt deleted file mode 100644 index fa7bf43848..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config.txt +++ /dev/null @@ -1 +0,0 @@ -user myuser, in group groups diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/group b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/group deleted file mode 100644 index 287981ed12..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/group +++ /dev/null @@ -1,45 +0,0 @@ -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: -groupmems:x:99:myuser -utest1:x:1000: -myuser:x:424242:utest1,bin,daemon -gtest1:x:424242:utest1,bin,utmp diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/gshadow b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/gshadow deleted file mode 100644 index f9ba86afab..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/gshadow +++ /dev/null @@ -1,45 +0,0 @@ -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:: -groupmems:*::myuser -utest1:*:: -myuser:x::utest1,bin,daemon -gtest1:*:: diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/groupmems b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/groupmems deleted file mode 100644 index 9152969944..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/groupmems +++ /dev/null @@ -1 +0,0 @@ -This file will be removed diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/other b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/other deleted file mode 100644 index 9152969944..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/pam.d/other +++ /dev/null @@ -1 +0,0 @@ -This file will be removed diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/passwd b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/passwd deleted file mode 100644 index df9b7a07e0..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/passwd +++ /dev/null @@ -1,21 +0,0 @@ -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 -utest1:x:1000:1000::/tmp:/bin/sh -myuser:x:424242:424242::/home:/bin/bash diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/shadow b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/shadow deleted file mode 100644 index 65079bb1a9..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/config/etc/shadow +++ /dev/null @@ -1,21 +0,0 @@ -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::: -utest1:!:12977:0:99999:7::: -myuser:$1$yQnIAZWV$gDAMB2IkqaONgrQiRdo4y.:12991:0:99999:7::: diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/groupmems.test b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/groupmems.test deleted file mode 100755 index fb5129dee1..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/groupmems.test +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "groupmems (called by a regular user) authenticates the caller" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Remove PAM configuration (/etc/pam.d/other /etc/pam.d/groupmems)..." -rm -f /etc/pam.d/other /etc/pam.d/groupmems -echo "OK" - -echo -n "myuser will call groupmems..." -./run_groupmems.exp -echo "OK" - -echo -n "Check the passwd file..." -../../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - diff --git a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/run_groupmems.exp b/tests/grouptools/groupmems/60_groupmems_authentication_failure3/run_groupmems.exp deleted file mode 100755 index 76c1b767df..0000000000 --- a/tests/grouptools/groupmems/60_groupmems_authentication_failure3/run_groupmems.exp +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/expect - -set timeout 3 -expect_after default {puts stderr "\nFAIL"; exit 1} - -if {$argc != 0} { - puts "usage: run_groupmems.exp" - exit 1 -} - -# First, switch to the testsuite user -# (otherwise, no password will be asked) -send_user "# switch to the 'myuser' user\n" -send_user "# and expect a '$ ' prompt\n" -spawn /bin/su myuser - -expect "$ " ;# Wait for the prompt - -send_user "\n# make sure we are now 'myuser'" -send_user "\n# id should return 'uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)'" -send "\r" ;# restore the prompt for the logs -send "id\r" ;# Verify we are really testsuite - -expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser),99(groupmems)" - -expect "$ " ;# Wait for the prompt - -send_user "\n\n" -send_user "# now add user utest1 to the myuser group\n" -send_user "# and expect a password prompt" -send "\r" ;# restore the prompt for the logs -send "/usr/sbin/groupmems -a nobody\r" -expect -re "groupmems: PAM: Critical error . immediate abort" - -expect "$ " ;# Wait for the prompt -send "echo $?\r" -expect "1\r" -expect "$ " ;# Wait for the prompt -close - -puts "\nPASS" -exit 0 diff --git a/tests/run_all b/tests/run_all index 7ab29d9fc2..7dbd5f42a9 100755 --- a/tests/run_all +++ b/tests/run_all @@ -371,66 +371,6 @@ run_test ./grouptools/groupdel/08_groupdel_delete_group_error_no_group_parameter run_test ./grouptools/groupdel/09_groupdel_delete_group_error_two_group_parameter/groupdel.test run_test ./grouptools/groupdel/10_groupdel_usage/groupdel.test run_test ./grouptools/groupdel/11_groupdel_invalid_option/groupdel.test -run_test ./grouptools/groupmems/01_groupmems_root_add_user/groupmems.test -run_test ./grouptools/groupmems/02_groupmems_root_del_user/groupmems.test -run_test ./grouptools/groupmems/03_groupmems_root_del_user_admin/groupmems.test -run_test ./grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/groupmems.test -run_test ./grouptools/groupmems/05_groupmems_root_add_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/07_groupmems_root_del_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/09_groupmems_root_purge_user/groupmems.test -run_test ./grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/12_groupmems_user_add_user/groupmems.test -run_test ./grouptools/groupmems/13_groupmems_user_del_user/groupmems.test -run_test ./grouptools/groupmems/14_groupmems_user_del_user_admin/groupmems.test -run_test ./grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/groupmems.test -run_test ./grouptools/groupmems/16_groupmems_user_add_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/18_groupmems_user_del_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/20_groupmems_user_purge_user/groupmems.test -run_test ./grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/groupmems.test -run_test ./grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/groupmems.test -run_test ./grouptools/groupmems/25_groupmems_user_add_user-not_user_group/groupmems.test -run_test ./grouptools/groupmems/26_groupmems_user_add_user-already_member/groupmems.test -run_test ./grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/groupmems.test -run_test ./grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/groupmems.test -run_test ./grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/groupmems.test -run_test ./grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/groupmems.test -run_test ./grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/groupmems.test -run_test ./grouptools/groupmems/32_groupmems_user_del_user-not_member/groupmems.test -run_test ./grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/groupmems.test -run_test ./grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/groupmems.test -run_test ./grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/groupmems.test -run_test ./grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/groupmems.test -run_test ./grouptools/groupmems/37_groupmems_user_purge_user-empty_group/groupmems.test -run_test ./grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/groupmems.test -run_test ./grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/groupmems.test -run_test ./grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/groupmems.test -run_test ./grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/groupmems.test -run_test ./grouptools/groupmems/42_groupmems_user_list_users/groupmems.test -run_test ./grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/groupmems.test -run_test ./grouptools/groupmems/44_groupmems_user_list_users-another_group/groupmems.test -run_test ./grouptools/groupmems/45_groupmems_user_list_users-group_locked/groupmems.test -run_test ./grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/47_groupmems_user_add_user-group_locked/groupmems.test -run_test ./grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/49_groupmems_user_del_user-group_locked/groupmems.test -run_test ./grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/51_groupmems_user_purge_user-group_locked/groupmems.test -run_test ./grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/53_groupmems_usage/groupmems.test -run_test ./grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test -run_test ./grouptools/groupmems/55_groupmems_usage-a-d/groupmems.test -run_test ./grouptools/groupmems/56_groupmems_usage_extra_arg/groupmems.test -run_test ./grouptools/groupmems/57_groupmems_authentication/groupmems.test -run_test ./grouptools/groupmems/58_groupmems_authentication_failure1/groupmems.test -run_test ./grouptools/groupmems/59_groupmems_authentication_failure2/groupmems.test -run_test ./grouptools/groupmems/60_groupmems_authentication_failure3/groupmems.test run_test ./grouptools/groupmod/01_groupmod_change_gid/groupmod.test run_test ./grouptools/groupmod/02_groupmod_change_gid_change_primary_group/groupmod.test run_test ./grouptools/groupmod/03_groupmod_change_gid_no_gshadow_group/groupmod.test @@ -1054,8 +994,6 @@ run_test ./failures/groupdel/01_groupdel_gshadow_rename_failure/groupdel.test run_test ./failures/groupdel/02_groupdel_group_rename_failure/groupdel.test run_test ./failures/groupdel/03_groupdel_gshadow_open_failure/groupdel.test run_test ./failures/groupdel/04_groupdel_group_open_failure/groupdel.test -run_test ./failures/groupmems/01_groupmems_group_open_failure/groupmems.test -run_test ./failures/groupmems/02_groupmems_gshadow_open_failure/groupmems.test run_test ./failures/groupmod/01_groupmod_change_group_name_gshadow_rename_failure/groupmod.test run_test ./failures/groupmod/02_groupmod_change_gid_change_primary_group_passwd_rename_failure/groupmod.test run_test ./failures/groupmod/03_groupmod_change_group_name_group_rename_failure/groupmod.test diff --git a/tests/run_all.coverage b/tests/run_all.coverage index e5e9a6bcd2..7b778b8445 100755 --- a/tests/run_all.coverage +++ b/tests/run_all.coverage @@ -387,66 +387,6 @@ run_test ./grouptools/groupdel/08_groupdel_delete_group_error_no_group_parameter run_test ./grouptools/groupdel/09_groupdel_delete_group_error_two_group_parameter/groupdel.test run_test ./grouptools/groupdel/10_groupdel_usage/groupdel.test run_test ./grouptools/groupdel/11_groupdel_invalid_option/groupdel.test -run_test ./grouptools/groupmems/01_groupmems_root_add_user/groupmems.test -run_test ./grouptools/groupmems/02_groupmems_root_del_user/groupmems.test -run_test ./grouptools/groupmems/03_groupmems_root_del_user_admin/groupmems.test -run_test ./grouptools/groupmems/04_groupmems_root_del_user_admin_and_user/groupmems.test -run_test ./grouptools/groupmems/05_groupmems_root_add_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/06_groupmems_root_add_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/07_groupmems_root_del_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/08_groupmems_root_del_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/09_groupmems_root_purge_user/groupmems.test -run_test ./grouptools/groupmems/10_groupmems_root_purge_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/11_groupmems_root_purge_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/12_groupmems_user_add_user/groupmems.test -run_test ./grouptools/groupmems/13_groupmems_user_del_user/groupmems.test -run_test ./grouptools/groupmems/14_groupmems_user_del_user_admin/groupmems.test -run_test ./grouptools/groupmems/15_groupmems_user_del_user_admin_and_user/groupmems.test -run_test ./grouptools/groupmems/16_groupmems_user_add_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/17_groupmems_user_add_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/18_groupmems_user_del_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/19_groupmems_user_del_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/20_groupmems_user_purge_user/groupmems.test -run_test ./grouptools/groupmems/21_groupmems_user_purge_user_with_other_users/groupmems.test -run_test ./grouptools/groupmems/22_groupmems_user_purge_user_with_other_users_admin/groupmems.test -run_test ./grouptools/groupmems/23_groupmems_user_add_user-not_in_groups/groupmems.test -run_test ./grouptools/groupmems/24_groupmems_user_add_user-not_primary_group/groupmems.test -run_test ./grouptools/groupmems/25_groupmems_user_add_user-not_user_group/groupmems.test -run_test ./grouptools/groupmems/26_groupmems_user_add_user-already_member/groupmems.test -run_test ./grouptools/groupmems/27_groupmems_user_add_user-already_member_in_group/groupmems.test -run_test ./grouptools/groupmems/28_groupmems_user_add_user-already_member_in_gshadow/groupmems.test -run_test ./grouptools/groupmems/29_groupmems_user_add_user-user_does_not_exist/groupmems.test -run_test ./grouptools/groupmems/30_groupmems_user_add_user-no_gshadow_group/groupmems.test -run_test ./grouptools/groupmems/31_groupmems_user_add_user-no_gshadow_file/groupmems.test -run_test ./grouptools/groupmems/32_groupmems_user_del_user-not_member/groupmems.test -run_test ./grouptools/groupmems/33_groupmems_user_del_user-not_member_in_gshadow/groupmems.test -run_test ./grouptools/groupmems/34_groupmems_user_del_user-user_does_not_exist/groupmems.test -run_test ./grouptools/groupmems/35_groupmems_user_del_user-no_gshadow_group/groupmems.test -run_test ./grouptools/groupmems/36_groupmems_user_del_user-no_gshadow_file/groupmems.test -run_test ./grouptools/groupmems/37_groupmems_user_purge_user-empty_group/groupmems.test -run_test ./grouptools/groupmems/38_groupmems_user_purge_user-no_gshadow_group/groupmems.test -run_test ./grouptools/groupmems/39_groupmems_user_purge_user-no_gshadow_file/groupmems.test -run_test ./grouptools/groupmems/40_groupmems_user_del_user-not_primary_group/groupmems.test -run_test ./grouptools/groupmems/41_groupmems_user_purge_user-not_primary_group/groupmems.test -run_test ./grouptools/groupmems/42_groupmems_user_list_users/groupmems.test -run_test ./grouptools/groupmems/43_groupmems_user_list_users-gshadow_ignored/groupmems.test -run_test ./grouptools/groupmems/44_groupmems_user_list_users-another_group/groupmems.test -run_test ./grouptools/groupmems/45_groupmems_user_list_users-group_locked/groupmems.test -run_test ./grouptools/groupmems/46_groupmems_user_list_users-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/47_groupmems_user_add_user-group_locked/groupmems.test -run_test ./grouptools/groupmems/48_groupmems_user_add_user-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/49_groupmems_user_del_user-group_locked/groupmems.test -run_test ./grouptools/groupmems/50_groupmems_user_del_user-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/51_groupmems_user_purge_user-group_locked/groupmems.test -run_test ./grouptools/groupmems/52_groupmems_user_purge_user-gshadow_locked/groupmems.test -run_test ./grouptools/groupmems/53_groupmems_usage/groupmems.test -run_test ./grouptools/groupmems/54_groupmems_usage_invalid_option/groupmems.test -run_test ./grouptools/groupmems/55_groupmems_usage-a-d/groupmems.test -run_test ./grouptools/groupmems/56_groupmems_usage_extra_arg/groupmems.test -run_test ./grouptools/groupmems/57_groupmems_authentication/groupmems.test -run_test ./grouptools/groupmems/58_groupmems_authentication_failure1/groupmems.test -run_test ./grouptools/groupmems/59_groupmems_authentication_failure2/groupmems.test -run_test ./grouptools/groupmems/60_groupmems_authentication_failure3/groupmems.test run_test ./grouptools/groupmod/01_groupmod_change_gid/groupmod.test run_test ./grouptools/groupmod/02_groupmod_change_gid_change_primary_group/groupmod.test run_test ./grouptools/groupmod/03_groupmod_change_gid_no_gshadow_group/groupmod.test @@ -1069,8 +1009,6 @@ run_test ./failures/groupdel/01_groupdel_gshadow_rename_failure/groupdel.test run_test ./failures/groupdel/02_groupdel_group_rename_failure/groupdel.test run_test ./failures/groupdel/03_groupdel_gshadow_open_failure/groupdel.test run_test ./failures/groupdel/04_groupdel_group_open_failure/groupdel.test -run_test ./failures/groupmems/01_groupmems_group_open_failure/groupmems.test -run_test ./failures/groupmems/02_groupmems_gshadow_open_failure/groupmems.test run_test ./failures/groupmod/01_groupmod_change_group_name_gshadow_rename_failure/groupmod.test run_test ./failures/groupmod/02_groupmod_change_gid_change_primary_group_passwd_rename_failure/groupmod.test run_test ./failures/groupmod/03_groupmod_change_group_name_group_rename_failure/groupmod.test diff --git a/tests/system/framework/roles/shadow.py b/tests/system/framework/roles/shadow.py index fd4157d697..f1a57eaf31 100644 --- a/tests/system/framework/roles/shadow.py +++ b/tests/system/framework/roles/shadow.py @@ -298,30 +298,6 @@ def newusers(self, *args, users_data: str | None = None) -> ProcessResult: return cmd - def groupmems(self, *args, run_as: str = "root", password: str | None = None) -> ProcessResult: - """ - Administer members of a user's primary group. - - The groupmems command allows management of group membership lists. - If `run_as` is provided, then the `password` must be provided and the command groupmems run under this user. - If `run_as` isn't provided, then the command is run under `root`. - """ - args_dict = self._parse_args(args) - - if run_as == "root": - self.logger.info(f'Administer {args_dict["name"]} group membership as root on {self.host.hostname}') - cmd = self.host.conn.run("groupmems " + args[0], log_level=ProcessLogLevel.Error) - else: - self.logger.info(f'Administer {args_dict["name"]} group membership on {self.host.hostname}') - cmd = self.host.conn.run( - f"echo '{password}' | su - {run_as} -c 'groupmems {args[0]}'", log_level=ProcessLogLevel.Error - ) - - self.host.discard_file("/etc/group") - self.host.discard_file("/etc/gshadow") - - return cmd - def newgrp(self, *args, run_as: str = "root") -> Tuple[ProcessResult, int]: """ Log in to a new group. diff --git a/tests/system/tests/test_groupmems.py b/tests/system/tests/test_groupmems.py deleted file mode 100644 index f59d49c860..0000000000 --- a/tests/system/tests/test_groupmems.py +++ /dev/null @@ -1,41 +0,0 @@ -""" -Test groupmems -""" - -from __future__ import annotations - -import pytest - -from framework.roles.shadow import Shadow -from framework.topology import KnownTopology - - -@pytest.mark.topology(KnownTopology.Shadow) -def test_groupmems__add_user_as_root(shadow: Shadow): - """ - :title: Add user to group as root user - :setup: - 1. Create test user and group - :steps: - 1. Add user to group using groupmems as root - 2. Check group and gshadow entry - :expectedresults: - 1. User is added to group - 2. group and gshadow entry values are correct - :customerscenario: False - """ - shadow.useradd("tuser") - shadow.groupadd("tgroup") - - shadow.groupmems("-g tgroup -a tuser") - - group_entry = shadow.tools.getent.group("tgroup") - assert group_entry is not None, "Group should be found" - assert group_entry.name == "tgroup", "Incorrect groupname" - assert "tuser" in group_entry.members, "User should be member of group" - - if shadow.host.features["gshadow"]: - gshadow_entry = shadow.tools.getent.gshadow("tgroup") - assert gshadow_entry is not None, "Group should be found" - assert gshadow_entry.name == "tgroup", "Incorrect groupname" - assert gshadow_entry.password == "!", "Incorrect password" From 39e6bc12c686bd3eeae45654b6f6f2ce673175cc Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Wed, 25 Mar 2026 15:04:35 +0100 Subject: [PATCH 2/2] man/po: fix pot file syntax errors after `groupmems` removal Regenerate shadow-man-pages.pot to remove orphaned translation entries and fix embedded temporary paths that were causing `msgmerge` failures in CI. Signed-off-by: Iker Pedrosa --- man/po/shadow-man-pages.pot | 5264 +++++++++++++++++------------------ 1 file changed, 2561 insertions(+), 2703 deletions(-) diff --git a/man/po/shadow-man-pages.pot b/man/po/shadow-man-pages.pot index 1a0c409b26..042a13752a 100644 --- a/man/po/shadow-man-pages.pot +++ b/man/po/shadow-man-pages.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-14 18:23-0500\n" +"POT-Creation-Date: 2026-03-25 14:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -13,22 +13,20 @@ msgstr "" #. (itstool) path: author/firstname #: chage.1.xml.out:16 #: chfn.1.xml.out:18 -#: chpasswd.8.xml.out:21 +#: chpasswd.8.xml.out:20 #: chsh.1.xml.out:18 #: faillog.5.xml.out:15 #: faillog.8.xml.out:15 #: groupadd.8.xml.out:18 #: groupdel.8.xml.out:16 #: groupmod.8.xml.out:16 -#: groups.1.xml.out:15 #: grpck.8.xml.out:15 #: lastlog.8.xml.out:17 #: login.1.xml.out:48 -#: login.defs.5.xml.out:86 -#: logoutd.8.xml.out:15 +#: login.defs.5.xml.out:85 #: newgrp.1.xml.out:16 -#: newusers.8.xml.out:33 -#: passwd.1.xml.out:24 +#: newusers.8.xml.out:32 +#: passwd.1.xml.out:23 #: passwd.5.xml.out:15 #: porttime.5.xml.out:15 #: pwck.8.xml.out:22 @@ -45,22 +43,20 @@ msgstr "" #. (itstool) path: author/surname #: chage.1.xml.out:17 #: chfn.1.xml.out:19 -#: chpasswd.8.xml.out:22 +#: chpasswd.8.xml.out:21 #: chsh.1.xml.out:19 #: faillog.5.xml.out:16 #: faillog.8.xml.out:16 #: groupadd.8.xml.out:19 #: groupdel.8.xml.out:17 #: groupmod.8.xml.out:17 -#: groups.1.xml.out:16 #: grpck.8.xml.out:16 #: lastlog.8.xml.out:18 #: login.1.xml.out:49 -#: login.defs.5.xml.out:87 -#: logoutd.8.xml.out:16 +#: login.defs.5.xml.out:86 #: newgrp.1.xml.out:17 -#: newusers.8.xml.out:34 -#: passwd.1.xml.out:25 +#: newusers.8.xml.out:33 +#: passwd.1.xml.out:24 #: passwd.5.xml.out:16 #: porttime.5.xml.out:16 #: pwck.8.xml.out:23 @@ -84,26 +80,24 @@ msgstr "" #. (itstool) path: author/firstname #: chage.1.xml.out:21 #: chfn.1.xml.out:23 -#: chgpasswd.8.xml.out:22 -#: chpasswd.8.xml.out:26 +#: chgpasswd.8.xml.out:21 +#: chpasswd.8.xml.out:25 #: chsh.1.xml.out:23 #: faillog.5.xml.out:20 #: faillog.8.xml.out:20 -#: gpasswd.1.xml.out:27 +#: gpasswd.1.xml.out:26 #: groupadd.8.xml.out:23 #: groupdel.8.xml.out:21 #: groupmod.8.xml.out:21 -#: groups.1.xml.out:20 #: grpck.8.xml.out:20 #: lastlog.8.xml.out:22 #: limits.5.xml.out:22 #: login.1.xml.out:53 #: login.access.5.xml.out:21 -#: login.defs.5.xml.out:91 -#: logoutd.8.xml.out:20 +#: login.defs.5.xml.out:90 #: newgrp.1.xml.out:21 -#: newusers.8.xml.out:38 -#: passwd.1.xml.out:29 +#: newusers.8.xml.out:37 +#: passwd.1.xml.out:28 #: passwd.5.xml.out:20 #: porttime.5.xml.out:20 #: pwck.8.xml.out:27 @@ -123,26 +117,24 @@ msgstr "" #. (itstool) path: author/surname #: chage.1.xml.out:22 #: chfn.1.xml.out:24 -#: chgpasswd.8.xml.out:23 -#: chpasswd.8.xml.out:27 +#: chgpasswd.8.xml.out:22 +#: chpasswd.8.xml.out:26 #: chsh.1.xml.out:24 #: faillog.5.xml.out:21 #: faillog.8.xml.out:21 -#: gpasswd.1.xml.out:28 +#: gpasswd.1.xml.out:27 #: groupadd.8.xml.out:24 #: groupdel.8.xml.out:22 #: groupmod.8.xml.out:22 -#: groups.1.xml.out:21 #: grpck.8.xml.out:21 #: lastlog.8.xml.out:23 #: limits.5.xml.out:23 #: login.1.xml.out:54 #: login.access.5.xml.out:22 -#: login.defs.5.xml.out:92 -#: logoutd.8.xml.out:21 +#: login.defs.5.xml.out:91 #: newgrp.1.xml.out:22 -#: newusers.8.xml.out:39 -#: passwd.1.xml.out:30 +#: newusers.8.xml.out:38 +#: passwd.1.xml.out:29 #: passwd.5.xml.out:21 #: porttime.5.xml.out:21 #: pwck.8.xml.out:28 @@ -162,26 +154,24 @@ msgstr "" #. (itstool) path: author/email #: chage.1.xml.out:23 #: chfn.1.xml.out:25 -#: chgpasswd.8.xml.out:24 -#: chpasswd.8.xml.out:28 +#: chgpasswd.8.xml.out:23 +#: chpasswd.8.xml.out:27 #: chsh.1.xml.out:25 #: faillog.5.xml.out:22 #: faillog.8.xml.out:22 -#: gpasswd.1.xml.out:29 +#: gpasswd.1.xml.out:28 #: groupadd.8.xml.out:25 #: groupdel.8.xml.out:23 #: groupmod.8.xml.out:23 -#: groups.1.xml.out:22 #: grpck.8.xml.out:22 #: lastlog.8.xml.out:24 #: limits.5.xml.out:24 #: login.1.xml.out:55 #: login.access.5.xml.out:23 -#: login.defs.5.xml.out:93 -#: logoutd.8.xml.out:22 +#: login.defs.5.xml.out:92 #: newgrp.1.xml.out:23 -#: newusers.8.xml.out:40 -#: passwd.1.xml.out:31 +#: newusers.8.xml.out:39 +#: passwd.1.xml.out:30 #: passwd.5.xml.out:22 #: porttime.5.xml.out:22 #: pwck.8.xml.out:29 @@ -201,25 +191,23 @@ msgstr "" #. (itstool) path: author/contrib #: chage.1.xml.out:24 #: chfn.1.xml.out:26 -#: chpasswd.8.xml.out:29 +#: chpasswd.8.xml.out:28 #: chsh.1.xml.out:26 #: faillog.5.xml.out:23 #: faillog.8.xml.out:23 -#: gpasswd.1.xml.out:30 +#: gpasswd.1.xml.out:29 #: groupadd.8.xml.out:26 #: groupdel.8.xml.out:24 #: groupmod.8.xml.out:24 -#: groups.1.xml.out:23 #: grpck.8.xml.out:23 #: lastlog.8.xml.out:25 #: limits.5.xml.out:25 #: login.1.xml.out:56 #: login.access.5.xml.out:24 -#: login.defs.5.xml.out:94 -#: logoutd.8.xml.out:23 +#: login.defs.5.xml.out:93 #: newgrp.1.xml.out:24 -#: newusers.8.xml.out:41 -#: passwd.1.xml.out:32 +#: newusers.8.xml.out:40 +#: passwd.1.xml.out:31 #: passwd.5.xml.out:23 #: porttime.5.xml.out:23 #: pwck.8.xml.out:30 @@ -239,28 +227,26 @@ msgstr "" #. (itstool) path: author/firstname #: chage.1.xml.out:27 #: chfn.1.xml.out:29 -#: chgpasswd.8.xml.out:28 -#: chpasswd.8.xml.out:32 +#: chgpasswd.8.xml.out:27 +#: chpasswd.8.xml.out:31 #: chsh.1.xml.out:29 #: faillog.5.xml.out:26 #: faillog.8.xml.out:26 -#: gpasswd.1.xml.out:33 +#: gpasswd.1.xml.out:32 #: groupadd.8.xml.out:29 #: groupdel.8.xml.out:27 #: groupmod.8.xml.out:27 -#: groups.1.xml.out:26 #: grpck.8.xml.out:26 #: gshadow.5.xml.out:14 #: lastlog.8.xml.out:28 #: limits.5.xml.out:28 #: login.1.xml.out:59 #: login.access.5.xml.out:27 -#: login.defs.5.xml.out:97 -#: logoutd.8.xml.out:26 +#: login.defs.5.xml.out:96 #: newgrp.1.xml.out:27 -#: newusers.8.xml.out:44 +#: newusers.8.xml.out:43 #: nologin.8.xml.out:15 -#: passwd.1.xml.out:35 +#: passwd.1.xml.out:34 #: passwd.5.xml.out:26 #: porttime.5.xml.out:26 #: pwck.8.xml.out:33 @@ -280,28 +266,26 @@ msgstr "" #. (itstool) path: author/surname #: chage.1.xml.out:28 #: chfn.1.xml.out:30 -#: chgpasswd.8.xml.out:29 -#: chpasswd.8.xml.out:33 +#: chgpasswd.8.xml.out:28 +#: chpasswd.8.xml.out:32 #: chsh.1.xml.out:30 #: faillog.5.xml.out:27 #: faillog.8.xml.out:27 -#: gpasswd.1.xml.out:34 +#: gpasswd.1.xml.out:33 #: groupadd.8.xml.out:30 #: groupdel.8.xml.out:28 #: groupmod.8.xml.out:28 -#: groups.1.xml.out:27 #: grpck.8.xml.out:27 #: gshadow.5.xml.out:15 #: lastlog.8.xml.out:29 #: limits.5.xml.out:29 #: login.1.xml.out:60 #: login.access.5.xml.out:28 -#: login.defs.5.xml.out:98 -#: logoutd.8.xml.out:27 +#: login.defs.5.xml.out:97 #: newgrp.1.xml.out:28 -#: newusers.8.xml.out:45 +#: newusers.8.xml.out:44 #: nologin.8.xml.out:16 -#: passwd.1.xml.out:36 +#: passwd.1.xml.out:35 #: passwd.5.xml.out:27 #: porttime.5.xml.out:27 #: pwck.8.xml.out:34 @@ -321,28 +305,26 @@ msgstr "" #. (itstool) path: author/email #: chage.1.xml.out:29 #: chfn.1.xml.out:31 -#: chgpasswd.8.xml.out:30 -#: chpasswd.8.xml.out:34 +#: chgpasswd.8.xml.out:29 +#: chpasswd.8.xml.out:33 #: chsh.1.xml.out:31 #: faillog.5.xml.out:28 #: faillog.8.xml.out:28 -#: gpasswd.1.xml.out:35 +#: gpasswd.1.xml.out:34 #: groupadd.8.xml.out:31 #: groupdel.8.xml.out:29 #: groupmod.8.xml.out:29 -#: groups.1.xml.out:28 #: grpck.8.xml.out:28 #: gshadow.5.xml.out:16 #: lastlog.8.xml.out:30 #: limits.5.xml.out:30 #: login.1.xml.out:61 #: login.access.5.xml.out:29 -#: login.defs.5.xml.out:99 -#: logoutd.8.xml.out:28 +#: login.defs.5.xml.out:98 #: newgrp.1.xml.out:29 -#: newusers.8.xml.out:46 +#: newusers.8.xml.out:45 #: nologin.8.xml.out:17 -#: passwd.1.xml.out:37 +#: passwd.1.xml.out:36 #: passwd.5.xml.out:28 #: porttime.5.xml.out:28 #: pwck.8.xml.out:35 @@ -362,28 +344,26 @@ msgstr "" #. (itstool) path: author/contrib #: chage.1.xml.out:30 #: chfn.1.xml.out:32 -#: chgpasswd.8.xml.out:31 -#: chpasswd.8.xml.out:35 +#: chgpasswd.8.xml.out:30 +#: chpasswd.8.xml.out:34 #: chsh.1.xml.out:32 #: faillog.5.xml.out:29 #: faillog.8.xml.out:29 -#: gpasswd.1.xml.out:36 +#: gpasswd.1.xml.out:35 #: groupadd.8.xml.out:32 #: groupdel.8.xml.out:30 #: groupmod.8.xml.out:30 -#: groups.1.xml.out:29 #: grpck.8.xml.out:29 #: gshadow.5.xml.out:18 #: lastlog.8.xml.out:31 #: limits.5.xml.out:31 #: login.1.xml.out:62 #: login.access.5.xml.out:30 -#: login.defs.5.xml.out:100 -#: logoutd.8.xml.out:29 +#: login.defs.5.xml.out:99 #: newgrp.1.xml.out:30 -#: newusers.8.xml.out:47 +#: newusers.8.xml.out:46 #: nologin.8.xml.out:18 -#: passwd.1.xml.out:38 +#: passwd.1.xml.out:37 #: passwd.5.xml.out:29 #: porttime.5.xml.out:29 #: pwck.8.xml.out:36 @@ -410,13 +390,13 @@ msgstr "" #: chage.1.xml.out:41 #: chage.1.xml.out:46 #: chage.1.xml.out:59 -#: chage.1.xml.out:69 -#: chage.1.xml.out:231 +#: chage.1.xml.out:71 #: chage.1.xml.out:241 #: chage.1.xml.out:251 -#: chage.1.xml.out:256 -#: chage.1.xml.out:300 -#: login.defs.5.xml.out:237 +#: chage.1.xml.out:261 +#: chage.1.xml.out:266 +#: chage.1.xml.out:310 +#: login.defs.5.xml.out:235 #: shadow.5.xml.out:262 msgid "chage" msgstr "" @@ -426,95 +406,93 @@ msgstr "" #. (itstool) path: citerefentry/manvolnum #. (itstool) path: para/replaceable #: chage.1.xml.out:35 -#: chage.1.xml.out:309 +#: chage.1.xml.out:319 #: chfn.1.xml.out:37 -#: chfn.1.xml.out:65 -#: chfn.1.xml.out:205 -#: chgpasswd.8.xml.out:245 -#: chpasswd.8.xml.out:307 +#: chfn.1.xml.out:66 +#: chfn.1.xml.out:208 +#: chgpasswd.8.xml.out:235 +#: chpasswd.8.xml.out:295 #: chsh.1.xml.out:37 -#: chsh.1.xml.out:212 -#: faillog.8.xml.out:235 -#: gpasswd.1.xml.out:41 -#: gpasswd.1.xml.out:95 -#: gpasswd.1.xml.out:279 -#: groupadd.8.xml.out:345 -#: groupadd.8.xml.out:348 -#: groupadd.8.xml.out:351 -#: groupdel.8.xml.out:205 -#: groupdel.8.xml.out:208 -#: groupdel.8.xml.out:211 -#: groupmod.8.xml.out:326 -#: groupmod.8.xml.out:329 -#: groupmod.8.xml.out:332 -#: groups.1.xml.out:34 -#: groups.1.xml.out:92 -#: grpck.8.xml.out:243 +#: chsh.1.xml.out:205 +#: faillog.8.xml.out:236 +#: gpasswd.1.xml.out:40 +#: gpasswd.1.xml.out:94 +#: gpasswd.1.xml.out:278 +#: groupadd.8.xml.out:346 +#: groupadd.8.xml.out:349 +#: groupadd.8.xml.out:352 +#: groupdel.8.xml.out:206 +#: groupdel.8.xml.out:209 +#: groupdel.8.xml.out:212 +#: groupmod.8.xml.out:327 +#: groupmod.8.xml.out:330 +#: groupmod.8.xml.out:333 +#: grpck.8.xml.out:244 #: gshadow.5.xml.out:77 #: gshadow.5.xml.out:165 #: limits.5.xml.out:185 #: login.1.xml.out:67 #: login.1.xml.out:128 -#: login.1.xml.out:377 -#: login.1.xml.out:380 -#: login.1.xml.out:383 -#: login.1.xml.out:386 +#: login.1.xml.out:369 +#: login.1.xml.out:372 +#: login.1.xml.out:375 +#: login.1.xml.out:378 #: login.access.5.xml.out:112 +#: login.defs.5.xml.out:518 +#: login.defs.5.xml.out:520 +#: login.defs.5.xml.out:522 +#: login.defs.5.xml.out:532 #: login.defs.5.xml.out:535 -#: login.defs.5.xml.out:537 -#: login.defs.5.xml.out:539 -#: login.defs.5.xml.out:549 -#: login.defs.5.xml.out:552 -#: login.defs.5.xml.out:555 +#: login.defs.5.xml.out:538 #: newgrp.1.xml.out:35 #: newgrp.1.xml.out:130 #: newgrp.1.xml.out:133 #: newgrp.1.xml.out:136 #: newgrp.1.xml.out:139 #: newgrp.1.xml.out:142 -#: newusers.8.xml.out:477 +#: newusers.8.xml.out:474 #: nologin.8.xml.out:60 -#: passwd.1.xml.out:43 -#: passwd.1.xml.out:453 -#: passwd.1.xml.out:499 +#: passwd.1.xml.out:42 +#: passwd.1.xml.out:452 +#: passwd.1.xml.out:504 #: passwd.5.xml.out:118 #: passwd.5.xml.out:173 #: passwd.5.xml.out:179 #: passwd.5.xml.out:182 #: passwd.5.xml.out:197 #: porttime.5.xml.out:121 -#: pwck.8.xml.out:293 +#: pwck.8.xml.out:294 #: shadow.5.xml.out:262 #: shadow.5.xml.out:265 #: shadow.5.xml.out:268 #: shadow.5.xml.out:283 #: sg.1.xml.out:35 -#: sg.1.xml.out:119 -#: sg.1.xml.out:122 -#: sg.1.xml.out:125 -#: sg.1.xml.out:128 -#: sg.1.xml.out:131 +#: sg.1.xml.out:155 +#: sg.1.xml.out:158 +#: sg.1.xml.out:161 +#: sg.1.xml.out:164 +#: sg.1.xml.out:167 #: su.1.xml.out:51 #: su.1.xml.out:391 #: su.1.xml.out:415 #: su.1.xml.out:421 #: su.1.xml.out:424 #: suauth.5.xml.out:201 -#: useradd.8.xml.out:837 -#: useradd.8.xml.out:898 -#: useradd.8.xml.out:901 -#: useradd.8.xml.out:904 -#: userdel.8.xml.out:241 -#: userdel.8.xml.out:310 -#: userdel.8.xml.out:313 -#: userdel.8.xml.out:316 +#: useradd.8.xml.out:882 +#: useradd.8.xml.out:949 +#: useradd.8.xml.out:952 +#: useradd.8.xml.out:955 +#: userdel.8.xml.out:234 +#: userdel.8.xml.out:303 +#: userdel.8.xml.out:306 +#: userdel.8.xml.out:309 #: usermod.8.xml.out:105 -#: usermod.8.xml.out:244 -#: usermod.8.xml.out:622 -#: usermod.8.xml.out:625 -#: usermod.8.xml.out:628 +#: usermod.8.xml.out:248 +#: usermod.8.xml.out:640 +#: usermod.8.xml.out:643 +#: usermod.8.xml.out:646 #: vipw.8.xml.out:78 -#: vipw.8.xml.out:205 +#: vipw.8.xml.out:206 msgid "1" msgstr "" @@ -522,11 +500,10 @@ msgstr "" #: chage.1.xml.out:36 #: chfn.1.xml.out:38 #: chsh.1.xml.out:38 -#: gpasswd.1.xml.out:42 -#: groups.1.xml.out:35 +#: gpasswd.1.xml.out:41 #: login.1.xml.out:68 #: newgrp.1.xml.out:36 -#: passwd.1.xml.out:44 +#: passwd.1.xml.out:43 #: sg.1.xml.out:36 #: su.1.xml.out:52 msgid "User Commands" @@ -535,28 +512,26 @@ msgstr "" #. (itstool) path: refmeta/refmiscinfo #: chage.1.xml.out:37 #: chfn.1.xml.out:39 -#: chgpasswd.8.xml.out:38 -#: chpasswd.8.xml.out:42 +#: chgpasswd.8.xml.out:37 +#: chpasswd.8.xml.out:41 #: chsh.1.xml.out:39 #: faillog.5.xml.out:36 #: faillog.8.xml.out:36 -#: gpasswd.1.xml.out:43 +#: gpasswd.1.xml.out:42 #: groupadd.8.xml.out:39 #: groupdel.8.xml.out:37 #: groupmod.8.xml.out:37 -#: groups.1.xml.out:36 #: grpck.8.xml.out:36 #: gshadow.5.xml.out:25 #: lastlog.8.xml.out:38 #: limits.5.xml.out:38 #: login.1.xml.out:69 #: login.access.5.xml.out:37 -#: login.defs.5.xml.out:107 -#: logoutd.8.xml.out:36 +#: login.defs.5.xml.out:106 #: newgrp.1.xml.out:37 -#: newusers.8.xml.out:54 +#: newusers.8.xml.out:53 #: nologin.8.xml.out:25 -#: passwd.1.xml.out:45 +#: passwd.1.xml.out:44 #: passwd.5.xml.out:36 #: porttime.5.xml.out:36 #: pwck.8.xml.out:43 @@ -576,28 +551,26 @@ msgstr "" #. (itstool) path: refmeta/refmiscinfo #: chage.1.xml.out:38 #: chfn.1.xml.out:40 -#: chgpasswd.8.xml.out:39 -#: chpasswd.8.xml.out:43 +#: chgpasswd.8.xml.out:38 +#: chpasswd.8.xml.out:42 #: chsh.1.xml.out:40 #: faillog.5.xml.out:37 #: faillog.8.xml.out:37 -#: gpasswd.1.xml.out:44 +#: gpasswd.1.xml.out:43 #: groupadd.8.xml.out:40 #: groupdel.8.xml.out:38 #: groupmod.8.xml.out:38 -#: groups.1.xml.out:37 #: grpck.8.xml.out:37 #: gshadow.5.xml.out:26 #: lastlog.8.xml.out:39 #: limits.5.xml.out:39 #: login.1.xml.out:70 #: login.access.5.xml.out:38 -#: login.defs.5.xml.out:108 -#: logoutd.8.xml.out:37 +#: login.defs.5.xml.out:107 #: newgrp.1.xml.out:38 -#: newusers.8.xml.out:55 +#: newusers.8.xml.out:54 #: nologin.8.xml.out:26 -#: passwd.1.xml.out:46 +#: passwd.1.xml.out:45 #: passwd.5.xml.out:37 #: porttime.5.xml.out:37 #: pwck.8.xml.out:44 @@ -611,7 +584,7 @@ msgstr "" #: userdel.8.xml.out:43 #: usermod.8.xml.out:44 #: vipw.8.xml.out:39 -msgid "4.15.0" +msgid "4.19.0" msgstr "" #. (itstool) path: refnamediv/refpurpose @@ -623,16 +596,16 @@ msgstr "" #. (itstool) path: cmdsynopsis/arg #: chage.1.xml.out:48 #: chfn.1.xml.out:51 -#: chgpasswd.8.xml.out:50 -#: chpasswd.8.xml.out:54 +#: chgpasswd.8.xml.out:49 +#: chpasswd.8.xml.out:53 #: chsh.1.xml.out:51 #: faillog.8.xml.out:48 #: groupdel.8.xml.out:49 #: groupmod.8.xml.out:49 #: grpck.8.xml.out:47 #: lastlog.8.xml.out:50 -#: newusers.8.xml.out:66 -#: passwd.1.xml.out:57 +#: newusers.8.xml.out:65 +#: passwd.1.xml.out:56 #: pwck.8.xml.out:54 #: pwconv.8.xml.out:57 #: pwconv.8.xml.out:63 @@ -649,50 +622,49 @@ msgid "options" msgstr "" #. (itstool) path: arg/replaceable -#. (itstool) path: term/replaceable #. (itstool) path: para/replaceable +#. (itstool) path: term/replaceable #. (itstool) path: para/emphasis #: chage.1.xml.out:51 #: chfn.1.xml.out:54 +#: chfn.1.xml.out:85 #: chsh.1.xml.out:54 -#: faillog.8.xml.out:180 -#: lastlog.8.xml.out:139 -#: passwd.1.xml.out:60 +#: faillog.8.xml.out:181 +#: lastlog.8.xml.out:140 +#: passwd.1.xml.out:59 #: useradd.8.xml.out:68 -#: useradd.8.xml.out:158 +#: useradd.8.xml.out:185 #: userdel.8.xml.out:54 #: userdel.8.xml.out:64 #: usermod.8.xml.out:57 -#: usermod.8.xml.out:222 -#: usermod.8.xml.out:506 +#: usermod.8.xml.out:226 +#: usermod.8.xml.out:524 msgid "LOGIN" msgstr "" #. (itstool) path: refsect1/title #: chage.1.xml.out:57 #: chfn.1.xml.out:60 -#: chgpasswd.8.xml.out:56 -#: chpasswd.8.xml.out:60 +#: chgpasswd.8.xml.out:55 +#: chpasswd.8.xml.out:59 #: chsh.1.xml.out:60 #: faillog.5.xml.out:45 #: faillog.8.xml.out:54 -#: gpasswd.1.xml.out:72 +#: gpasswd.1.xml.out:71 #: groupadd.8.xml.out:60 #: groupdel.8.xml.out:56 #: groupmod.8.xml.out:56 -#: groups.1.xml.out:54 #: grpck.8.xml.out:58 #: gshadow.5.xml.out:34 #: lastlog.8.xml.out:56 #: limits.5.xml.out:48 #: login.1.xml.out:101 #: login.access.5.xml.out:46 -#: login.defs.5.xml.out:116 -#: logoutd.8.xml.out:51 +#: login.defs.5.xml.out:115 #: newgrp.1.xml.out:53 -#: newusers.8.xml.out:75 +#: newusers.8.xml.out:74 #: nologin.8.xml.out:40 -#: passwd.1.xml.out:66 +#: passwd.1.xml.out:65 #: passwd.5.xml.out:45 #: porttime.5.xml.out:45 #: pwck.8.xml.out:69 @@ -700,7 +672,7 @@ msgstr "" #: shadow.3.xml.out:94 #: shadow.3.xml.out:150 #: shadow.5.xml.out:45 -#: sg.1.xml.out:57 +#: sg.1.xml.out:62 #: su.1.xml.out:79 #: suauth.5.xml.out:51 #: useradd.8.xml.out:84 @@ -712,18 +684,18 @@ msgstr "" #. (itstool) path: refsect1/para #: chage.1.xml.out:58 -msgid "The <_:command-1/> command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change their password." +msgid "The <_:command-1/> command changes password expiration information for a user. It sets the number of days between password changes and the date of the last password change. This information is used by the system to determine when the user must change their password." msgstr "" #. (itstool) path: refsect1/title #. (itstool) path: arg/replaceable -#: chage.1.xml.out:67 -#: chfn.1.xml.out:87 -#: chgpasswd.8.xml.out:83 -#: chpasswd.8.xml.out:108 +#: chage.1.xml.out:69 +#: chfn.1.xml.out:91 +#: chgpasswd.8.xml.out:82 +#: chpasswd.8.xml.out:106 #: chsh.1.xml.out:71 #: faillog.8.xml.out:65 -#: gpasswd.1.xml.out:112 +#: gpasswd.1.xml.out:111 #: groupadd.8.xml.out:51 #: groupadd.8.xml.out:80 #: groupdel.8.xml.out:64 @@ -735,6 +707,7 @@ msgstr "" #: passwd.1.xml.out:146 #: pwck.8.xml.out:153 #: pwconv.8.xml.out:163 +#: sg.1.xml.out:79 #: su.1.xml.out:120 #: useradd.8.xml.out:102 #: userdel.8.xml.out:69 @@ -744,13 +717,13 @@ msgid "OPTIONS" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:68 -#: chfn.1.xml.out:88 -#: chgpasswd.8.xml.out:84 -#: chpasswd.8.xml.out:109 +#: chage.1.xml.out:70 +#: chfn.1.xml.out:92 +#: chgpasswd.8.xml.out:83 +#: chpasswd.8.xml.out:107 #: chsh.1.xml.out:72 #: faillog.8.xml.out:66 -#: gpasswd.1.xml.out:120 +#: gpasswd.1.xml.out:119 #: groupadd.8.xml.out:81 #: groupdel.8.xml.out:65 #: groupmod.8.xml.out:66 @@ -759,6 +732,7 @@ msgstr "" #: newusers.8.xml.out:253 #: passwd.1.xml.out:147 #: pwck.8.xml.out:158 +#: sg.1.xml.out:80 #: su.1.xml.out:121 #: useradd.8.xml.out:103 #: userdel.8.xml.out:70 @@ -768,119 +742,119 @@ msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chage.1.xml.out:74 -#: gpasswd.1.xml.out:139 +#: chage.1.xml.out:76 +#: gpasswd.1.xml.out:138 #: passwd.1.xml.out:164 #: useradd.8.xml.out:123 -#: useradd.8.xml.out:151 -#: useradd.8.xml.out:619 +#: useradd.8.xml.out:178 +#: useradd.8.xml.out:666 #: usermod.8.xml.out:112 -#: usermod.8.xml.out:260 +#: usermod.8.xml.out:264 msgid "-d" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:74 +#: chage.1.xml.out:76 msgid "--lastday" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:74 -#: chage.1.xml.out:81 -#: chage.1.xml.out:175 +#: chage.1.xml.out:76 +#: chage.1.xml.out:84 +#: chage.1.xml.out:90 +#: chage.1.xml.out:185 msgid "LAST_DAY" msgstr "" #. (itstool) path: varlistentry/term -#: chage.1.xml.out:73 -#: chage.1.xml.out:88 -#: chage.1.xml.out:127 -#: chage.1.xml.out:156 -#: chage.1.xml.out:168 -#: chage.1.xml.out:189 -#: chage.1.xml.out:202 -#: chage.1.xml.out:217 -#: chfn.1.xml.out:93 -#: chfn.1.xml.out:101 -#: chfn.1.xml.out:109 -#: chfn.1.xml.out:121 -#: chfn.1.xml.out:129 -#: chfn.1.xml.out:150 -#: chgpasswd.8.xml.out:128 -#: chpasswd.8.xml.out:115 -#: chpasswd.8.xml.out:170 -#: chpasswd.8.xml.out:183 -#: chpasswd.8.xml.out:198 +#: chage.1.xml.out:75 +#: chage.1.xml.out:96 +#: chage.1.xml.out:137 +#: chage.1.xml.out:166 +#: chage.1.xml.out:178 +#: chage.1.xml.out:199 +#: chage.1.xml.out:213 +#: chage.1.xml.out:227 +#: chfn.1.xml.out:97 +#: chfn.1.xml.out:105 +#: chfn.1.xml.out:113 +#: chfn.1.xml.out:125 +#: chfn.1.xml.out:133 +#: chfn.1.xml.out:154 +#: chgpasswd.8.xml.out:119 +#: chpasswd.8.xml.out:113 +#: chpasswd.8.xml.out:159 +#: chpasswd.8.xml.out:173 +#: chpasswd.8.xml.out:188 #: chsh.1.xml.out:83 -#: chsh.1.xml.out:96 +#: chsh.1.xml.out:97 #: faillog.8.xml.out:104 #: faillog.8.xml.out:119 #: faillog.8.xml.out:156 -#: faillog.8.xml.out:169 -#: gpasswd.1.xml.out:125 -#: gpasswd.1.xml.out:138 -#: gpasswd.1.xml.out:159 +#: faillog.8.xml.out:170 +#: gpasswd.1.xml.out:124 +#: gpasswd.1.xml.out:137 +#: gpasswd.1.xml.out:158 #: groupadd.8.xml.out:101 #: groupadd.8.xml.out:157 #: groupadd.8.xml.out:200 -#: groupadd.8.xml.out:213 +#: groupadd.8.xml.out:214 #: groupdel.8.xml.out:88 -#: groupdel.8.xml.out:101 -#: groupmod.8.xml.out:72 +#: groupdel.8.xml.out:102 #: groupmod.8.xml.out:81 #: groupmod.8.xml.out:120 #: groupmod.8.xml.out:142 #: groupmod.8.xml.out:163 -#: groupmod.8.xml.out:176 +#: groupmod.8.xml.out:177 #: grpck.8.xml.out:148 #: lastlog.8.xml.out:74 #: lastlog.8.xml.out:103 -#: lastlog.8.xml.out:127 +#: lastlog.8.xml.out:128 #: newusers.8.xml.out:307 -#: passwd.1.xml.out:192 -#: passwd.1.xml.out:241 -#: passwd.1.xml.out:263 -#: passwd.1.xml.out:273 +#: passwd.1.xml.out:191 +#: passwd.1.xml.out:240 +#: passwd.1.xml.out:262 +#: passwd.1.xml.out:272 #: passwd.1.xml.out:286 -#: passwd.1.xml.out:332 +#: passwd.1.xml.out:331 #: passwd.1.xml.out:345 #: pwck.8.xml.out:196 #: pwconv.8.xml.out:177 #: su.1.xml.out:125 #: su.1.xml.out:162 #: useradd.8.xml.out:117 -#: useradd.8.xml.out:138 -#: useradd.8.xml.out:150 -#: useradd.8.xml.out:178 -#: useradd.8.xml.out:195 -#: useradd.8.xml.out:229 -#: useradd.8.xml.out:279 -#: useradd.8.xml.out:426 -#: useradd.8.xml.out:490 -#: useradd.8.xml.out:503 -#: useradd.8.xml.out:518 -#: useradd.8.xml.out:532 -#: useradd.8.xml.out:567 -#: useradd.8.xml.out:611 -#: useradd.8.xml.out:629 -#: useradd.8.xml.out:641 +#: useradd.8.xml.out:165 +#: useradd.8.xml.out:177 +#: useradd.8.xml.out:208 +#: useradd.8.xml.out:227 +#: useradd.8.xml.out:270 +#: useradd.8.xml.out:320 +#: useradd.8.xml.out:472 +#: useradd.8.xml.out:536 +#: useradd.8.xml.out:550 +#: useradd.8.xml.out:565 +#: useradd.8.xml.out:579 +#: useradd.8.xml.out:614 #: useradd.8.xml.out:658 -#: useradd.8.xml.out:674 -#: userdel.8.xml.out:122 -#: userdel.8.xml.out:135 +#: useradd.8.xml.out:676 +#: useradd.8.xml.out:688 +#: useradd.8.xml.out:704 +#: useradd.8.xml.out:720 +#: userdel.8.xml.out:114 +#: userdel.8.xml.out:128 #: usermod.8.xml.out:98 #: usermod.8.xml.out:111 #: usermod.8.xml.out:128 #: usermod.8.xml.out:151 -#: usermod.8.xml.out:173 -#: usermod.8.xml.out:216 -#: usermod.8.xml.out:289 -#: usermod.8.xml.out:327 -#: usermod.8.xml.out:340 -#: usermod.8.xml.out:356 -#: usermod.8.xml.out:368 -#: usermod.8.xml.out:500 +#: usermod.8.xml.out:177 +#: usermod.8.xml.out:220 +#: usermod.8.xml.out:293 +#: usermod.8.xml.out:331 +#: usermod.8.xml.out:345 +#: usermod.8.xml.out:361 +#: usermod.8.xml.out:373 +#: usermod.8.xml.out:518 #: vipw.8.xml.out:114 msgid "<_:option-1/>, <_:option-2/> <_:replaceable-3/>" msgstr "" @@ -888,267 +862,274 @@ msgstr "" #. (itstool) path: para/emphasis #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:82 -#: chage.1.xml.out:303 -#: groupadd.8.xml.out:303 -#: groupdel.8.xml.out:168 -#: groupmod.8.xml.out:259 -#: grpck.8.xml.out:237 -#: login.defs.5.xml.out:140 -#: passwd.1.xml.out:447 -#: pwck.8.xml.out:287 +#: chage.1.xml.out:85 +#: chage.1.xml.out:313 +#: groupadd.8.xml.out:304 +#: groupdel.8.xml.out:169 +#: groupmod.8.xml.out:260 +#: grpck.8.xml.out:238 +#: login.defs.5.xml.out:139 +#: passwd.1.xml.out:446 +#: pwck.8.xml.out:288 #: su.1.xml.out:385 -#: useradd.8.xml.out:831 -#: userdel.8.xml.out:235 +#: useradd.8.xml.out:876 +#: userdel.8.xml.out:228 msgid "0" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:77 -msgid "Set the number of days since January 1st, 1970 when the password was last changed. The date may also be expressed in the format YYYY-MM-DD (or the format more commonly used in your area). If the <_:replaceable-1/> is set to <_:emphasis-2/> the user is forced to change his password on the next log on." +#: chage.1.xml.out:79 +msgid "Set the date when the password was last changed. The value can be specified as a date in the YYYY-MM-DD format or as a number of days since 1970-01-01. The date is interpreted using the UTC timezone. If the <_:replaceable-1/> is set to <_:emphasis-2/>, the user is forced to change their password upon the next login." msgstr "" -#. (itstool) path: term/option +#. (itstool) path: para/emphasis +#. (itstool) path: para/replaceable #: chage.1.xml.out:89 +#: chage.1.xml.out:118 +#: chage.1.xml.out:149 +#: chage.1.xml.out:192 +#: passwd.1.xml.out:355 +#: useradd.8.xml.out:363 +msgid "-1" +msgstr "" + +#. (itstool) path: listitem/para +#: chage.1.xml.out:88 +msgid "Passing the value <_:emphasis-1/> or an empty string as the <_:replaceable-2/> clears the value and removes the password change requirement." +msgstr "" + +#. (itstool) path: term/option +#: chage.1.xml.out:97 msgid "-E" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:89 -#: useradd.8.xml.out:179 -#: useradd.8.xml.out:630 +#: chage.1.xml.out:97 +#: useradd.8.xml.out:209 +#: useradd.8.xml.out:677 #: usermod.8.xml.out:129 msgid "--expiredate" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:89 -#: chage.1.xml.out:109 -#: useradd.8.xml.out:179 -#: useradd.8.xml.out:630 +#: chage.1.xml.out:97 +#: chage.1.xml.out:119 +#: useradd.8.xml.out:209 +#: useradd.8.xml.out:677 #: usermod.8.xml.out:129 -#: usermod.8.xml.out:243 -#: usermod.8.xml.out:416 +#: usermod.8.xml.out:247 +#: usermod.8.xml.out:421 msgid "EXPIRE_DATE" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:92 -msgid "Set the date or number of days since January 1, 1970 on which the user's account will no longer be accessible. The date may also be expressed in the format YYYY-MM-DD (or the format more commonly used in your area). A user whose account is locked must contact the system administrator before being able to use the system again." +#: chage.1.xml.out:100 +msgid "Set the date on which the user's password expires and their account will no longer be accessible. The value can be specified as a date in the YYYY-MM-DD format or as a number of days since 1970-01-01. The date is interpreted using the UTC timezone. If the password expires, the user must contact the system administrator to regain access to the system." msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:100 -msgid "For example the following can be used to set an account to expire in 180 days:" +#: chage.1.xml.out:110 +msgid "For example, the following command sets an account to expire in 180 days:" msgstr "" #. (itstool) path: listitem/programlisting -#: chage.1.xml.out:104 -msgid "chage -E $(date -d +180days +%Y-%m-%d)" -msgstr "" - -#. (itstool) path: para/emphasis -#. (itstool) path: para/replaceable -#: chage.1.xml.out:108 -#: chage.1.xml.out:139 -#: chage.1.xml.out:182 -#: passwd.1.xml.out:355 -#: useradd.8.xml.out:317 -msgid "-1" +#: chage.1.xml.out:114 +msgid "chage -E $(date -d +180days +%F)" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:107 -msgid "Passing the number <_:emphasis-1/> as the <_:replaceable-2/> will remove an account expiration date." +#: chage.1.xml.out:117 +msgid "Passing the value <_:emphasis-1/> or an empty string as the <_:replaceable-2/> removes the account expiration date." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chage.1.xml.out:115 -#: chfn.1.xml.out:102 +#: chage.1.xml.out:125 +#: chfn.1.xml.out:106 #: chgpasswd.8.xml.out:113 -#: chpasswd.8.xml.out:153 +#: chpasswd.8.xml.out:151 #: chsh.1.xml.out:77 #: faillog.8.xml.out:98 -#: gpasswd.1.xml.out:151 +#: gpasswd.1.xml.out:150 #: groupadd.8.xml.out:118 #: groupdel.8.xml.out:82 #: groupmod.8.xml.out:114 #: grpck.8.xml.out:132 #: lastlog.8.xml.out:96 #: login.1.xml.out:204 -#: login.1.xml.out:229 +#: login.1.xml.out:221 #: newusers.8.xml.out:282 -#: passwd.1.xml.out:186 +#: passwd.1.xml.out:185 #: pwck.8.xml.out:173 #: pwconv.8.xml.out:171 -#: useradd.8.xml.out:273 -#: userdel.8.xml.out:99 +#: useradd.8.xml.out:314 +#: userdel.8.xml.out:91 #: vipw.8.xml.out:96 msgid "-h" msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chage.1.xml.out:115 -#: chfn.1.xml.out:143 +#: chage.1.xml.out:125 +#: chfn.1.xml.out:147 #: chgpasswd.8.xml.out:113 -#: chpasswd.8.xml.out:153 +#: chpasswd.8.xml.out:151 #: chsh.1.xml.out:77 #: faillog.8.xml.out:98 -#: gpasswd.1.xml.out:151 +#: gpasswd.1.xml.out:150 #: groupadd.8.xml.out:118 #: groupdel.8.xml.out:82 #: groupmod.8.xml.out:114 #: grpck.8.xml.out:132 #: lastlog.8.xml.out:96 #: newusers.8.xml.out:282 -#: passwd.1.xml.out:186 +#: passwd.1.xml.out:185 #: pwck.8.xml.out:173 #: pwconv.8.xml.out:171 #: su.1.xml.out:387 -#: useradd.8.xml.out:273 -#: userdel.8.xml.out:99 +#: useradd.8.xml.out:314 +#: userdel.8.xml.out:91 #: vipw.8.xml.out:96 msgid "--help" msgstr "" #. (itstool) path: varlistentry/term -#: chage.1.xml.out:115 -#: chage.1.xml.out:121 -#: chage.1.xml.out:146 -#: chfn.1.xml.out:142 -#: chgpasswd.8.xml.out:90 +#: chage.1.xml.out:125 +#: chage.1.xml.out:131 +#: chage.1.xml.out:156 +#: chfn.1.xml.out:146 +#: chgpasswd.8.xml.out:89 #: chgpasswd.8.xml.out:107 #: chgpasswd.8.xml.out:113 -#: chgpasswd.8.xml.out:119 -#: chgpasswd.8.xml.out:141 -#: chpasswd.8.xml.out:145 -#: chpasswd.8.xml.out:153 -#: chpasswd.8.xml.out:161 +#: chgpasswd.8.xml.out:133 +#: chpasswd.8.xml.out:143 +#: chpasswd.8.xml.out:151 #: chsh.1.xml.out:77 #: faillog.8.xml.out:72 #: faillog.8.xml.out:98 #: faillog.8.xml.out:144 -#: gpasswd.1.xml.out:151 +#: gpasswd.1.xml.out:150 #: gpasswd.1.xml.out:174 #: gpasswd.1.xml.out:190 #: groupadd.8.xml.out:87 #: groupadd.8.xml.out:118 #: groupadd.8.xml.out:144 #: groupadd.8.xml.out:184 -#: groupadd.8.xml.out:228 +#: groupadd.8.xml.out:229 #: groupdel.8.xml.out:71 #: groupdel.8.xml.out:82 +#: groupmod.8.xml.out:72 #: groupmod.8.xml.out:114 #: groupmod.8.xml.out:131 -#: groupmod.8.xml.out:193 +#: groupmod.8.xml.out:194 #: grpck.8.xml.out:132 #: grpck.8.xml.out:138 -#: grpck.8.xml.out:161 -#: grpck.8.xml.out:172 +#: grpck.8.xml.out:162 +#: grpck.8.xml.out:173 #: lastlog.8.xml.out:84 #: lastlog.8.xml.out:95 -#: lastlog.8.xml.out:116 +#: lastlog.8.xml.out:117 #: newusers.8.xml.out:270 #: newusers.8.xml.out:282 #: newusers.8.xml.out:288 -#: newusers.8.xml.out:322 +#: newusers.8.xml.out:323 #: passwd.1.xml.out:152 #: passwd.1.xml.out:163 -#: passwd.1.xml.out:175 -#: passwd.1.xml.out:186 -#: passwd.1.xml.out:205 -#: passwd.1.xml.out:217 -#: passwd.1.xml.out:253 -#: passwd.1.xml.out:301 -#: passwd.1.xml.out:319 +#: passwd.1.xml.out:174 +#: passwd.1.xml.out:185 +#: passwd.1.xml.out:204 +#: passwd.1.xml.out:216 +#: passwd.1.xml.out:252 +#: passwd.1.xml.out:300 +#: passwd.1.xml.out:318 #: passwd.1.xml.out:362 #: pwck.8.xml.out:173 #: pwck.8.xml.out:179 #: pwck.8.xml.out:188 -#: pwck.8.xml.out:209 +#: pwck.8.xml.out:210 #: pwconv.8.xml.out:171 -#: useradd.8.xml.out:168 -#: useradd.8.xml.out:217 -#: useradd.8.xml.out:273 -#: useradd.8.xml.out:332 -#: useradd.8.xml.out:351 -#: useradd.8.xml.out:374 -#: useradd.8.xml.out:387 -#: useradd.8.xml.out:406 -#: useradd.8.xml.out:457 -#: useradd.8.xml.out:550 +#: sg.1.xml.out:85 +#: useradd.8.xml.out:198 +#: useradd.8.xml.out:258 +#: useradd.8.xml.out:314 +#: useradd.8.xml.out:378 +#: useradd.8.xml.out:397 +#: useradd.8.xml.out:420 +#: useradd.8.xml.out:433 +#: useradd.8.xml.out:452 +#: useradd.8.xml.out:503 +#: useradd.8.xml.out:597 #: userdel.8.xml.out:75 -#: userdel.8.xml.out:99 -#: userdel.8.xml.out:105 -#: userdel.8.xml.out:152 +#: userdel.8.xml.out:91 +#: userdel.8.xml.out:97 +#: userdel.8.xml.out:145 #: usermod.8.xml.out:77 #: usermod.8.xml.out:88 -#: usermod.8.xml.out:230 -#: usermod.8.xml.out:249 -#: usermod.8.xml.out:270 -#: usermod.8.xml.out:316 -#: usermod.8.xml.out:404 +#: usermod.8.xml.out:234 +#: usermod.8.xml.out:253 +#: usermod.8.xml.out:274 +#: usermod.8.xml.out:320 +#: usermod.8.xml.out:409 +#: usermod.8.xml.out:505 #: vipw.8.xml.out:90 #: vipw.8.xml.out:96 #: vipw.8.xml.out:102 #: vipw.8.xml.out:108 -#: vipw.8.xml.out:127 -#: vipw.8.xml.out:133 +#: vipw.8.xml.out:128 +#: vipw.8.xml.out:134 msgid "<_:option-1/>, <_:option-2/>" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:117 -#: chfn.1.xml.out:146 +#: chage.1.xml.out:127 +#: chfn.1.xml.out:150 #: chgpasswd.8.xml.out:115 -#: chpasswd.8.xml.out:155 +#: chpasswd.8.xml.out:153 #: chsh.1.xml.out:79 #: faillog.8.xml.out:100 -#: gpasswd.1.xml.out:153 +#: gpasswd.1.xml.out:152 #: groupadd.8.xml.out:120 #: groupdel.8.xml.out:84 #: groupmod.8.xml.out:116 #: grpck.8.xml.out:134 #: lastlog.8.xml.out:99 #: newusers.8.xml.out:284 -#: passwd.1.xml.out:188 +#: passwd.1.xml.out:187 #: pwck.8.xml.out:175 #: pwconv.8.xml.out:173 -#: useradd.8.xml.out:275 -#: userdel.8.xml.out:101 +#: useradd.8.xml.out:316 +#: userdel.8.xml.out:93 #: vipw.8.xml.out:98 msgid "Display help message and exit." msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:121 -#: passwd.1.xml.out:193 +#: chage.1.xml.out:131 +#: passwd.1.xml.out:192 msgid "-i" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:121 +#: chage.1.xml.out:131 msgid "--iso8601" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:123 +#: chage.1.xml.out:133 msgid "When printing dates, use YYYY-MM-DD format." msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:128 +#: chage.1.xml.out:138 msgid "-I" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:128 -#: passwd.1.xml.out:193 -#: useradd.8.xml.out:196 -#: useradd.8.xml.out:642 +#: chage.1.xml.out:138 +#: passwd.1.xml.out:192 +#: useradd.8.xml.out:228 +#: useradd.8.xml.out:689 #: usermod.8.xml.out:152 msgid "--inactive" msgstr "" @@ -1156,122 +1137,117 @@ msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable #. (itstool) path: para/option -#: chage.1.xml.out:128 -#: chage.1.xml.out:134 -#: chage.1.xml.out:140 -#: passwd.1.xml.out:193 -#: passwd.1.xml.out:199 -#: useradd.8.xml.out:196 -#: useradd.8.xml.out:211 -#: useradd.8.xml.out:642 -#: useradd.8.xml.out:652 +#: chage.1.xml.out:138 +#: chage.1.xml.out:144 +#: chage.1.xml.out:150 +#: passwd.1.xml.out:192 +#: passwd.1.xml.out:198 +#: useradd.8.xml.out:228 +#: useradd.8.xml.out:251 +#: useradd.8.xml.out:689 +#: useradd.8.xml.out:698 #: usermod.8.xml.out:152 msgid "INACTIVE" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:131 +#: chage.1.xml.out:141 msgid "Set the number of days of inactivity after a password has expired before the account is locked. The <_:replaceable-1/> option is the number of days of inactivity. A user whose account is locked must contact the system administrator before being able to use the system again." msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:138 +#: chage.1.xml.out:148 msgid "Passing the number <_:emphasis-1/> as the <_:replaceable-2/> will remove an account's inactivity." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#. (itstool) path: group/arg -#: chage.1.xml.out:147 -#: chage.1.xml.out:257 +#: chage.1.xml.out:157 +#: chage.1.xml.out:267 #: faillog.8.xml.out:88 #: faillog.8.xml.out:105 -#: faillog.8.xml.out:185 -#: faillog.8.xml.out:202 -#: passwd.1.xml.out:218 -#: passwd.1.xml.out:327 +#: faillog.8.xml.out:186 +#: faillog.8.xml.out:203 +#: passwd.1.xml.out:217 +#: passwd.1.xml.out:326 +#: sg.1.xml.out:85 #: su.1.xml.out:144 #: su.1.xml.out:156 -#: useradd.8.xml.out:332 -#: usermod.8.xml.out:217 +#: useradd.8.xml.out:378 +#: usermod.8.xml.out:221 msgid "-l" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:147 +#: chage.1.xml.out:157 msgid "--list" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:150 +#: chage.1.xml.out:160 msgid "Show account aging information." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chage.1.xml.out:157 -#: chgpasswd.8.xml.out:74 -#: chgpasswd.8.xml.out:119 -#: chpasswd.8.xml.out:80 -#: chpasswd.8.xml.out:86 -#: chpasswd.8.xml.out:136 -#: chpasswd.8.xml.out:161 +#: chage.1.xml.out:167 #: faillog.8.xml.out:88 #: faillog.8.xml.out:120 -#: faillog.8.xml.out:185 -#: faillog.8.xml.out:202 +#: faillog.8.xml.out:186 +#: faillog.8.xml.out:203 #: su.1.xml.out:207 -#: useradd.8.xml.out:289 -#: useradd.8.xml.out:352 -#: useradd.8.xml.out:478 +#: useradd.8.xml.out:190 +#: useradd.8.xml.out:330 +#: useradd.8.xml.out:398 +#: useradd.8.xml.out:524 #: usermod.8.xml.out:119 -#: usermod.8.xml.out:250 +#: usermod.8.xml.out:254 msgid "-m" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:157 -#: passwd.1.xml.out:242 +#: chage.1.xml.out:167 +#: passwd.1.xml.out:241 msgid "--mindays" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:157 -#: chage.1.xml.out:162 -#: passwd.1.xml.out:242 -#: passwd.1.xml.out:247 +#: chage.1.xml.out:167 +#: chage.1.xml.out:172 +#: passwd.1.xml.out:241 +#: passwd.1.xml.out:246 msgid "MIN_DAYS" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:160 -#: passwd.1.xml.out:245 +#: chage.1.xml.out:170 +#: passwd.1.xml.out:244 msgid "Set the minimum number of days between password changes to <_:replaceable-1/>. A value of zero for this field indicates that the user may change their password at any time." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chage.1.xml.out:169 -#: gpasswd.1.xml.out:83 -#: gpasswd.1.xml.out:114 +#: chage.1.xml.out:179 +#: gpasswd.1.xml.out:82 +#: gpasswd.1.xml.out:113 #: gpasswd.1.xml.out:219 -#: useradd.8.xml.out:162 -#: useradd.8.xml.out:375 +#: useradd.8.xml.out:193 +#: useradd.8.xml.out:421 msgid "-M" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:169 +#: chage.1.xml.out:179 #: passwd.1.xml.out:346 msgid "--maxdays" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:169 -#: chage.1.xml.out:174 -#: chage.1.xml.out:183 +#: chage.1.xml.out:179 +#: chage.1.xml.out:184 +#: chage.1.xml.out:193 #: passwd.1.xml.out:346 #: passwd.1.xml.out:351 #: passwd.1.xml.out:356 @@ -1280,28 +1256,28 @@ msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#: chage.1.xml.out:178 -#: chage.1.xml.out:218 -#: usermod.8.xml.out:481 +#: chage.1.xml.out:188 +#: chage.1.xml.out:228 +#: usermod.8.xml.out:486 msgid "-W" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:172 +#: chage.1.xml.out:182 msgid "Set the maximum number of days during which a password is valid. When <_:replaceable-1/> plus <_:replaceable-2/> is less than the current day, the user will be required to change their password before being able to use their account. This occurrence can be planned for in advance by use of the <_:option-3/> option, which provides the user with advance warning." msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:181 +#: chage.1.xml.out:191 #: passwd.1.xml.out:354 msgid "Passing the number <_:emphasis-1/> as <_:replaceable-2/> will remove checking a password's validity." msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:190 -#: chfn.1.xml.out:130 -#: chgpasswd.8.xml.out:129 -#: chpasswd.8.xml.out:171 +#: chage.1.xml.out:200 +#: chfn.1.xml.out:134 +#: chgpasswd.8.xml.out:120 +#: chpasswd.8.xml.out:160 #: chsh.1.xml.out:84 #: faillog.8.xml.out:157 #: gpasswd.1.xml.out:191 @@ -1311,63 +1287,63 @@ msgstr "" #: grpck.8.xml.out:149 #: lastlog.8.xml.out:104 #: newusers.8.xml.out:308 -#: passwd.1.xml.out:274 +#: passwd.1.xml.out:273 #: pwck.8.xml.out:197 #: pwconv.8.xml.out:178 -#: useradd.8.xml.out:491 -#: userdel.8.xml.out:123 -#: usermod.8.xml.out:328 +#: useradd.8.xml.out:537 +#: userdel.8.xml.out:115 +#: usermod.8.xml.out:332 #: vipw.8.xml.out:115 msgid "-R" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:190 -#: chfn.1.xml.out:130 -#: chgpasswd.8.xml.out:129 -#: chpasswd.8.xml.out:171 +#: chage.1.xml.out:200 +#: chfn.1.xml.out:134 +#: chgpasswd.8.xml.out:120 +#: chpasswd.8.xml.out:160 #: chsh.1.xml.out:84 #: faillog.8.xml.out:157 -#: gpasswd.1.xml.out:160 +#: gpasswd.1.xml.out:159 #: groupadd.8.xml.out:201 #: groupdel.8.xml.out:89 #: groupmod.8.xml.out:164 #: grpck.8.xml.out:149 #: lastlog.8.xml.out:104 #: newusers.8.xml.out:308 -#: passwd.1.xml.out:274 +#: passwd.1.xml.out:273 #: pwck.8.xml.out:197 #: pwconv.8.xml.out:178 -#: useradd.8.xml.out:491 -#: userdel.8.xml.out:123 -#: usermod.8.xml.out:328 +#: useradd.8.xml.out:537 +#: userdel.8.xml.out:115 +#: usermod.8.xml.out:332 #: vipw.8.xml.out:115 msgid "--root" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:190 -#: chage.1.xml.out:194 -#: chage.1.xml.out:196 -#: chfn.1.xml.out:130 +#: chage.1.xml.out:200 +#: chage.1.xml.out:204 +#: chage.1.xml.out:206 #: chfn.1.xml.out:134 -#: chfn.1.xml.out:136 -#: chgpasswd.8.xml.out:129 -#: chgpasswd.8.xml.out:133 -#: chgpasswd.8.xml.out:135 -#: chpasswd.8.xml.out:171 -#: chpasswd.8.xml.out:175 -#: chpasswd.8.xml.out:177 +#: chfn.1.xml.out:138 +#: chfn.1.xml.out:140 +#: chgpasswd.8.xml.out:120 +#: chgpasswd.8.xml.out:124 +#: chgpasswd.8.xml.out:126 +#: chpasswd.8.xml.out:160 +#: chpasswd.8.xml.out:164 +#: chpasswd.8.xml.out:166 #: chsh.1.xml.out:84 #: chsh.1.xml.out:88 #: chsh.1.xml.out:90 #: faillog.8.xml.out:157 #: faillog.8.xml.out:161 #: faillog.8.xml.out:163 -#: gpasswd.1.xml.out:160 -#: gpasswd.1.xml.out:164 -#: gpasswd.1.xml.out:166 +#: gpasswd.1.xml.out:159 +#: gpasswd.1.xml.out:163 +#: gpasswd.1.xml.out:165 #: groupadd.8.xml.out:201 #: groupadd.8.xml.out:205 #: groupadd.8.xml.out:207 @@ -1386,24 +1362,24 @@ msgstr "" #: newusers.8.xml.out:308 #: newusers.8.xml.out:312 #: newusers.8.xml.out:314 -#: passwd.1.xml.out:274 -#: passwd.1.xml.out:278 -#: passwd.1.xml.out:280 +#: passwd.1.xml.out:273 +#: passwd.1.xml.out:277 +#: passwd.1.xml.out:279 #: pwck.8.xml.out:197 #: pwck.8.xml.out:201 #: pwck.8.xml.out:203 #: pwconv.8.xml.out:178 #: pwconv.8.xml.out:182 #: pwconv.8.xml.out:184 -#: useradd.8.xml.out:491 -#: useradd.8.xml.out:495 -#: useradd.8.xml.out:497 -#: userdel.8.xml.out:123 -#: userdel.8.xml.out:127 -#: userdel.8.xml.out:129 -#: usermod.8.xml.out:328 +#: useradd.8.xml.out:537 +#: useradd.8.xml.out:541 +#: useradd.8.xml.out:543 +#: userdel.8.xml.out:115 +#: userdel.8.xml.out:119 +#: userdel.8.xml.out:121 #: usermod.8.xml.out:332 -#: usermod.8.xml.out:334 +#: usermod.8.xml.out:336 +#: usermod.8.xml.out:338 #: vipw.8.xml.out:115 #: vipw.8.xml.out:119 #: vipw.8.xml.out:121 @@ -1411,137 +1387,130 @@ msgid "CHROOT_DIR" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:193 -#: chfn.1.xml.out:133 -#: chgpasswd.8.xml.out:132 -#: chpasswd.8.xml.out:174 +#: chage.1.xml.out:203 +#: chgpasswd.8.xml.out:123 +#: chpasswd.8.xml.out:163 #: chsh.1.xml.out:87 #: faillog.8.xml.out:160 -#: gpasswd.1.xml.out:163 +#: gpasswd.1.xml.out:162 #: groupadd.8.xml.out:204 #: groupdel.8.xml.out:92 #: groupmod.8.xml.out:167 #: grpck.8.xml.out:152 #: lastlog.8.xml.out:107 #: newusers.8.xml.out:311 -#: passwd.1.xml.out:277 +#: passwd.1.xml.out:276 #: pwck.8.xml.out:200 #: pwconv.8.xml.out:181 -#: useradd.8.xml.out:494 -#: userdel.8.xml.out:126 -#: usermod.8.xml.out:331 +#: useradd.8.xml.out:540 +#: userdel.8.xml.out:118 +#: usermod.8.xml.out:335 #: vipw.8.xml.out:118 -msgid "Apply changes in the <_:replaceable-1/> directory and use the configuration files from the <_:replaceable-2/> directory. Only absolute paths are supported." +msgid "Apply changes in the <_:replaceable-1/> directory and use the configuration files from the <_:replaceable-2/> directory. Only absolute paths are supported. No SELINUX support." msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:203 -#: chpasswd.8.xml.out:184 -#: groupadd.8.xml.out:214 -#: groupdel.8.xml.out:102 -#: groupmod.8.xml.out:177 +#: chage.1.xml.out:214 +#: chpasswd.8.xml.out:174 +#: groupadd.8.xml.out:215 +#: groupdel.8.xml.out:103 +#: groupmod.8.xml.out:178 #: passwd.1.xml.out:287 -#: useradd.8.xml.out:504 -#: userdel.8.xml.out:136 -#: usermod.8.xml.out:341 +#: useradd.8.xml.out:551 +#: userdel.8.xml.out:129 +#: usermod.8.xml.out:346 msgid "-P" msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:203 -#: chpasswd.8.xml.out:184 -#: groupadd.8.xml.out:214 -#: groupdel.8.xml.out:102 -#: groupmod.8.xml.out:177 +#: chage.1.xml.out:214 +#: chpasswd.8.xml.out:174 +#: groupadd.8.xml.out:215 +#: groupdel.8.xml.out:103 +#: groupmod.8.xml.out:178 #: passwd.1.xml.out:287 -#: useradd.8.xml.out:504 -#: userdel.8.xml.out:136 -#: usermod.8.xml.out:341 +#: useradd.8.xml.out:551 +#: userdel.8.xml.out:129 +#: usermod.8.xml.out:346 msgid "--prefix" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:203 -#: chage.1.xml.out:208 -#: chpasswd.8.xml.out:184 -#: chpasswd.8.xml.out:189 -#: groupadd.8.xml.out:214 -#: groupadd.8.xml.out:219 -#: groupdel.8.xml.out:102 -#: groupdel.8.xml.out:106 -#: groupdel.8.xml.out:108 -#: groupmod.8.xml.out:177 -#: groupmod.8.xml.out:181 -#: groupmod.8.xml.out:183 +#: chage.1.xml.out:214 +#: chage.1.xml.out:219 +#: chpasswd.8.xml.out:174 +#: chpasswd.8.xml.out:179 +#: groupadd.8.xml.out:215 +#: groupadd.8.xml.out:220 +#: groupdel.8.xml.out:103 +#: groupdel.8.xml.out:107 +#: groupdel.8.xml.out:109 +#: groupmod.8.xml.out:178 +#: groupmod.8.xml.out:182 +#: groupmod.8.xml.out:184 #: passwd.1.xml.out:287 #: passwd.1.xml.out:292 -#: useradd.8.xml.out:504 -#: useradd.8.xml.out:509 -#: userdel.8.xml.out:136 -#: userdel.8.xml.out:140 -#: userdel.8.xml.out:142 -#: usermod.8.xml.out:341 +#: useradd.8.xml.out:551 +#: useradd.8.xml.out:556 +#: userdel.8.xml.out:129 +#: userdel.8.xml.out:133 +#: userdel.8.xml.out:135 #: usermod.8.xml.out:346 +#: usermod.8.xml.out:351 msgid "PREFIX_DIR" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:206 -#: chpasswd.8.xml.out:187 -#: groupadd.8.xml.out:217 -#: passwd.1.xml.out:290 -#: useradd.8.xml.out:507 -msgid "Apply changes to configuration files under the root filesystem found under the directory <_:replaceable-1/>. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. PAM authentication is using the host files. No SELINUX support." +#: chage.1.xml.out:217 +msgid "Apply changes to configuration files under the root filesystem found under the directory <_:replaceable-1/>. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. No SELINUX support." msgstr "" #. (itstool) path: term/option -#: chage.1.xml.out:218 -#: passwd.1.xml.out:333 +#: chage.1.xml.out:228 +#: passwd.1.xml.out:332 msgid "--warndays" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: chage.1.xml.out:218 -#: chage.1.xml.out:223 -#: passwd.1.xml.out:333 -#: passwd.1.xml.out:338 +#: chage.1.xml.out:228 +#: chage.1.xml.out:233 +#: passwd.1.xml.out:332 +#: passwd.1.xml.out:337 msgid "WARN_DAYS" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:221 +#: chage.1.xml.out:231 msgid "Set the number of days of warning before a password change is required. The <_:replaceable-1/> option is the number of days prior to the password expiring that a user will be warned their password is about to expire." msgstr "" #. (itstool) path: para/emphasis -#: chage.1.xml.out:235 -#: chfn.1.xml.out:163 -#: chsh.1.xml.out:112 +#: chage.1.xml.out:245 +#: chsh.1.xml.out:113 msgid "[ ]" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:230 +#: chage.1.xml.out:240 msgid "If none of the options are selected, <_:command-1/> operates in an interactive fashion, prompting the user with the current values for all of the fields. Enter the new value to change the field, or leave the line blank to use the current value. The current value is displayed between a pair of <_:emphasis-2/> marks." msgstr "" #. (itstool) path: refsect1/title -#: chage.1.xml.out:239 -#: chsh.1.xml.out:117 -#: groups.1.xml.out:65 -#: lastlog.8.xml.out:170 +#: chage.1.xml.out:249 +#: chsh.1.xml.out:118 +#: lastlog.8.xml.out:181 msgid "NOTE" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:240 +#: chage.1.xml.out:250 msgid "The <_:command-1/> program requires a shadow password file to be available." msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:244 +#: chage.1.xml.out:254 msgid "The chage program will report only the information from the shadow password file. This implies that configuration from other sources (e.g. LDAP or empty password hash field from the passwd file) that affect the user's login will not be shown in the chage output." msgstr "" @@ -1551,9 +1520,9 @@ msgstr "" #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command -#: chage.1.xml.out:253 -#: grpck.8.xml.out:294 -#: login.defs.5.xml.out:429 +#: chage.1.xml.out:263 +#: grpck.8.xml.out:295 +#: login.defs.5.xml.out:412 #: passwd.5.xml.out:185 #: pwck.8.xml.out:40 #: pwck.8.xml.out:47 @@ -1562,439 +1531,433 @@ msgstr "" #: pwck.8.xml.out:147 #: pwck.8.xml.out:159 #: pwck.8.xml.out:191 -#: pwck.8.xml.out:223 -#: pwck.8.xml.out:284 -#: pwconv.8.xml.out:197 -#: pwconv.8.xml.out:248 +#: pwck.8.xml.out:224 +#: pwck.8.xml.out:285 +#: pwconv.8.xml.out:198 +#: pwconv.8.xml.out:249 #: shadow.5.xml.out:274 msgid "pwck" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:250 +#: chage.1.xml.out:260 msgid "The <_:command-1/> program will also not report any inconsistency between the shadow and passwd files (e.g. missing x in the passwd file). The <_:command-2/> can be used to check for this kind of inconsistencies." msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:256 +#: chage.1.xml.out:266 msgid "The <_:command-1/> command is restricted to the root user, except for the <_:option-2/> option, which may be used by an unprivileged user to determine when their password or account is due to expire." msgstr "" #. (itstool) path: refsect1/title -#: chage.1.xml.out:264 -#: chfn.1.xml.out:170 -#: chgpasswd.8.xml.out:201 -#: chpasswd.8.xml.out:256 -#: chsh.1.xml.out:150 +#: chage.1.xml.out:274 +#: chfn.1.xml.out:173 +#: chgpasswd.8.xml.out:192 +#: chpasswd.8.xml.out:245 +#: chsh.1.xml.out:143 #: gpasswd.1.xml.out:243 -#: groupadd.8.xml.out:247 -#: groupdel.8.xml.out:133 -#: groupmod.8.xml.out:212 -#: grpck.8.xml.out:196 -#: lastlog.8.xml.out:182 -#: login.1.xml.out:270 +#: groupadd.8.xml.out:248 +#: groupdel.8.xml.out:134 +#: groupmod.8.xml.out:213 +#: grpck.8.xml.out:197 +#: lastlog.8.xml.out:193 +#: login.1.xml.out:262 #: newgrp.1.xml.out:85 #: newusers.8.xml.out:381 #: passwd.1.xml.out:394 -#: pwck.8.xml.out:240 -#: pwconv.8.xml.out:204 -#: sg.1.xml.out:74 +#: pwck.8.xml.out:241 +#: pwconv.8.xml.out:205 +#: sg.1.xml.out:110 #: su.1.xml.out:314 -#: useradd.8.xml.out:730 -#: userdel.8.xml.out:165 -#: usermod.8.xml.out:553 -#: vipw.8.xml.out:142 +#: useradd.8.xml.out:775 +#: userdel.8.xml.out:158 +#: usermod.8.xml.out:571 +#: vipw.8.xml.out:143 msgid "CONFIGURATION" msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename -#: chage.1.xml.out:267 -#: chfn.1.xml.out:68 -#: chfn.1.xml.out:173 -#: chfn.1.xml.out:187 -#: chgpasswd.8.xml.out:72 +#: chage.1.xml.out:277 +#: chfn.1.xml.out:69 +#: chfn.1.xml.out:176 +#: chfn.1.xml.out:190 +#: chgpasswd.8.xml.out:71 +#: chgpasswd.8.xml.out:150 #: chgpasswd.8.xml.out:159 #: chgpasswd.8.xml.out:168 -#: chgpasswd.8.xml.out:177 -#: chgpasswd.8.xml.out:204 -#: chgpasswd.8.xml.out:233 -#: chpasswd.8.xml.out:79 -#: chpasswd.8.xml.out:140 -#: chpasswd.8.xml.out:218 -#: chpasswd.8.xml.out:227 -#: chpasswd.8.xml.out:236 -#: chpasswd.8.xml.out:259 -#: chpasswd.8.xml.out:289 -#: chsh.1.xml.out:153 -#: chsh.1.xml.out:200 +#: chgpasswd.8.xml.out:195 +#: chgpasswd.8.xml.out:223 +#: chpasswd.8.xml.out:77 +#: chpasswd.8.xml.out:138 +#: chpasswd.8.xml.out:207 +#: chpasswd.8.xml.out:216 +#: chpasswd.8.xml.out:225 +#: chpasswd.8.xml.out:248 +#: chpasswd.8.xml.out:277 +#: chsh.1.xml.out:146 +#: chsh.1.xml.out:193 #: gpasswd.1.xml.out:246 #: groupadd.8.xml.out:129 -#: groupadd.8.xml.out:239 -#: groupadd.8.xml.out:250 -#: groupadd.8.xml.out:276 -#: groupdel.8.xml.out:136 +#: groupadd.8.xml.out:240 +#: groupadd.8.xml.out:251 +#: groupadd.8.xml.out:277 +#: groupdel.8.xml.out:137 #: groupmod.8.xml.out:109 -#: groupmod.8.xml.out:204 -#: groupmod.8.xml.out:215 -#: groupmod.8.xml.out:239 -#: grpck.8.xml.out:199 -#: lastlog.8.xml.out:185 -#: login.1.xml.out:273 -#: login.1.xml.out:365 +#: groupmod.8.xml.out:205 +#: groupmod.8.xml.out:216 +#: groupmod.8.xml.out:240 +#: grpck.8.xml.out:200 +#: lastlog.8.xml.out:196 +#: login.1.xml.out:265 +#: login.1.xml.out:357 #: login.access.5.xml.out:100 -#: login.defs.5.xml.out:118 -#: login.defs.5.xml.out:534 +#: login.defs.5.xml.out:117 +#: login.defs.5.xml.out:517 #: newgrp.1.xml.out:88 #: newusers.8.xml.out:340 #: newusers.8.xml.out:349 #: newusers.8.xml.out:357 #: newusers.8.xml.out:384 -#: newusers.8.xml.out:444 +#: newusers.8.xml.out:441 #: passwd.1.xml.out:397 -#: passwd.1.xml.out:427 -#: pwck.8.xml.out:243 +#: passwd.1.xml.out:426 +#: pwck.8.xml.out:244 #: pwconv.8.xml.out:148 -#: pwconv.8.xml.out:207 -#: pwconv.8.xml.out:215 -#: pwconv.8.xml.out:230 -#: sg.1.xml.out:77 +#: pwconv.8.xml.out:208 +#: pwconv.8.xml.out:216 +#: pwconv.8.xml.out:231 +#: sg.1.xml.out:113 #: su.1.xml.out:109 #: su.1.xml.out:219 #: su.1.xml.out:277 #: su.1.xml.out:317 #: su.1.xml.out:357 -#: useradd.8.xml.out:241 -#: useradd.8.xml.out:309 -#: useradd.8.xml.out:380 -#: useradd.8.xml.out:401 -#: useradd.8.xml.out:469 -#: useradd.8.xml.out:476 -#: useradd.8.xml.out:562 -#: useradd.8.xml.out:733 -#: useradd.8.xml.out:817 -#: userdel.8.xml.out:87 -#: userdel.8.xml.out:168 -#: userdel.8.xml.out:191 -#: userdel.8.xml.out:297 -#: usermod.8.xml.out:399 -#: usermod.8.xml.out:556 -#: usermod.8.xml.out:586 -#: vipw.8.xml.out:145 +#: useradd.8.xml.out:282 +#: useradd.8.xml.out:355 +#: useradd.8.xml.out:426 +#: useradd.8.xml.out:447 +#: useradd.8.xml.out:515 +#: useradd.8.xml.out:522 +#: useradd.8.xml.out:609 +#: useradd.8.xml.out:778 +#: useradd.8.xml.out:862 +#: userdel.8.xml.out:161 +#: userdel.8.xml.out:184 +#: userdel.8.xml.out:290 +#: usermod.8.xml.out:404 +#: usermod.8.xml.out:574 +#: usermod.8.xml.out:604 +#: vipw.8.xml.out:146 msgid "/etc/login.defs" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:265 -#: chfn.1.xml.out:171 -#: chgpasswd.8.xml.out:202 -#: chpasswd.8.xml.out:257 -#: chsh.1.xml.out:151 +#: chage.1.xml.out:275 +#: chfn.1.xml.out:174 +#: chgpasswd.8.xml.out:193 +#: chpasswd.8.xml.out:246 +#: chsh.1.xml.out:144 #: gpasswd.1.xml.out:244 -#: groupadd.8.xml.out:248 -#: groupdel.8.xml.out:134 -#: groupmod.8.xml.out:213 -#: grpck.8.xml.out:197 -#: lastlog.8.xml.out:183 -#: login.1.xml.out:271 +#: groupadd.8.xml.out:249 +#: groupdel.8.xml.out:135 +#: groupmod.8.xml.out:214 +#: grpck.8.xml.out:198 +#: lastlog.8.xml.out:194 +#: login.1.xml.out:263 #: newgrp.1.xml.out:86 #: newusers.8.xml.out:382 #: passwd.1.xml.out:395 -#: pwck.8.xml.out:241 -#: sg.1.xml.out:75 +#: pwck.8.xml.out:242 +#: sg.1.xml.out:111 #: su.1.xml.out:315 -#: useradd.8.xml.out:731 -#: userdel.8.xml.out:166 -#: usermod.8.xml.out:554 -#: vipw.8.xml.out:143 +#: useradd.8.xml.out:776 +#: userdel.8.xml.out:159 +#: usermod.8.xml.out:572 +#: vipw.8.xml.out:144 msgid "The following configuration variables in <_:filename-1/> change the behavior of this tool:" msgstr "" #. (itstool) path: refsect1/title -#: chage.1.xml.out:276 -#: chfn.1.xml.out:184 -#: chgpasswd.8.xml.out:218 -#: chpasswd.8.xml.out:274 -#: chsh.1.xml.out:163 +#: chage.1.xml.out:286 +#: chfn.1.xml.out:187 +#: chgpasswd.8.xml.out:208 +#: chpasswd.8.xml.out:262 +#: chsh.1.xml.out:156 #: faillog.5.xml.out:72 -#: faillog.8.xml.out:220 -#: gpasswd.1.xml.out:258 -#: groupadd.8.xml.out:261 -#: groupdel.8.xml.out:145 -#: groupmod.8.xml.out:224 -#: groups.1.xml.out:77 -#: grpck.8.xml.out:208 +#: faillog.8.xml.out:221 +#: gpasswd.1.xml.out:257 +#: groupadd.8.xml.out:262 +#: groupdel.8.xml.out:146 +#: groupmod.8.xml.out:225 +#: grpck.8.xml.out:209 #: gshadow.5.xml.out:132 -#: lastlog.8.xml.out:194 +#: lastlog.8.xml.out:205 #: limits.5.xml.out:172 -#: login.1.xml.out:314 +#: login.1.xml.out:306 #: login.access.5.xml.out:97 -#: logoutd.8.xml.out:65 #: newgrp.1.xml.out:97 -#: newusers.8.xml.out:417 -#: passwd.1.xml.out:412 +#: newusers.8.xml.out:414 +#: passwd.1.xml.out:411 #: passwd.5.xml.out:139 #: porttime.5.xml.out:106 -#: pwck.8.xml.out:258 -#: pwconv.8.xml.out:227 +#: pwck.8.xml.out:259 +#: pwconv.8.xml.out:228 #: shadow.3.xml.out:202 #: shadow.5.xml.out:231 -#: sg.1.xml.out:86 +#: sg.1.xml.out:122 #: su.1.xml.out:342 #: suauth.5.xml.out:169 -#: useradd.8.xml.out:760 -#: userdel.8.xml.out:182 -#: usermod.8.xml.out:571 -#: vipw.8.xml.out:172 +#: useradd.8.xml.out:805 +#: userdel.8.xml.out:175 +#: usermod.8.xml.out:589 +#: vipw.8.xml.out:173 msgid "FILES" msgstr "" #. (itstool) path: term/filename #. (itstool) path: para/filename -#: chage.1.xml.out:280 -#: chfn.1.xml.out:193 -#: chpasswd.8.xml.out:277 -#: chsh.1.xml.out:166 -#: groupmod.8.xml.out:245 -#: grpck.8.xml.out:223 +#: chage.1.xml.out:290 +#: chfn.1.xml.out:64 +#: chfn.1.xml.out:196 +#: chpasswd.8.xml.out:265 +#: chsh.1.xml.out:159 +#: groupmod.8.xml.out:246 +#: grpck.8.xml.out:224 #: lastlog.8.xml.out:63 #: login.1.xml.out:145 -#: login.1.xml.out:329 +#: login.1.xml.out:321 #: newgrp.1.xml.out:65 #: newgrp.1.xml.out:70 #: newgrp.1.xml.out:100 -#: newusers.8.xml.out:420 -#: passwd.1.xml.out:415 +#: newusers.8.xml.out:417 +#: passwd.1.xml.out:414 #: passwd.5.xml.out:47 #: passwd.5.xml.out:89 #: passwd.5.xml.out:142 #: pwck.8.xml.out:73 #: pwck.8.xml.out:145 -#: pwck.8.xml.out:212 -#: pwck.8.xml.out:224 -#: pwck.8.xml.out:267 +#: pwck.8.xml.out:213 +#: pwck.8.xml.out:225 +#: pwck.8.xml.out:268 #: pwconv.8.xml.out:127 #: shadow.5.xml.out:234 -#: sg.1.xml.out:89 +#: sg.1.xml.out:125 #: su.1.xml.out:185 #: su.1.xml.out:197 #: su.1.xml.out:345 -#: useradd.8.xml.out:526 -#: useradd.8.xml.out:763 -#: userdel.8.xml.out:197 +#: useradd.8.xml.out:573 +#: useradd.8.xml.out:808 +#: userdel.8.xml.out:190 #: usermod.8.xml.out:103 -#: usermod.8.xml.out:305 -#: usermod.8.xml.out:362 -#: usermod.8.xml.out:592 +#: usermod.8.xml.out:309 +#: usermod.8.xml.out:367 +#: usermod.8.xml.out:610 #: vipw.8.xml.out:68 -#: vipw.8.xml.out:187 +#: vipw.8.xml.out:188 msgid "/etc/passwd" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:283 -#: chfn.1.xml.out:195 -#: chpasswd.8.xml.out:279 -#: chsh.1.xml.out:168 -#: groupmod.8.xml.out:247 -#: grpck.8.xml.out:225 -#: login.1.xml.out:331 +#: chage.1.xml.out:293 +#: chfn.1.xml.out:198 +#: chpasswd.8.xml.out:267 +#: chsh.1.xml.out:161 +#: groupmod.8.xml.out:248 +#: grpck.8.xml.out:226 +#: login.1.xml.out:323 #: newgrp.1.xml.out:102 -#: newusers.8.xml.out:422 -#: passwd.1.xml.out:417 +#: newusers.8.xml.out:419 +#: passwd.1.xml.out:416 #: passwd.5.xml.out:144 -#: pwck.8.xml.out:269 +#: pwck.8.xml.out:270 #: shadow.5.xml.out:236 -#: sg.1.xml.out:91 +#: sg.1.xml.out:127 #: su.1.xml.out:347 -#: useradd.8.xml.out:765 -#: userdel.8.xml.out:199 -#: vipw.8.xml.out:189 +#: useradd.8.xml.out:810 +#: userdel.8.xml.out:192 +#: vipw.8.xml.out:190 msgid "User account information." msgstr "" #. (itstool) path: term/filename #. (itstool) path: para/filename -#: chage.1.xml.out:288 -#: chpasswd.8.xml.out:283 -#: login.1.xml.out:335 +#: chage.1.xml.out:298 +#: chpasswd.8.xml.out:271 +#: login.1.xml.out:327 #: newgrp.1.xml.out:68 #: newgrp.1.xml.out:106 #: newusers.8.xml.out:297 -#: newusers.8.xml.out:426 -#: passwd.1.xml.out:421 +#: newusers.8.xml.out:423 +#: passwd.1.xml.out:420 #: passwd.5.xml.out:82 #: passwd.5.xml.out:148 #: pwck.8.xml.out:73 #: pwck.8.xml.out:107 -#: pwck.8.xml.out:213 -#: pwck.8.xml.out:225 -#: pwck.8.xml.out:273 +#: pwck.8.xml.out:214 +#: pwck.8.xml.out:226 +#: pwck.8.xml.out:274 #: pwconv.8.xml.out:128 #: pwconv.8.xml.out:149 #: shadow.3.xml.out:97 #: shadow.3.xml.out:173 #: shadow.3.xml.out:205 -#: shadow.5.xml.out:78 +#: shadow.5.xml.out:77 #: shadow.5.xml.out:240 -#: sg.1.xml.out:95 +#: sg.1.xml.out:131 #: su.1.xml.out:351 -#: useradd.8.xml.out:441 -#: useradd.8.xml.out:466 -#: useradd.8.xml.out:769 -#: userdel.8.xml.out:203 +#: useradd.8.xml.out:487 +#: useradd.8.xml.out:512 +#: useradd.8.xml.out:814 +#: userdel.8.xml.out:196 #: usermod.8.xml.out:144 #: usermod.8.xml.out:145 -#: usermod.8.xml.out:166 -#: usermod.8.xml.out:167 -#: usermod.8.xml.out:306 -#: usermod.8.xml.out:598 +#: usermod.8.xml.out:170 +#: usermod.8.xml.out:171 +#: usermod.8.xml.out:310 +#: usermod.8.xml.out:616 #: vipw.8.xml.out:71 -#: vipw.8.xml.out:193 +#: vipw.8.xml.out:194 msgid "/etc/shadow" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:291 -#: chpasswd.8.xml.out:285 -#: login.1.xml.out:337 +#: chage.1.xml.out:301 +#: chpasswd.8.xml.out:273 +#: login.1.xml.out:329 #: newgrp.1.xml.out:108 -#: newusers.8.xml.out:428 -#: passwd.1.xml.out:423 -#: pwck.8.xml.out:275 +#: newusers.8.xml.out:425 +#: passwd.1.xml.out:422 +#: pwck.8.xml.out:276 #: shadow.3.xml.out:207 #: shadow.5.xml.out:242 -#: sg.1.xml.out:97 +#: sg.1.xml.out:133 #: su.1.xml.out:353 -#: useradd.8.xml.out:771 -#: userdel.8.xml.out:205 -#: vipw.8.xml.out:195 +#: useradd.8.xml.out:816 +#: userdel.8.xml.out:198 +#: vipw.8.xml.out:196 msgid "Secure user account information." msgstr "" #. (itstool) path: refsect1/title -#: chage.1.xml.out:298 -#: groupadd.8.xml.out:298 -#: groupdel.8.xml.out:163 -#: groupmod.8.xml.out:254 -#: grpck.8.xml.out:232 -#: passwd.1.xml.out:442 -#: pwck.8.xml.out:282 +#: chage.1.xml.out:308 +#: groupadd.8.xml.out:299 +#: groupdel.8.xml.out:164 +#: groupmod.8.xml.out:255 +#: grpck.8.xml.out:233 +#: passwd.1.xml.out:441 +#: pwck.8.xml.out:283 #: su.1.xml.out:366 -#: useradd.8.xml.out:826 -#: userdel.8.xml.out:230 +#: useradd.8.xml.out:871 +#: userdel.8.xml.out:223 msgid "EXIT VALUES" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:305 -#: groupadd.8.xml.out:305 -#: groupdel.8.xml.out:170 -#: grpck.8.xml.out:239 -#: passwd.1.xml.out:449 -#: pwck.8.xml.out:289 -#: useradd.8.xml.out:833 -#: userdel.8.xml.out:237 +#: chage.1.xml.out:315 +#: groupadd.8.xml.out:306 +#: groupdel.8.xml.out:171 +#: grpck.8.xml.out:240 +#: passwd.1.xml.out:448 +#: pwck.8.xml.out:290 +#: useradd.8.xml.out:878 +#: userdel.8.xml.out:230 msgid "success" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:311 -#: passwd.1.xml.out:455 +#: chage.1.xml.out:321 +#: passwd.1.xml.out:454 msgid "permission denied" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: citerefentry/manvolnum -#: chage.1.xml.out:315 -#: groupadd.8.xml.out:309 -#: groupdel.8.xml.out:174 -#: groupmod.8.xml.out:265 -#: groups.1.xml.out:95 -#: groups.1.xml.out:98 -#: groups.1.xml.out:101 -#: grpck.8.xml.out:249 +#: chage.1.xml.out:325 +#: groupadd.8.xml.out:310 +#: groupdel.8.xml.out:175 +#: groupmod.8.xml.out:266 +#: grpck.8.xml.out:250 #: limits.5.xml.out:90 #: limits.5.xml.out:101 #: limits.5.xml.out:188 #: limits.5.xml.out:191 -#: passwd.1.xml.out:459 -#: pwck.8.xml.out:299 -#: useradd.8.xml.out:843 -#: userdel.8.xml.out:247 +#: passwd.1.xml.out:458 +#: pwck.8.xml.out:300 +#: useradd.8.xml.out:888 +#: userdel.8.xml.out:240 msgid "2" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:317 -#: groupadd.8.xml.out:311 -#: groupdel.8.xml.out:176 -#: grpck.8.xml.out:245 -#: pwck.8.xml.out:295 -#: useradd.8.xml.out:845 -#: userdel.8.xml.out:249 +#: chage.1.xml.out:327 +#: groupadd.8.xml.out:312 +#: groupdel.8.xml.out:177 +#: grpck.8.xml.out:246 +#: pwck.8.xml.out:296 +#: useradd.8.xml.out:890 +#: userdel.8.xml.out:242 msgid "invalid command syntax" msgstr "" #. (itstool) path: term/replaceable -#: chage.1.xml.out:321 +#: chage.1.xml.out:331 msgid "15" msgstr "" #. (itstool) path: listitem/para -#: chage.1.xml.out:323 +#: chage.1.xml.out:333 msgid "can't find the shadow password file" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:299 -#: groupadd.8.xml.out:299 -#: groupdel.8.xml.out:164 -#: groupmod.8.xml.out:255 -#: grpck.8.xml.out:233 -#: passwd.1.xml.out:443 -#: pwck.8.xml.out:283 -#: useradd.8.xml.out:827 -#: userdel.8.xml.out:231 +#: chage.1.xml.out:309 +#: groupadd.8.xml.out:300 +#: groupdel.8.xml.out:165 +#: groupmod.8.xml.out:256 +#: grpck.8.xml.out:234 +#: passwd.1.xml.out:442 +#: pwck.8.xml.out:284 +#: useradd.8.xml.out:872 +#: userdel.8.xml.out:224 msgid "The <_:command-1/> command exits with the following values: <_:variablelist-2/>" msgstr "" #. (itstool) path: refsect1/title -#: chage.1.xml.out:331 -#: chfn.1.xml.out:202 -#: chgpasswd.8.xml.out:242 -#: chpasswd.8.xml.out:304 -#: chsh.1.xml.out:209 +#: chage.1.xml.out:341 +#: chfn.1.xml.out:205 +#: chgpasswd.8.xml.out:232 +#: chpasswd.8.xml.out:292 +#: chsh.1.xml.out:202 #: faillog.5.xml.out:84 -#: faillog.8.xml.out:232 -#: gpasswd.1.xml.out:276 -#: groupadd.8.xml.out:343 -#: groupdel.8.xml.out:202 -#: groupmod.8.xml.out:323 -#: groups.1.xml.out:89 -#: grpck.8.xml.out:277 +#: faillog.8.xml.out:233 +#: gpasswd.1.xml.out:275 +#: groupadd.8.xml.out:344 +#: groupdel.8.xml.out:203 +#: groupmod.8.xml.out:324 +#: grpck.8.xml.out:278 #: gshadow.5.xml.out:150 #: limits.5.xml.out:182 -#: login.1.xml.out:374 +#: login.1.xml.out:366 #: login.access.5.xml.out:109 -#: login.defs.5.xml.out:546 +#: login.defs.5.xml.out:529 #: newgrp.1.xml.out:127 -#: newusers.8.xml.out:471 +#: newusers.8.xml.out:468 #: nologin.8.xml.out:57 -#: passwd.1.xml.out:493 +#: passwd.1.xml.out:498 #: passwd.5.xml.out:167 #: porttime.5.xml.out:118 -#: pwck.8.xml.out:333 -#: pwconv.8.xml.out:239 +#: pwck.8.xml.out:334 +#: pwconv.8.xml.out:240 #: shadow.3.xml.out:214 #: shadow.5.xml.out:259 -#: sg.1.xml.out:116 +#: sg.1.xml.out:152 #: su.1.xml.out:413 #: suauth.5.xml.out:198 -#: useradd.8.xml.out:895 -#: userdel.8.xml.out:308 -#: usermod.8.xml.out:619 -#: vipw.8.xml.out:202 +#: useradd.8.xml.out:946 +#: userdel.8.xml.out:301 +#: usermod.8.xml.out:637 +#: vipw.8.xml.out:203 msgid "SEE ALSO" msgstr "" @@ -2006,137 +1969,134 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: para/replaceable -#. (itstool) path: para/emphasis -#: chage.1.xml.out:334 -#: chfn.1.xml.out:211 -#: chpasswd.8.xml.out:307 -#: chsh.1.xml.out:218 -#: groupadd.8.xml.out:351 -#: groupdel.8.xml.out:211 -#: groupmod.8.xml.out:332 -#: grpck.8.xml.out:291 -#: lastlog.8.xml.out:176 +#: chage.1.xml.out:344 +#: chfn.1.xml.out:214 +#: chpasswd.8.xml.out:295 +#: chsh.1.xml.out:211 +#: groupadd.8.xml.out:352 +#: groupdel.8.xml.out:212 +#: groupmod.8.xml.out:333 +#: grpck.8.xml.out:292 +#: lastlog.8.xml.out:187 #: login.1.xml.out:128 -#: login.1.xml.out:380 -#: login.1.xml.out:395 -#: login.defs.5.xml.out:415 +#: login.1.xml.out:372 +#: login.1.xml.out:387 +#: login.defs.5.xml.out:399 +#: login.defs.5.xml.out:518 #: login.defs.5.xml.out:535 -#: login.defs.5.xml.out:552 -#: login.defs.5.xml.out:558 -#: newusers.8.xml.out:81 -#: newusers.8.xml.out:477 -#: passwd.1.xml.out:42 -#: passwd.1.xml.out:49 -#: passwd.1.xml.out:55 -#: passwd.1.xml.out:68 +#: login.defs.5.xml.out:541 +#: newusers.8.xml.out:80 +#: newusers.8.xml.out:474 +#: passwd.1.xml.out:41 +#: passwd.1.xml.out:48 +#: passwd.1.xml.out:54 +#: passwd.1.xml.out:67 #: passwd.1.xml.out:71 #: passwd.1.xml.out:88 #: passwd.1.xml.out:100 #: passwd.1.xml.out:148 #: passwd.1.xml.out:388 -#: passwd.1.xml.out:435 -#: passwd.1.xml.out:444 -#: passwd.1.xml.out:473 -#: passwd.1.xml.out:479 -#: passwd.1.xml.out:502 +#: passwd.1.xml.out:434 +#: passwd.1.xml.out:443 +#: passwd.1.xml.out:472 +#: passwd.1.xml.out:478 +#: passwd.1.xml.out:507 #: passwd.5.xml.out:33 #: passwd.5.xml.out:40 #: passwd.5.xml.out:182 -#: pwck.8.xml.out:228 -#: pwck.8.xml.out:342 +#: pwck.8.xml.out:229 +#: pwck.8.xml.out:343 #: pwconv.8.xml.out:84 #: pwconv.8.xml.out:99 #: pwconv.8.xml.out:99 #: shadow.5.xml.out:268 #: shadow.5.xml.out:271 -#: useradd.8.xml.out:904 -#: userdel.8.xml.out:316 -#: usermod.8.xml.out:628 -#: vipw.8.xml.out:217 +#: useradd.8.xml.out:955 +#: userdel.8.xml.out:309 +#: usermod.8.xml.out:646 +#: vipw.8.xml.out:218 msgid "passwd" msgstr "" #. (itstool) path: citerefentry/manvolnum #. (itstool) path: refmeta/manvolnum #. (itstool) path: term/replaceable -#: chage.1.xml.out:334 -#: chage.1.xml.out:337 -#: chfn.1.xml.out:208 +#: chage.1.xml.out:344 +#: chage.1.xml.out:347 #: chfn.1.xml.out:211 -#: chgpasswd.8.xml.out:251 -#: chpasswd.8.xml.out:314 -#: chsh.1.xml.out:215 -#: chsh.1.xml.out:218 +#: chfn.1.xml.out:214 +#: chgpasswd.8.xml.out:241 +#: chpasswd.8.xml.out:302 +#: chsh.1.xml.out:208 +#: chsh.1.xml.out:211 #: faillog.5.xml.out:34 -#: faillog.8.xml.out:238 -#: gpasswd.1.xml.out:294 -#: gpasswd.1.xml.out:297 -#: groupadd.8.xml.out:363 -#: groupmod.8.xml.out:344 -#: grpck.8.xml.out:267 -#: grpck.8.xml.out:280 -#: grpck.8.xml.out:287 -#: grpck.8.xml.out:291 -#: grpck.8.xml.out:297 +#: faillog.8.xml.out:239 +#: gpasswd.1.xml.out:293 +#: gpasswd.1.xml.out:296 +#: groupadd.8.xml.out:364 +#: groupmod.8.xml.out:345 +#: grpck.8.xml.out:268 +#: grpck.8.xml.out:281 +#: grpck.8.xml.out:288 +#: grpck.8.xml.out:292 +#: grpck.8.xml.out:298 #: gshadow.5.xml.out:23 #: gshadow.5.xml.out:153 #: gshadow.5.xml.out:156 #: limits.5.xml.out:36 -#: login.1.xml.out:389 -#: login.1.xml.out:392 -#: login.1.xml.out:395 -#: login.1.xml.out:398 +#: login.1.xml.out:381 +#: login.1.xml.out:384 +#: login.1.xml.out:387 +#: login.1.xml.out:390 #: login.access.5.xml.out:35 -#: login.defs.5.xml.out:105 -#: login.defs.5.xml.out:558 -#: login.defs.5.xml.out:561 +#: login.defs.5.xml.out:104 +#: login.defs.5.xml.out:541 +#: login.defs.5.xml.out:544 #: newgrp.1.xml.out:145 #: newgrp.1.xml.out:148 -#: newusers.8.xml.out:81 -#: newusers.8.xml.out:474 +#: newusers.8.xml.out:80 +#: newusers.8.xml.out:471 +#: newusers.8.xml.out:478 #: newusers.8.xml.out:481 -#: newusers.8.xml.out:484 #: nologin.8.xml.out:48 #: nologin.8.xml.out:63 -#: passwd.1.xml.out:477 -#: passwd.1.xml.out:502 -#: passwd.1.xml.out:505 -#: passwd.1.xml.out:509 +#: passwd.1.xml.out:476 +#: passwd.1.xml.out:507 +#: passwd.1.xml.out:510 +#: passwd.1.xml.out:514 #: passwd.5.xml.out:34 #: passwd.5.xml.out:80 #: passwd.5.xml.out:194 #: porttime.5.xml.out:34 -#: pwck.8.xml.out:317 -#: pwck.8.xml.out:336 -#: pwck.8.xml.out:342 -#: pwck.8.xml.out:345 -#: pwconv.8.xml.out:245 +#: pwck.8.xml.out:318 +#: pwck.8.xml.out:337 +#: pwck.8.xml.out:343 +#: pwck.8.xml.out:346 +#: pwconv.8.xml.out:246 #: shadow.3.xml.out:220 #: shadow.5.xml.out:34 #: shadow.5.xml.out:271 -#: sg.1.xml.out:134 -#: sg.1.xml.out:137 +#: sg.1.xml.out:170 +#: sg.1.xml.out:173 #: su.1.xml.out:418 #: suauth.5.xml.out:34 #: suauth.5.xml.out:91 -#: useradd.8.xml.out:205 -#: useradd.8.xml.out:648 -#: useradd.8.xml.out:919 -#: useradd.8.xml.out:926 -#: useradd.8.xml.out:929 -#: userdel.8.xml.out:319 -#: userdel.8.xml.out:335 -#: userdel.8.xml.out:338 -#: usermod.8.xml.out:162 -#: usermod.8.xml.out:646 -#: usermod.8.xml.out:650 -#: usermod.8.xml.out:653 -#: vipw.8.xml.out:208 -#: vipw.8.xml.out:211 -#: vipw.8.xml.out:214 -#: vipw.8.xml.out:217 -#: vipw.8.xml.out:220 -#: vipw.8.xml.out:223 +#: useradd.8.xml.out:238 +#: useradd.8.xml.out:970 +#: useradd.8.xml.out:977 +#: useradd.8.xml.out:980 +#: userdel.8.xml.out:312 +#: userdel.8.xml.out:328 +#: userdel.8.xml.out:331 +#: usermod.8.xml.out:664 +#: usermod.8.xml.out:668 +#: usermod.8.xml.out:671 +#: vipw.8.xml.out:209 +#: vipw.8.xml.out:212 +#: vipw.8.xml.out:215 +#: vipw.8.xml.out:218 +#: vipw.8.xml.out:221 +#: vipw.8.xml.out:224 msgid "5" msgstr "" @@ -2144,22 +2104,22 @@ msgstr "" #. (itstool) path: arg/replaceable #. (itstool) path: phrase/emphasis #. (itstool) path: para/replaceable -#. (itstool) path: para/emphasis +#. (itstool) path: para/filename #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname -#. (itstool) path: para/filename -#: chage.1.xml.out:337 +#. (itstool) path: para/emphasis +#: chage.1.xml.out:347 #: grpck.8.xml.out:51 -#: grpck.8.xml.out:190 -#: grpck.8.xml.out:297 -#: login.defs.5.xml.out:561 -#: passwd.1.xml.out:505 +#: grpck.8.xml.out:191 +#: grpck.8.xml.out:298 +#: login.defs.5.xml.out:544 +#: passwd.1.xml.out:510 #: passwd.5.xml.out:79 #: passwd.5.xml.out:194 -#: pwck.8.xml.out:229 -#: pwck.8.xml.out:233 -#: pwck.8.xml.out:345 -#: pwconv.8.xml.out:84 +#: pwck.8.xml.out:230 +#: pwck.8.xml.out:234 +#: pwck.8.xml.out:346 +#: pwconv.8.xml.out:83 #: pwconv.8.xml.out:85 #: pwconv.8.xml.out:100 #: pwconv.8.xml.out:101 @@ -2170,16 +2130,14 @@ msgstr "" #: shadow.5.xml.out:33 #: shadow.5.xml.out:40 #: shadow.5.xml.out:47 -#: useradd.8.xml.out:205 -#: useradd.8.xml.out:648 -#: usermod.8.xml.out:162 -#: vipw.8.xml.out:223 +#: useradd.8.xml.out:238 +#: vipw.8.xml.out:224 msgid "shadow" msgstr "" #. (itstool) path: refsect1/para -#: chage.1.xml.out:332 -#: faillog.8.xml.out:233 +#: chage.1.xml.out:342 +#: faillog.8.xml.out:234 #: nologin.8.xml.out:58 #: shadow.3.xml.out:215 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>." @@ -2195,229 +2153,243 @@ msgstr "" #: chfn.1.xml.out:43 #: chfn.1.xml.out:49 #: chfn.1.xml.out:62 -#: chfn.1.xml.out:89 -#: chfn.1.xml.out:159 -#: chfn.1.xml.out:164 -#: chsh.1.xml.out:212 -#: groupadd.8.xml.out:345 -#: groupdel.8.xml.out:205 -#: groupmod.8.xml.out:326 -#: login.defs.5.xml.out:243 -#: useradd.8.xml.out:898 -#: userdel.8.xml.out:310 +#: chfn.1.xml.out:85 +#: chfn.1.xml.out:93 +#: chfn.1.xml.out:163 +#: chsh.1.xml.out:205 +#: groupadd.8.xml.out:346 +#: groupdel.8.xml.out:206 +#: groupmod.8.xml.out:327 +#: login.defs.5.xml.out:241 +#: useradd.8.xml.out:949 +#: userdel.8.xml.out:303 #: usermod.8.xml.out:105 -#: usermod.8.xml.out:622 +#: usermod.8.xml.out:640 msgid "chfn" msgstr "" #. (itstool) path: refnamediv/refpurpose #: chfn.1.xml.out:44 -msgid "change real user name and information" +msgid "change full user name and information" msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: chfn.1.xml.out:65 +#: chfn.1.xml.out:66 #: passwd.5.xml.out:117 msgid "finger" msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#: chfn.1.xml.out:71 -#: chfn.1.xml.out:110 +#: chfn.1.xml.out:72 +#: chfn.1.xml.out:114 #: groupadd.8.xml.out:106 #: groupadd.8.xml.out:145 -#: groupadd.8.xml.out:323 +#: groupadd.8.xml.out:324 #: groupmod.8.xml.out:93 #: groupmod.8.xml.out:132 -#: useradd.8.xml.out:407 -#: useradd.8.xml.out:538 -#: useradd.8.xml.out:857 -#: usermod.8.xml.out:271 -#: usermod.8.xml.out:377 +#: useradd.8.xml.out:453 +#: useradd.8.xml.out:585 +#: useradd.8.xml.out:902 +#: usermod.8.xml.out:275 +#: usermod.8.xml.out:382 msgid "-o" msgstr "" #. (itstool) path: refsect1/para #: chfn.1.xml.out:61 -msgid "The <_:command-1/> command changes user fullname, office room number, office phone number, and home phone number information for a user's account. This information is typically printed by <_:citerefentry-2/> and similar programs. A normal user may only change the fields for her own account, subject to the restrictions in <_:filename-3/>. (The default configuration is to prevent users from changing their fullname.) The superuser may change any field for any account. Additionally, only the superuser may use the <_:option-4/> option to change the undefined portions of the GECOS field." +msgid "The <_:command-1/> command changes the user's full name, office room number, office phone number, and home phone number information for an account in the respective fields of <_:filename-2/>. This information is typically printed by <_:citerefentry-3/> and similar programs. A normal user may only change the fields for her own account, subject to the restrictions in <_:filename-4/>. (The default configuration is to prevent users from changing their fullname.) The superuser may change any field for any account. Additionally, only the superuser may use the <_:option-5/> option to change the undefined portions of the GECOS field." msgstr "" #. (itstool) path: para/emphasis -#: chfn.1.xml.out:77 -#: chfn.1.xml.out:80 +#: chfn.1.xml.out:78 +#: chfn.1.xml.out:81 msgid "other" msgstr "" #. (itstool) path: refsect1/para -#: chfn.1.xml.out:75 +#: chfn.1.xml.out:76 msgid "These fields must not contain any colons. Except for the <_:emphasis-1/> field, they should not contain any comma or equal sign. It is also recommended to avoid non-US-ASCII characters, but this is only enforced for the phone numbers. The <_:emphasis-2/> field is used to store accounting information used by other applications." msgstr "" +#. (itstool) path: refsect1/para +#: chfn.1.xml.out:84 +msgid "If <_:replaceable-1/> is not specified, <_:command-2/> acts on the current user, and prompts for the current user's password." +msgstr "" + #. (itstool) path: term/option -#. (itstool) path: para/option #. (itstool) path: cmdsynopsis/arg -#: chfn.1.xml.out:94 +#. (itstool) path: para/option +#: chfn.1.xml.out:98 #: groupadd.8.xml.out:88 #: groupdel.8.xml.out:72 #: login.1.xml.out:90 #: login.1.xml.out:190 -#: login.1.xml.out:229 -#: useradd.8.xml.out:196 -#: useradd.8.xml.out:642 +#: login.1.xml.out:221 +#: useradd.8.xml.out:228 +#: useradd.8.xml.out:689 #: userdel.8.xml.out:76 -#: userdel.8.xml.out:287 -#: userdel.8.xml.out:302 +#: userdel.8.xml.out:280 +#: userdel.8.xml.out:295 #: usermod.8.xml.out:152 msgid "-f" msgstr "" #. (itstool) path: term/option -#: chfn.1.xml.out:94 +#: chfn.1.xml.out:98 msgid "--full-name" msgstr "" #. (itstool) path: term/replaceable -#: chfn.1.xml.out:94 +#: chfn.1.xml.out:98 msgid "FULL_NAME" msgstr "" #. (itstool) path: listitem/para -#: chfn.1.xml.out:97 +#: chfn.1.xml.out:101 msgid "Change the user's full name." msgstr "" #. (itstool) path: term/option -#: chfn.1.xml.out:102 +#: chfn.1.xml.out:106 msgid "--home-phone" msgstr "" #. (itstool) path: term/replaceable -#: chfn.1.xml.out:102 +#: chfn.1.xml.out:106 msgid "HOME_PHONE" msgstr "" #. (itstool) path: listitem/para -#: chfn.1.xml.out:105 +#: chfn.1.xml.out:109 msgid "Change the user's home phone number." msgstr "" #. (itstool) path: term/option -#: chfn.1.xml.out:110 +#: chfn.1.xml.out:114 msgid "--other" msgstr "" #. (itstool) path: term/replaceable -#: chfn.1.xml.out:110 +#: chfn.1.xml.out:114 msgid "OTHER" msgstr "" #. (itstool) path: listitem/para -#: chfn.1.xml.out:113 +#: chfn.1.xml.out:117 msgid "Change the user's other GECOS information. This field is used to store accounting information used by other applications, and can be changed only by a superuser." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chfn.1.xml.out:122 +#: chfn.1.xml.out:126 #: faillog.8.xml.out:89 #: faillog.8.xml.out:144 -#: faillog.8.xml.out:186 -#: faillog.8.xml.out:203 +#: faillog.8.xml.out:187 +#: faillog.8.xml.out:204 #: gpasswd.1.xml.out:175 #: groupadd.8.xml.out:112 #: groupadd.8.xml.out:185 #: grpck.8.xml.out:124 #: grpck.8.xml.out:138 -#: login.1.xml.out:220 -#: login.1.xml.out:229 +#: login.1.xml.out:221 #: newusers.8.xml.out:289 -#: passwd.1.xml.out:264 +#: passwd.1.xml.out:263 #: pwck.8.xml.out:155 #: pwck.8.xml.out:188 -#: useradd.8.xml.out:224 -#: useradd.8.xml.out:458 -#: useradd.8.xml.out:544 -#: userdel.8.xml.out:106 -#: usermod.8.xml.out:317 +#: useradd.8.xml.out:265 +#: useradd.8.xml.out:504 +#: useradd.8.xml.out:591 +#: userdel.8.xml.out:98 +#: usermod.8.xml.out:321 msgid "-r" msgstr "" #. (itstool) path: term/option -#: chfn.1.xml.out:122 +#: chfn.1.xml.out:126 msgid "--room" msgstr "" #. (itstool) path: term/replaceable -#: chfn.1.xml.out:122 +#: chfn.1.xml.out:126 msgid "ROOM_NUMBER" msgstr "" #. (itstool) path: listitem/para -#: chfn.1.xml.out:125 +#: chfn.1.xml.out:129 msgid "Change the user's room number." msgstr "" +#. (itstool) path: listitem/para +#: chfn.1.xml.out:137 +msgid "Apply changes in the <_:replaceable-1/> directory and use the configuration files from the <_:replaceable-2/> directory. No SELINUX support." +msgstr "" + #. (itstool) path: term/option #. (itstool) path: para/option -#: chfn.1.xml.out:143 +#: chfn.1.xml.out:147 #: faillog.8.xml.out:80 -#: faillog.8.xml.out:180 -#: faillog.8.xml.out:214 +#: faillog.8.xml.out:181 +#: faillog.8.xml.out:215 #: lastlog.8.xml.out:90 -#: lastlog.8.xml.out:122 -#: lastlog.8.xml.out:139 -#: passwd.1.xml.out:320 -#: useradd.8.xml.out:416 -#: useradd.8.xml.out:533 -#: usermod.8.xml.out:279 -#: usermod.8.xml.out:369 -#: vipw.8.xml.out:133 +#: lastlog.8.xml.out:123 +#: lastlog.8.xml.out:140 +#: passwd.1.xml.out:319 +#: useradd.8.xml.out:462 +#: useradd.8.xml.out:580 +#: usermod.8.xml.out:283 +#: usermod.8.xml.out:374 +#: vipw.8.xml.out:134 msgid "-u" msgstr "" #. (itstool) path: term/option -#: chfn.1.xml.out:151 -#: passwd.1.xml.out:333 -#: usermod.8.xml.out:463 +#: chfn.1.xml.out:155 +#: passwd.1.xml.out:332 +#: usermod.8.xml.out:468 msgid "-w" msgstr "" #. (itstool) path: term/option -#: chfn.1.xml.out:151 +#: chfn.1.xml.out:155 msgid "--work-phone" msgstr "" #. (itstool) path: term/replaceable -#: chfn.1.xml.out:151 +#: chfn.1.xml.out:155 msgid "WORK_PHONE" msgstr "" #. (itstool) path: listitem/para -#: chfn.1.xml.out:154 +#: chfn.1.xml.out:158 msgid "Change the user's office phone number." msgstr "" +#. (itstool) path: para/emphasis +#: chfn.1.xml.out:167 +msgid "[]" +msgstr "" + #. (itstool) path: refsect1/para -#: chfn.1.xml.out:158 -msgid "If none of the options are selected, <_:command-1/> operates in an interactive fashion, prompting the user with the current values for all of the fields. Enter the new value to change the field, or leave the line blank to use the current value. The current value is displayed between a pair of <_:emphasis-2/> marks. Without options, <_:command-3/> prompts for the current user account." +#: chfn.1.xml.out:162 +msgid "If none of the options is selected, <_:command-1/> operates in an interactive fashion, prompting the user with the current values for all of the fields. Enter the new value to change the field, or leave the line blank to use the current value. The current value is displayed between a pair of <_:emphasis-2/> marks." msgstr "" #. (itstool) path: listitem/para -#: chfn.1.xml.out:189 -#: chgpasswd.8.xml.out:235 -#: chpasswd.8.xml.out:291 -#: chsh.1.xml.out:202 -#: groupadd.8.xml.out:278 -#: groupmod.8.xml.out:241 -#: login.1.xml.out:367 +#: chfn.1.xml.out:192 +#: chgpasswd.8.xml.out:225 +#: chpasswd.8.xml.out:279 +#: chsh.1.xml.out:195 +#: groupadd.8.xml.out:279 +#: groupmod.8.xml.out:242 +#: login.1.xml.out:359 #: login.access.5.xml.out:102 -#: newusers.8.xml.out:446 -#: passwd.1.xml.out:429 -#: pwconv.8.xml.out:232 +#: newusers.8.xml.out:443 +#: passwd.1.xml.out:428 +#: pwconv.8.xml.out:233 #: su.1.xml.out:359 -#: useradd.8.xml.out:819 -#: userdel.8.xml.out:193 +#: useradd.8.xml.out:864 +#: userdel.8.xml.out:186 msgid "Shadow password suite configuration." msgstr "" @@ -2427,20 +2399,20 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: chfn.1.xml.out:205 +#: chfn.1.xml.out:208 #: chsh.1.xml.out:36 #: chsh.1.xml.out:43 #: chsh.1.xml.out:49 #: chsh.1.xml.out:62 #: chsh.1.xml.out:73 -#: chsh.1.xml.out:109 -#: groupadd.8.xml.out:348 -#: groupdel.8.xml.out:208 -#: groupmod.8.xml.out:329 -#: login.defs.5.xml.out:280 -#: useradd.8.xml.out:901 -#: userdel.8.xml.out:313 -#: usermod.8.xml.out:625 +#: chsh.1.xml.out:110 +#: groupadd.8.xml.out:349 +#: groupdel.8.xml.out:209 +#: groupmod.8.xml.out:330 +#: login.defs.5.xml.out:275 +#: useradd.8.xml.out:952 +#: userdel.8.xml.out:306 +#: usermod.8.xml.out:643 msgid "chsh" msgstr "" @@ -2448,42 +2420,43 @@ msgstr "" #. (itstool) path: para/filename #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname -#: chfn.1.xml.out:208 -#: chgpasswd.8.xml.out:251 -#: chpasswd.8.xml.out:314 -#: chsh.1.xml.out:215 +#: chfn.1.xml.out:211 +#: chgpasswd.8.xml.out:241 +#: chpasswd.8.xml.out:302 +#: chsh.1.xml.out:208 #: groupadd.8.xml.out:194 -#: groupadd.8.xml.out:363 -#: groupmod.8.xml.out:344 -#: login.1.xml.out:389 -#: login.defs.5.xml.out:104 -#: login.defs.5.xml.out:111 +#: groupadd.8.xml.out:364 +#: groupmod.8.xml.out:345 +#: login.1.xml.out:381 +#: login.defs.5.xml.out:103 +#: login.defs.5.xml.out:110 #: newusers.8.xml.out:300 -#: newusers.8.xml.out:474 -#: passwd.1.xml.out:509 +#: newusers.8.xml.out:471 +#: passwd.1.xml.out:514 #: pwconv.8.xml.out:92 #: pwconv.8.xml.out:94 #: pwconv.8.xml.out:108 -#: pwconv.8.xml.out:245 +#: pwconv.8.xml.out:246 #: su.1.xml.out:418 -#: useradd.8.xml.out:919 -#: userdel.8.xml.out:117 -#: userdel.8.xml.out:319 -#: usermod.8.xml.out:646 -#: vipw.8.xml.out:214 +#: useradd.8.xml.out:192 +#: useradd.8.xml.out:970 +#: userdel.8.xml.out:109 +#: userdel.8.xml.out:312 +#: usermod.8.xml.out:664 +#: vipw.8.xml.out:215 msgid "login.defs" msgstr "" #. (itstool) path: refsect1/para -#: chfn.1.xml.out:203 -#: chgpasswd.8.xml.out:243 -#: chsh.1.xml.out:210 +#: chfn.1.xml.out:206 +#: chgpasswd.8.xml.out:233 +#: chsh.1.xml.out:203 #: limits.5.xml.out:183 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>." msgstr "" #. (itstool) path: author/contrib -#: chgpasswd.8.xml.out:25 +#: chgpasswd.8.xml.out:24 msgid "Creation, 2006" msgstr "" @@ -2492,127 +2465,125 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: chgpasswd.8.xml.out:35 -#: chgpasswd.8.xml.out:42 -#: chgpasswd.8.xml.out:48 -#: chgpasswd.8.xml.out:58 -#: chgpasswd.8.xml.out:68 -#: chgpasswd.8.xml.out:85 -#: login.defs.5.xml.out:253 +#: chgpasswd.8.xml.out:34 +#: chgpasswd.8.xml.out:41 +#: chgpasswd.8.xml.out:47 +#: chgpasswd.8.xml.out:57 +#: chgpasswd.8.xml.out:67 +#: chgpasswd.8.xml.out:84 +#: login.defs.5.xml.out:251 msgid "chgpasswd" msgstr "" #. (itstool) path: refmeta/manvolnum #. (itstool) path: citerefentry/manvolnum #. (itstool) path: term/replaceable -#: chgpasswd.8.xml.out:36 -#: chgpasswd.8.xml.out:248 -#: chpasswd.8.xml.out:40 -#: chpasswd.8.xml.out:310 -#: chpasswd.8.xml.out:318 +#: chgpasswd.8.xml.out:35 +#: chgpasswd.8.xml.out:238 +#: chpasswd.8.xml.out:39 +#: chpasswd.8.xml.out:298 +#: chpasswd.8.xml.out:306 #: faillog.5.xml.out:87 #: faillog.8.xml.out:34 -#: gpasswd.1.xml.out:282 -#: gpasswd.1.xml.out:285 -#: gpasswd.1.xml.out:288 -#: gpasswd.1.xml.out:291 +#: gpasswd.1.xml.out:281 +#: gpasswd.1.xml.out:284 +#: gpasswd.1.xml.out:287 +#: gpasswd.1.xml.out:290 #: groupadd.8.xml.out:37 -#: groupadd.8.xml.out:354 -#: groupadd.8.xml.out:357 -#: groupadd.8.xml.out:360 -#: groupadd.8.xml.out:366 -#: groupadd.8.xml.out:369 -#: groupadd.8.xml.out:372 +#: groupadd.8.xml.out:355 +#: groupadd.8.xml.out:358 +#: groupadd.8.xml.out:361 +#: groupadd.8.xml.out:367 +#: groupadd.8.xml.out:370 +#: groupadd.8.xml.out:373 #: groupdel.8.xml.out:35 -#: groupdel.8.xml.out:186 -#: groupdel.8.xml.out:214 -#: groupdel.8.xml.out:217 -#: groupdel.8.xml.out:220 -#: groupdel.8.xml.out:223 -#: groupdel.8.xml.out:226 -#: groupdel.8.xml.out:229 +#: groupdel.8.xml.out:187 +#: groupdel.8.xml.out:215 +#: groupdel.8.xml.out:218 +#: groupdel.8.xml.out:221 +#: groupdel.8.xml.out:224 +#: groupdel.8.xml.out:227 +#: groupdel.8.xml.out:230 #: groupmod.8.xml.out:35 -#: groupmod.8.xml.out:335 -#: groupmod.8.xml.out:338 -#: groupmod.8.xml.out:341 -#: groupmod.8.xml.out:347 -#: groupmod.8.xml.out:350 -#: groupmod.8.xml.out:353 +#: groupmod.8.xml.out:336 +#: groupmod.8.xml.out:339 +#: groupmod.8.xml.out:342 +#: groupmod.8.xml.out:348 +#: groupmod.8.xml.out:351 +#: groupmod.8.xml.out:354 #: grpck.8.xml.out:34 -#: grpck.8.xml.out:283 -#: grpck.8.xml.out:294 +#: grpck.8.xml.out:284 +#: grpck.8.xml.out:295 #: gshadow.5.xml.out:159 #: gshadow.5.xml.out:162 #: lastlog.8.xml.out:36 #: login.1.xml.out:174 #: login.1.xml.out:176 -#: login.1.xml.out:249 -#: login.1.xml.out:251 -#: login.1.xml.out:401 -#: login.defs.5.xml.out:564 -#: logoutd.8.xml.out:34 -#: newusers.8.xml.out:52 -#: newusers.8.xml.out:488 +#: login.1.xml.out:241 +#: login.1.xml.out:243 +#: login.1.xml.out:393 +#: login.defs.5.xml.out:547 +#: newusers.8.xml.out:51 +#: newusers.8.xml.out:485 #: nologin.8.xml.out:23 -#: passwd.1.xml.out:496 -#: passwd.1.xml.out:513 +#: passwd.1.xml.out:501 +#: passwd.1.xml.out:518 #: passwd.5.xml.out:185 #: passwd.5.xml.out:188 #: passwd.5.xml.out:191 #: passwd.5.xml.out:200 #: pwck.8.xml.out:41 -#: pwck.8.xml.out:339 -#: pwck.8.xml.out:348 +#: pwck.8.xml.out:340 +#: pwck.8.xml.out:349 #: pwconv.8.xml.out:40 -#: pwconv.8.xml.out:242 -#: pwconv.8.xml.out:248 -#: pwconv.8.xml.out:251 -#: pwconv.8.xml.out:254 +#: pwconv.8.xml.out:243 +#: pwconv.8.xml.out:249 +#: pwconv.8.xml.out:252 +#: pwconv.8.xml.out:255 #: shadow.5.xml.out:274 #: shadow.5.xml.out:277 #: shadow.5.xml.out:280 #: shadow.5.xml.out:286 #: suauth.5.xml.out:192 #: useradd.8.xml.out:53 -#: useradd.8.xml.out:576 -#: useradd.8.xml.out:590 -#: useradd.8.xml.out:910 -#: useradd.8.xml.out:913 -#: useradd.8.xml.out:916 -#: useradd.8.xml.out:922 -#: useradd.8.xml.out:933 -#: useradd.8.xml.out:936 +#: useradd.8.xml.out:623 +#: useradd.8.xml.out:637 +#: useradd.8.xml.out:961 +#: useradd.8.xml.out:964 +#: useradd.8.xml.out:967 +#: useradd.8.xml.out:973 +#: useradd.8.xml.out:984 +#: useradd.8.xml.out:987 #: userdel.8.xml.out:40 -#: userdel.8.xml.out:259 -#: userdel.8.xml.out:322 -#: userdel.8.xml.out:325 -#: userdel.8.xml.out:328 -#: userdel.8.xml.out:331 -#: userdel.8.xml.out:342 -#: userdel.8.xml.out:345 +#: userdel.8.xml.out:252 +#: userdel.8.xml.out:315 +#: userdel.8.xml.out:318 +#: userdel.8.xml.out:321 +#: userdel.8.xml.out:324 +#: userdel.8.xml.out:335 +#: userdel.8.xml.out:338 #: usermod.8.xml.out:41 -#: usermod.8.xml.out:522 -#: usermod.8.xml.out:634 -#: usermod.8.xml.out:637 -#: usermod.8.xml.out:640 -#: usermod.8.xml.out:643 -#: usermod.8.xml.out:657 -#: usermod.8.xml.out:660 +#: usermod.8.xml.out:540 +#: usermod.8.xml.out:652 +#: usermod.8.xml.out:655 +#: usermod.8.xml.out:658 +#: usermod.8.xml.out:661 +#: usermod.8.xml.out:675 +#: usermod.8.xml.out:678 #: vipw.8.xml.out:36 msgid "8" msgstr "" #. (itstool) path: refmeta/refmiscinfo -#: chgpasswd.8.xml.out:37 -#: chpasswd.8.xml.out:41 +#: chgpasswd.8.xml.out:36 +#: chpasswd.8.xml.out:40 #: faillog.8.xml.out:35 #: groupadd.8.xml.out:38 #: groupdel.8.xml.out:36 #: groupmod.8.xml.out:36 #: grpck.8.xml.out:35 #: lastlog.8.xml.out:37 -#: logoutd.8.xml.out:35 -#: newusers.8.xml.out:53 +#: newusers.8.xml.out:52 #: nologin.8.xml.out:24 #: pwck.8.xml.out:42 #: pwconv.8.xml.out:41 @@ -2624,25 +2595,23 @@ msgid "System Management Commands" msgstr "" #. (itstool) path: refnamediv/refpurpose -#: chgpasswd.8.xml.out:43 +#: chgpasswd.8.xml.out:42 msgid "update group passwords in batch mode" msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:57 +#: chgpasswd.8.xml.out:56 msgid "The <_:command-1/> command reads a list of group name and password pairs from standard input and uses this information to update a set of existing groups. Each line is of the format:" msgstr "" #. (itstool) path: para/emphasis -#. (itstool) path: arg/replaceable -#. (itstool) path: term/replaceable -#: chgpasswd.8.xml.out:63 +#: chgpasswd.8.xml.out:62 msgid "group_name" msgstr "" #. (itstool) path: para/emphasis -#: chgpasswd.8.xml.out:64 -#: chpasswd.8.xml.out:68 +#: chgpasswd.8.xml.out:63 +#: chpasswd.8.xml.out:67 #: passwd.5.xml.out:77 #: passwd.5.xml.out:86 #: passwd.5.xml.out:91 @@ -2652,293 +2621,274 @@ msgid "password" msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:62 -#: chpasswd.8.xml.out:66 +#: chgpasswd.8.xml.out:61 +#: chpasswd.8.xml.out:65 msgid "<_:emphasis-1/>:<_:emphasis-2/>" msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:66 +#: chgpasswd.8.xml.out:65 msgid "By default the supplied password must be in clear-text, and is encrypted by <_:command-1/>." msgstr "" #. (itstool) path: para/option -#: chgpasswd.8.xml.out:72 -#: chpasswd.8.xml.out:77 -#: chpasswd.8.xml.out:138 +#. (itstool) path: para/phrase +#: chgpasswd.8.xml.out:71 +#: chpasswd.8.xml.out:76 +#: chpasswd.8.xml.out:137 +#: login.defs.5.xml.out:268 #: passwd.1.xml.out:114 msgid "ENCRYPT_METHOD" msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#: chgpasswd.8.xml.out:73 +#: chgpasswd.8.xml.out:72 #: chgpasswd.8.xml.out:107 -#: chpasswd.8.xml.out:80 -#: chpasswd.8.xml.out:86 -#: chpasswd.8.xml.out:136 -#: chpasswd.8.xml.out:145 -#: passwd.1.xml.out:176 -#: useradd.8.xml.out:179 -#: useradd.8.xml.out:630 +#: chpasswd.8.xml.out:78 +#: chpasswd.8.xml.out:84 +#: chpasswd.8.xml.out:135 +#: chpasswd.8.xml.out:143 +#: passwd.1.xml.out:175 +#: useradd.8.xml.out:209 +#: useradd.8.xml.out:677 #: usermod.8.xml.out:129 msgid "-e" msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#. (itstool) path: arg/arg -#: chgpasswd.8.xml.out:74 -#: chgpasswd.8.xml.out:90 -#: chpasswd.8.xml.out:80 -#: chpasswd.8.xml.out:86 -#: chpasswd.8.xml.out:116 -#: chpasswd.8.xml.out:135 +#. (itstool) path: arg/replaceable +#: chgpasswd.8.xml.out:73 +#: chgpasswd.8.xml.out:89 +#: chpasswd.8.xml.out:78 +#: chpasswd.8.xml.out:84 +#: chpasswd.8.xml.out:114 +#: chpasswd.8.xml.out:134 #: newusers.8.xml.out:270 -#: sg.1.xml.out:50 +#: sg.1.xml.out:55 +#: sg.1.xml.out:94 +#: sg.1.xml.out:99 #: su.1.xml.out:86 #: su.1.xml.out:126 #: su.1.xml.out:131 -#: useradd.8.xml.out:139 +#: useradd.8.xml.out:166 #: usermod.8.xml.out:99 msgid "-c" msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:70 -msgid "The default encryption algorithm can be defined for the system with the <_:option-1/> variable of <_:filename-2/>, and can be overwritten with the <_:option-3/>, <_:option-4/>, or <_:option-5/> options." +#: chgpasswd.8.xml.out:69 +#: chpasswd.8.xml.out:74 +msgid "The default encryption algorithm can be defined for the system with the <_:option-1/> variable of <_:filename-2/>, and can be overwritten with the <_:option-3/> or <_:option-4/> options." msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:76 -#: chpasswd.8.xml.out:101 +#: chgpasswd.8.xml.out:75 +#: chpasswd.8.xml.out:99 msgid "This command is intended to be used in a large system environment where many accounts are created at a single time." msgstr "" #. (itstool) path: term/option -#: chgpasswd.8.xml.out:90 -#: chpasswd.8.xml.out:116 +#: chgpasswd.8.xml.out:89 +#: chpasswd.8.xml.out:114 #: newusers.8.xml.out:270 msgid "--crypt-method" msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:92 -#: chpasswd.8.xml.out:119 +#: chgpasswd.8.xml.out:91 +#: chpasswd.8.xml.out:117 #: newusers.8.xml.out:272 msgid "Use the specified method to encrypt the passwords." msgstr "" #. (itstool) path: phrase/replaceable -#: chgpasswd.8.xml.out:95 -#: chgpasswd.8.xml.out:149 -#: chpasswd.8.xml.out:122 -#: chpasswd.8.xml.out:208 -#: newusers.8.xml.out:330 +#: chgpasswd.8.xml.out:94 +#: chgpasswd.8.xml.out:141 +#: chpasswd.8.xml.out:120 +#: chpasswd.8.xml.out:198 +#: newusers.8.xml.out:331 msgid "BCRYPT" msgstr "" #. (itstool) path: para/phrase -#: chgpasswd.8.xml.out:94 -#: chpasswd.8.xml.out:121 +#: chgpasswd.8.xml.out:93 +#: chpasswd.8.xml.out:119 msgid "<_:replaceable-1/>," msgstr "" #. (itstool) path: para/replaceable -#: chgpasswd.8.xml.out:96 -#: chpasswd.8.xml.out:123 +#: chgpasswd.8.xml.out:95 +#: chpasswd.8.xml.out:121 msgid "DES" msgstr "" #. (itstool) path: para/replaceable -#: chgpasswd.8.xml.out:97 -#: chpasswd.8.xml.out:124 +#: chgpasswd.8.xml.out:96 +#: chpasswd.8.xml.out:122 msgid "MD5" msgstr "" -#. (itstool) path: phrase/replaceable -#: chgpasswd.8.xml.out:98 -#: chgpasswd.8.xml.out:151 -#: chpasswd.8.xml.out:125 -#: chpasswd.8.xml.out:210 +#. (itstool) path: para/replaceable +#: chgpasswd.8.xml.out:97 +#: chgpasswd.8.xml.out:142 +#: chpasswd.8.xml.out:123 +#: chpasswd.8.xml.out:199 #: newusers.8.xml.out:332 msgid "SHA256" msgstr "" -#. (itstool) path: phrase/replaceable -#: chgpasswd.8.xml.out:99 -#: chgpasswd.8.xml.out:152 -#: chpasswd.8.xml.out:126 -#: chpasswd.8.xml.out:211 +#. (itstool) path: para/replaceable +#: chgpasswd.8.xml.out:98 +#: chgpasswd.8.xml.out:143 +#: chpasswd.8.xml.out:124 +#: chpasswd.8.xml.out:200 #: newusers.8.xml.out:333 msgid "SHA512" msgstr "" -#. (itstool) path: para/phrase -#: chgpasswd.8.xml.out:97 -#: chpasswd.8.xml.out:124 -msgid ", <_:replaceable-1/>, <_:replaceable-2/>" -msgstr "" - #. (itstool) path: phrase/replaceable #: chgpasswd.8.xml.out:100 -#: chgpasswd.8.xml.out:154 -#: chpasswd.8.xml.out:127 -#: chpasswd.8.xml.out:213 +#: chgpasswd.8.xml.out:145 +#: chpasswd.8.xml.out:126 +#: chpasswd.8.xml.out:202 #: newusers.8.xml.out:335 msgid "YESCRYPT" msgstr "" -#. (itstool) path: para/phrase -#: chgpasswd.8.xml.out:99 -#: chpasswd.8.xml.out:126 -msgid ", <_:replaceable-1/>" -msgstr "" - #. (itstool) path: para/replaceable #: chgpasswd.8.xml.out:101 -#: chpasswd.8.xml.out:128 +#: chpasswd.8.xml.out:127 msgid "NONE" msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:93 -#: chpasswd.8.xml.out:120 -msgid "The available methods are <_:phrase-1/> <_:replaceable-2/>, <_:replaceable-3/><_:phrase-4/><_:phrase-5/> and <_:replaceable-6/> if your libc supports these methods." +#: chgpasswd.8.xml.out:92 +#: chpasswd.8.xml.out:118 +msgid "The available methods are <_:phrase-1/> <_:replaceable-2/>, <_:replaceable-3/>, <_:replaceable-4/>, <_:replaceable-5/>, <_:phrase-6/> and <_:replaceable-7/> if your libc supports these methods." msgstr "" #. (itstool) path: term/option #: chgpasswd.8.xml.out:107 -#: chpasswd.8.xml.out:145 +#: chpasswd.8.xml.out:143 msgid "--encrypted" msgstr "" #. (itstool) path: listitem/para #: chgpasswd.8.xml.out:109 -#: chpasswd.8.xml.out:147 +#: chpasswd.8.xml.out:145 msgid "Supplied passwords are in encrypted form." msgstr "" -#. (itstool) path: term/option -#: chgpasswd.8.xml.out:119 -#: chpasswd.8.xml.out:161 -msgid "--md5" -msgstr "" - -#. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:121 -#: chpasswd.8.xml.out:163 -msgid "Use MD5 encryption instead of DES when the supplied passwords are not encrypted." -msgstr "" - #. (itstool) path: term/option #. (itstool) path: para/option -#: chgpasswd.8.xml.out:141 -#: chpasswd.8.xml.out:199 -#: chsh.1.xml.out:97 -#: chsh.1.xml.out:108 +#: chgpasswd.8.xml.out:133 +#: chpasswd.8.xml.out:189 +#: chsh.1.xml.out:98 +#: chsh.1.xml.out:109 #: grpck.8.xml.out:124 -#: grpck.8.xml.out:161 -#: newusers.8.xml.out:322 +#: grpck.8.xml.out:162 +#: newusers.8.xml.out:323 #: passwd.1.xml.out:363 #: pwck.8.xml.out:155 -#: pwck.8.xml.out:209 +#: pwck.8.xml.out:210 #: su.1.xml.out:163 -#: useradd.8.xml.out:519 -#: useradd.8.xml.out:675 -#: usermod.8.xml.out:357 +#: useradd.8.xml.out:566 +#: useradd.8.xml.out:721 +#: usermod.8.xml.out:362 #: vipw.8.xml.out:70 -#: vipw.8.xml.out:127 +#: vipw.8.xml.out:128 msgid "-s" msgstr "" #. (itstool) path: term/option -#: chgpasswd.8.xml.out:141 -#: chpasswd.8.xml.out:199 -#: newusers.8.xml.out:322 +#: chgpasswd.8.xml.out:133 +#: chpasswd.8.xml.out:189 +#: newusers.8.xml.out:323 msgid "--sha-rounds" msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:143 -#: chpasswd.8.xml.out:202 -#: newusers.8.xml.out:324 +#: chgpasswd.8.xml.out:135 +#: chpasswd.8.xml.out:192 +#: newusers.8.xml.out:325 msgid "Use the specified number of rounds to encrypt the passwords." msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:146 -#: chpasswd.8.xml.out:205 -#: newusers.8.xml.out:327 -msgid "You can only use this option with crypt method: <_:phrase-1/> <_:phrase-2/> <_:phrase-3/>" +#: chgpasswd.8.xml.out:138 +#: chpasswd.8.xml.out:195 +#: newusers.8.xml.out:328 +msgid "You can only use this option with crypt method: <_:phrase-1/> <_:replaceable-2/> <_:replaceable-3/> <_:phrase-4/>" msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:156 -#: chpasswd.8.xml.out:215 +#: chgpasswd.8.xml.out:147 +#: chpasswd.8.xml.out:204 #: newusers.8.xml.out:337 msgid "By default, the number of rounds for BCRYPT is defined by the BCRYPT_MIN_ROUNDS and BCRYPT_MAX_ROUNDS variables in <_:filename-1/>." msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:161 -#: chpasswd.8.xml.out:220 +#: chgpasswd.8.xml.out:152 +#: chpasswd.8.xml.out:209 msgid "A minimal value of 4 and a maximal value of 31 will be enforced for BCRYPT. The default number of rounds is 13." msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:165 -#: chpasswd.8.xml.out:224 +#: chgpasswd.8.xml.out:156 +#: chpasswd.8.xml.out:213 #: newusers.8.xml.out:346 msgid "By default, the number of rounds for SHA256 or SHA512 is defined by the SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS variables in <_:filename-1/>." msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:170 -#: chpasswd.8.xml.out:229 +#: chgpasswd.8.xml.out:161 +#: chpasswd.8.xml.out:218 msgid "A minimal value of 1000 and a maximal value of 999,999,999 will be enforced for SHA256 and SHA512. The default number of rounds is 5000." msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:175 -#: chpasswd.8.xml.out:234 +#: chgpasswd.8.xml.out:166 +#: chpasswd.8.xml.out:223 #: newusers.8.xml.out:355 msgid "By default, the number of rounds for YESCRYPT is defined by the YESCRYPT_COST_FACTOR in <_:filename-1/>." msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:179 -#: chpasswd.8.xml.out:238 +#: chgpasswd.8.xml.out:170 +#: chpasswd.8.xml.out:227 msgid "A minimal value of 1 and a maximal value of 11 will be enforced for YESCRYPT. The default number of rounds is 5." msgstr "" #. (itstool) path: refsect1/title -#: chgpasswd.8.xml.out:189 -#: chpasswd.8.xml.out:248 -#: faillog.8.xml.out:209 +#: chgpasswd.8.xml.out:180 +#: chpasswd.8.xml.out:237 +#: faillog.8.xml.out:210 #: gpasswd.1.xml.out:231 -#: groupadd.8.xml.out:285 -#: groupdel.8.xml.out:121 -#: lastlog.8.xml.out:206 -#: login.1.xml.out:236 +#: groupadd.8.xml.out:286 +#: groupdel.8.xml.out:122 +#: lastlog.8.xml.out:217 +#: login.1.xml.out:228 #: newusers.8.xml.out:369 #: passwd.1.xml.out:376 #: shadow.3.xml.out:194 #: su.1.xml.out:306 -#: useradd.8.xml.out:702 -#: userdel.8.xml.out:281 -#: usermod.8.xml.out:534 +#: useradd.8.xml.out:747 +#: userdel.8.xml.out:274 +#: usermod.8.xml.out:552 msgid "CAVEATS" msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:190 -#: chpasswd.8.xml.out:249 +#: chgpasswd.8.xml.out:181 +#: chpasswd.8.xml.out:238 msgid "Remember to set permissions or umask to prevent readability of unencrypted files by other users." msgstr "" #. (itstool) path: refsect1/para -#: chgpasswd.8.xml.out:194 +#: chgpasswd.8.xml.out:185 #: newusers.8.xml.out:374 msgid "You should make sure the passwords and the encryption method respect the system's password policy." msgstr "" @@ -2947,109 +2897,105 @@ msgstr "" #. (itstool) path: phrase/filename #. (itstool) path: para/filename #. (itstool) path: citerefentry/refentrytitle -#: chgpasswd.8.xml.out:221 -#: gpasswd.1.xml.out:50 -#: gpasswd.1.xml.out:53 -#: gpasswd.1.xml.out:75 +#: chgpasswd.8.xml.out:211 +#: gpasswd.1.xml.out:49 +#: gpasswd.1.xml.out:52 +#: gpasswd.1.xml.out:74 #: gpasswd.1.xml.out:233 -#: gpasswd.1.xml.out:261 +#: gpasswd.1.xml.out:260 #: groupadd.8.xml.out:170 -#: groupadd.8.xml.out:264 -#: groupdel.8.xml.out:148 -#: groupmod.8.xml.out:227 -#: groups.1.xml.out:58 -#: groups.1.xml.out:70 -#: groups.1.xml.out:80 +#: groupadd.8.xml.out:265 +#: groupdel.8.xml.out:149 +#: groupmod.8.xml.out:228 #: grpck.8.xml.out:62 #: grpck.8.xml.out:81 #: grpck.8.xml.out:94 #: grpck.8.xml.out:112 -#: grpck.8.xml.out:164 -#: grpck.8.xml.out:177 -#: grpck.8.xml.out:185 -#: grpck.8.xml.out:211 +#: grpck.8.xml.out:165 +#: grpck.8.xml.out:178 +#: grpck.8.xml.out:186 +#: grpck.8.xml.out:212 #: gshadow.5.xml.out:91 #: gshadow.5.xml.out:124 #: gshadow.5.xml.out:135 #: newgrp.1.xml.out:80 #: newgrp.1.xml.out:112 -#: newusers.8.xml.out:432 -#: pwck.8.xml.out:261 +#: newusers.8.xml.out:429 +#: pwck.8.xml.out:262 #: pwconv.8.xml.out:128 -#: sg.1.xml.out:101 +#: sg.1.xml.out:137 #: suauth.5.xml.out:90 -#: useradd.8.xml.out:775 -#: userdel.8.xml.out:185 -#: usermod.8.xml.out:574 +#: useradd.8.xml.out:820 +#: userdel.8.xml.out:178 +#: usermod.8.xml.out:592 #: vipw.8.xml.out:69 -#: vipw.8.xml.out:175 +#: vipw.8.xml.out:176 msgid "/etc/group" msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:223 -#: gpasswd.1.xml.out:263 -#: groupadd.8.xml.out:266 -#: groupdel.8.xml.out:150 -#: groupmod.8.xml.out:229 -#: groups.1.xml.out:82 -#: grpck.8.xml.out:213 +#: chgpasswd.8.xml.out:213 +#: gpasswd.1.xml.out:262 +#: groupadd.8.xml.out:267 +#: groupdel.8.xml.out:151 +#: groupmod.8.xml.out:230 +#: grpck.8.xml.out:214 #: gshadow.5.xml.out:137 #: newgrp.1.xml.out:114 -#: newusers.8.xml.out:434 -#: pwck.8.xml.out:263 -#: sg.1.xml.out:103 -#: useradd.8.xml.out:777 -#: userdel.8.xml.out:187 -#: vipw.8.xml.out:177 +#: newusers.8.xml.out:431 +#: pwck.8.xml.out:264 +#: sg.1.xml.out:139 +#: useradd.8.xml.out:822 +#: userdel.8.xml.out:180 +#: vipw.8.xml.out:178 msgid "Group account information." msgstr "" #. (itstool) path: term/filename #. (itstool) path: phrase/filename #. (itstool) path: para/filename -#: chgpasswd.8.xml.out:227 -#: gpasswd.1.xml.out:54 -#: gpasswd.1.xml.out:76 +#: chgpasswd.8.xml.out:217 +#: gpasswd.1.xml.out:53 +#: gpasswd.1.xml.out:75 #: gpasswd.1.xml.out:234 -#: gpasswd.1.xml.out:267 +#: gpasswd.1.xml.out:266 #: groupadd.8.xml.out:170 -#: groupadd.8.xml.out:270 -#: groupdel.8.xml.out:154 -#: groupmod.8.xml.out:233 +#: groupadd.8.xml.out:271 +#: groupdel.8.xml.out:155 +#: groupmod.8.xml.out:234 #: grpck.8.xml.out:63 #: grpck.8.xml.out:93 #: grpck.8.xml.out:114 -#: grpck.8.xml.out:166 -#: grpck.8.xml.out:186 -#: grpck.8.xml.out:217 +#: grpck.8.xml.out:167 +#: grpck.8.xml.out:187 +#: grpck.8.xml.out:218 #: gshadow.5.xml.out:36 #: gshadow.5.xml.out:141 #: newgrp.1.xml.out:78 #: newgrp.1.xml.out:118 -#: newusers.8.xml.out:438 +#: newusers.8.xml.out:435 #: pwconv.8.xml.out:129 -#: sg.1.xml.out:107 -#: useradd.8.xml.out:781 -#: usermod.8.xml.out:580 +#: sg.1.xml.out:143 +#: useradd.8.xml.out:826 +#: usermod.8.xml.out:598 #: vipw.8.xml.out:72 -#: vipw.8.xml.out:181 +#: vipw.8.xml.out:182 msgid "/etc/gshadow" msgstr "" #. (itstool) path: listitem/para -#: chgpasswd.8.xml.out:229 -#: gpasswd.1.xml.out:269 -#: groupadd.8.xml.out:272 -#: groupdel.8.xml.out:156 -#: groupmod.8.xml.out:235 -#: grpck.8.xml.out:219 +#: chgpasswd.8.xml.out:219 +#: gpasswd.1.xml.out:268 +#: groupadd.8.xml.out:273 +#: groupdel.8.xml.out:157 +#: groupmod.8.xml.out:236 +#: grpck.8.xml.out:220 #: gshadow.5.xml.out:143 #: newgrp.1.xml.out:120 -#: newusers.8.xml.out:440 -#: sg.1.xml.out:109 -#: useradd.8.xml.out:783 -#: vipw.8.xml.out:183 +#: newusers.8.xml.out:437 +#: sg.1.xml.out:145 +#: useradd.8.xml.out:828 +#: vipw.8.xml.out:184 msgid "Secure group account information." msgstr "" @@ -3059,22 +3005,22 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: chgpasswd.8.xml.out:245 -#: gpasswd.1.xml.out:40 -#: gpasswd.1.xml.out:47 -#: gpasswd.1.xml.out:61 -#: gpasswd.1.xml.out:74 -#: gpasswd.1.xml.out:87 -#: gpasswd.1.xml.out:121 -#: groupadd.8.xml.out:354 -#: groupdel.8.xml.out:214 -#: groupmod.8.xml.out:335 +#: chgpasswd.8.xml.out:235 +#: gpasswd.1.xml.out:39 +#: gpasswd.1.xml.out:46 +#: gpasswd.1.xml.out:60 +#: gpasswd.1.xml.out:73 +#: gpasswd.1.xml.out:86 +#: gpasswd.1.xml.out:120 +#: groupadd.8.xml.out:355 +#: groupdel.8.xml.out:215 +#: groupmod.8.xml.out:336 #: gshadow.5.xml.out:153 -#: login.defs.5.xml.out:290 +#: login.defs.5.xml.out:284 #: newgrp.1.xml.out:142 -#: sg.1.xml.out:131 -#: userdel.8.xml.out:322 -#: usermod.8.xml.out:634 +#: sg.1.xml.out:167 +#: userdel.8.xml.out:315 +#: usermod.8.xml.out:652 msgid "gpasswd" msgstr "" @@ -3084,34 +3030,32 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: chgpasswd.8.xml.out:248 -#: gpasswd.1.xml.out:282 +#: chgpasswd.8.xml.out:238 +#: gpasswd.1.xml.out:281 #: groupadd.8.xml.out:36 #: groupadd.8.xml.out:43 #: groupadd.8.xml.out:49 #: groupadd.8.xml.out:61 #: groupadd.8.xml.out:82 -#: groupadd.8.xml.out:292 -#: groupadd.8.xml.out:300 -#: groupdel.8.xml.out:217 -#: groupmod.8.xml.out:338 -#: login.defs.5.xml.out:303 -#: useradd.8.xml.out:910 -#: userdel.8.xml.out:325 -#: usermod.8.xml.out:637 +#: groupadd.8.xml.out:293 +#: groupadd.8.xml.out:301 +#: groupdel.8.xml.out:218 +#: groupmod.8.xml.out:339 +#: login.defs.5.xml.out:296 +#: useradd.8.xml.out:961 +#: userdel.8.xml.out:318 +#: usermod.8.xml.out:655 msgid "groupadd" msgstr "" #. (itstool) path: author/contrib -#: chpasswd.8.xml.out:23 +#: chpasswd.8.xml.out:22 #: groupadd.8.xml.out:20 #: groupdel.8.xml.out:18 #: groupmod.8.xml.out:18 -#: groups.1.xml.out:17 -#: login.defs.5.xml.out:88 -#: logoutd.8.xml.out:17 +#: login.defs.5.xml.out:87 #: newgrp.1.xml.out:18 -#: newusers.8.xml.out:35 +#: newusers.8.xml.out:34 #: sg.1.xml.out:18 #: useradd.8.xml.out:36 #: userdel.8.xml.out:23 @@ -3125,102 +3069,96 @@ msgstr "" #. (itstool) path: para/command #. (itstool) path: varlistentry/term #. (itstool) path: citerefentry/refentrytitle -#: chpasswd.8.xml.out:39 -#: chpasswd.8.xml.out:46 -#: chpasswd.8.xml.out:52 -#: chpasswd.8.xml.out:62 -#: chpasswd.8.xml.out:72 -#: chpasswd.8.xml.out:91 -#: chpasswd.8.xml.out:98 -#: chpasswd.8.xml.out:110 -#: chpasswd.8.xml.out:297 -#: login.defs.5.xml.out:266 -#: passwd.1.xml.out:496 +#: chpasswd.8.xml.out:38 +#: chpasswd.8.xml.out:45 +#: chpasswd.8.xml.out:51 +#: chpasswd.8.xml.out:61 +#: chpasswd.8.xml.out:71 +#: chpasswd.8.xml.out:89 +#: chpasswd.8.xml.out:96 +#: chpasswd.8.xml.out:108 +#: chpasswd.8.xml.out:285 +#: login.defs.5.xml.out:263 +#: passwd.1.xml.out:501 msgid "chpasswd" msgstr "" #. (itstool) path: refnamediv/refpurpose -#: chpasswd.8.xml.out:47 +#: chpasswd.8.xml.out:46 msgid "update passwords in batch mode" msgstr "" #. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:61 +#: chpasswd.8.xml.out:60 msgid "The <_:command-1/> command reads a list of user name and password pairs from standard input and uses this information to update a group of existing users. Each line is of the format:" msgstr "" #. (itstool) path: para/emphasis -#. (itstool) path: arg/replaceable -#. (itstool) path: term/replaceable -#: chpasswd.8.xml.out:67 +#: chpasswd.8.xml.out:66 msgid "user_name" msgstr "" #. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:70 +#: chpasswd.8.xml.out:69 msgid "By default the passwords must be supplied in clear-text, and are encrypted by <_:command-1/>. Also the password age will be updated, if present." msgstr "" -#. (itstool) path: para/option -#: chpasswd.8.xml.out:78 -#: chpasswd.8.xml.out:139 -msgid "MD5_CRYPT_ENAB" -msgstr "" - #. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:75 -msgid "The default encryption algorithm can be defined for the system with the <_:option-1/> or <_:option-2/> variables of <_:filename-3/>, and can be overwritten with the <_:option-4/>, <_:option-5/>, or <_:option-6/> options." -msgstr "" - -#. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:83 -msgid "By default, passwords are encrypted by PAM, but (even if not recommended) you can select a different encryption method with the <_:option-1/>, <_:option-2/>, or <_:option-3/> options." +#: chpasswd.8.xml.out:81 +msgid "By default, passwords are encrypted by PAM, but (even if not recommended) you can select a different encryption method with the <_:option-1/> or <_:option-2/> options." msgstr "" #. (itstool) path: para/phrase -#: chpasswd.8.xml.out:90 +#: chpasswd.8.xml.out:88 msgid "Except when PAM is used to encrypt the passwords," msgstr "" #. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:89 +#: chpasswd.8.xml.out:87 msgid "<_:phrase-1/> <_:command-2/> first updates all the passwords in memory, and then commits all the changes to disk if no errors occurred for any user." msgstr "" #. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:95 +#: chpasswd.8.xml.out:93 msgid "When PAM is used to encrypt the passwords (and update the passwords in the system database) then if a password cannot be updated <_:command-1/> continues updating the passwords of the next users, and will return an error code on exit." msgstr "" #. (itstool) path: term/replaceable -#: chpasswd.8.xml.out:116 +#: chpasswd.8.xml.out:114 msgid "METHOD" msgstr "" #. (itstool) path: listitem/para -#: chpasswd.8.xml.out:131 +#: chpasswd.8.xml.out:130 msgid "By default, PAM is used to encrypt the passwords." msgstr "" #. (itstool) path: listitem/para -#: chpasswd.8.xml.out:134 -msgid "By default (if none of the <_:option-1/>, <_:option-2/>, or <_:option-3/> options are specified), the encryption method is defined by the <_:option-4/> or <_:option-5/> variables of <_:filename-6/>." +#: chpasswd.8.xml.out:133 +msgid "By default (if none of the <_:option-1/> or <_:option-2/> options are specified), the encryption method is defined by the <_:option-3/> variable of <_:filename-4/>." +msgstr "" + +#. (itstool) path: listitem/para +#: chpasswd.8.xml.out:177 +#: groupadd.8.xml.out:218 +#: useradd.8.xml.out:554 +msgid "Apply changes to configuration files under the root filesystem found under the directory <_:replaceable-1/>. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. PAM authentication is using the host files. No SELINUX support." msgstr "" #. (itstool) path: term/replaceable -#: chpasswd.8.xml.out:199 +#: chpasswd.8.xml.out:189 msgid "ROUNDS" msgstr "" #. (itstool) path: term/filename -#: chpasswd.8.xml.out:295 +#: chpasswd.8.xml.out:283 msgid "/etc/pam.d/chpasswd" msgstr "" #. (itstool) path: listitem/para -#: chpasswd.8.xml.out:297 -#: newusers.8.xml.out:452 -#: passwd.1.xml.out:435 +#: chpasswd.8.xml.out:285 +#: newusers.8.xml.out:449 +#: passwd.1.xml.out:434 msgid "PAM configuration for <_:command-1/>." msgstr "" @@ -3230,13 +3168,13 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: chpasswd.8.xml.out:310 -#: login.defs.5.xml.out:393 -#: newusers.8.xml.out:51 -#: newusers.8.xml.out:58 -#: newusers.8.xml.out:64 -#: newusers.8.xml.out:77 -#: newusers.8.xml.out:98 +#: chpasswd.8.xml.out:298 +#: login.defs.5.xml.out:378 +#: newusers.8.xml.out:50 +#: newusers.8.xml.out:57 +#: newusers.8.xml.out:63 +#: newusers.8.xml.out:76 +#: newusers.8.xml.out:97 #: newusers.8.xml.out:125 #: newusers.8.xml.out:134 #: newusers.8.xml.out:153 @@ -3246,15 +3184,15 @@ msgstr "" #: newusers.8.xml.out:212 #: newusers.8.xml.out:232 #: newusers.8.xml.out:254 -#: newusers.8.xml.out:452 -#: useradd.8.xml.out:922 +#: newusers.8.xml.out:449 +#: useradd.8.xml.out:973 msgid "newusers" msgstr "" #. (itstool) path: para/phrase -#: chpasswd.8.xml.out:312 -#: grpck.8.xml.out:285 -#: passwd.1.xml.out:507 +#: chpasswd.8.xml.out:300 +#: grpck.8.xml.out:286 +#: passwd.1.xml.out:512 msgid "<_:citerefentry-1/>," msgstr "" @@ -3264,12 +3202,12 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: chpasswd.8.xml.out:318 -#: groupadd.8.xml.out:366 -#: groupdel.8.xml.out:223 -#: groupmod.8.xml.out:347 -#: login.defs.5.xml.out:481 -#: newusers.8.xml.out:488 +#: chpasswd.8.xml.out:306 +#: groupadd.8.xml.out:367 +#: groupdel.8.xml.out:224 +#: groupmod.8.xml.out:348 +#: login.defs.5.xml.out:464 +#: newusers.8.xml.out:485 #: useradd.8.xml.out:52 #: useradd.8.xml.out:59 #: useradd.8.xml.out:64 @@ -3279,24 +3217,25 @@ msgstr "" #: useradd.8.xml.out:90 #: useradd.8.xml.out:103 #: useradd.8.xml.out:129 -#: useradd.8.xml.out:187 -#: useradd.8.xml.out:209 -#: useradd.8.xml.out:239 -#: useradd.8.xml.out:286 -#: useradd.8.xml.out:343 -#: useradd.8.xml.out:474 -#: useradd.8.xml.out:604 -#: useradd.8.xml.out:606 -#: useradd.8.xml.out:710 -#: useradd.8.xml.out:828 -#: userdel.8.xml.out:342 -#: usermod.8.xml.out:657 +#: useradd.8.xml.out:147 +#: useradd.8.xml.out:219 +#: useradd.8.xml.out:250 +#: useradd.8.xml.out:280 +#: useradd.8.xml.out:327 +#: useradd.8.xml.out:389 +#: useradd.8.xml.out:520 +#: useradd.8.xml.out:651 +#: useradd.8.xml.out:653 +#: useradd.8.xml.out:755 +#: useradd.8.xml.out:873 +#: userdel.8.xml.out:335 +#: usermod.8.xml.out:675 msgid "useradd" msgstr "" #. (itstool) path: refsect1/para -#: chpasswd.8.xml.out:305 -#: newusers.8.xml.out:472 +#: chpasswd.8.xml.out:293 +#: newusers.8.xml.out:469 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:phrase-3/> <_:citerefentry-4/>." msgstr "" @@ -3312,149 +3251,134 @@ msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: chsh.1.xml.out:97 +#: chsh.1.xml.out:98 #: su.1.xml.out:163 #: su.1.xml.out:199 -#: useradd.8.xml.out:519 -#: useradd.8.xml.out:675 -#: usermod.8.xml.out:357 +#: useradd.8.xml.out:566 +#: useradd.8.xml.out:721 +#: usermod.8.xml.out:362 msgid "--shell" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/option -#: chsh.1.xml.out:97 +#: chsh.1.xml.out:98 #: su.1.xml.out:163 -#: useradd.8.xml.out:519 -#: useradd.8.xml.out:524 -#: useradd.8.xml.out:675 -#: useradd.8.xml.out:682 -#: usermod.8.xml.out:357 +#: useradd.8.xml.out:566 +#: useradd.8.xml.out:571 +#: useradd.8.xml.out:721 +#: useradd.8.xml.out:728 +#: usermod.8.xml.out:362 msgid "SHELL" msgstr "" #. (itstool) path: listitem/para -#: chsh.1.xml.out:100 +#: chsh.1.xml.out:101 msgid "The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell." msgstr "" #. (itstool) path: refsect1/para -#: chsh.1.xml.out:107 +#: chsh.1.xml.out:108 msgid "If the <_:option-1/> option is not selected, <_:command-2/> operates in an interactive fashion, prompting the user with the current login shell. Enter the new value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of <_:emphasis-3/> marks." msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename -#: chsh.1.xml.out:120 -#: chsh.1.xml.out:124 -#: chsh.1.xml.out:130 -#: chsh.1.xml.out:143 -#: chsh.1.xml.out:172 -#: chsh.1.xml.out:184 +#: chsh.1.xml.out:121 +#: chsh.1.xml.out:136 +#: chsh.1.xml.out:165 +#: chsh.1.xml.out:177 #: su.1.xml.out:198 msgid "/etc/shells" msgstr "" -#. (itstool) path: para/filename -#: chsh.1.xml.out:123 -#: chsh.1.xml.out:142 -msgid "/bin/rsh" -msgstr "" - #. (itstool) path: refsect1/para -#: chsh.1.xml.out:118 -msgid "The only restriction placed on the login shell is that the command name must be listed in <_:filename-1/>, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing <_:filename-2/> in <_:filename-3/> is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value." +#: chsh.1.xml.out:119 +msgid "The only restriction placed on the login shell is that the command name must be listed in <_:filename-1/>." msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename -#: chsh.1.xml.out:132 -#: chsh.1.xml.out:181 +#: chsh.1.xml.out:125 +#: chsh.1.xml.out:174 msgid "%vendordir%/shells" msgstr "" #. (itstool) path: para/filename -#: chsh.1.xml.out:133 +#: chsh.1.xml.out:126 msgid "%vendordir%/shells.d/*" msgstr "" #. (itstool) path: para/filename -#: chsh.1.xml.out:134 +#: chsh.1.xml.out:127 msgid "/etc/shells.d/*" msgstr "" #. (itstool) path: para/filename -#: chsh.1.xml.out:135 +#: chsh.1.xml.out:128 msgid "/etc/shells.d/@filename@" msgstr "" #. (itstool) path: para/filename -#: chsh.1.xml.out:136 +#: chsh.1.xml.out:129 msgid "%vendordir%/shells.d/@filename@" msgstr "" #. (itstool) path: refsect1/para -#: chsh.1.xml.out:128 -msgid "The only restriction placed on the login shell is that the command name must be listed in <_:filename-1/>. If this file does not exist, the definitions are taken from the files <_:filename-2/>, <_:filename-3/> and <_:filename-4/> in that order. If <_:filename-5/> exists, then <_:filename-6/> will not be used. If the invoker is the superuser any value may be added regardless what is defined in the configuration files. An account with a restricted login shell may not change her login shell." +#: chsh.1.xml.out:123 +msgid "If this file does not exist, the definitions are taken from the files <_:filename-1/>, <_:filename-2/> and <_:filename-3/> in that order. If <_:filename-4/> exists, then <_:filename-5/> will not be used." +msgstr "" + +#. (itstool) path: para/filename +#: chsh.1.xml.out:135 +msgid "/bin/rsh" msgstr "" #. (itstool) path: refsect1/para -#: chsh.1.xml.out:141 -msgid "For this reason, placing <_:filename-1/> in <_:filename-2/> is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value." +#: chsh.1.xml.out:131 +msgid "If the invoker is the superuser any value may be added regardless what is defined in the configuration files. An account with a restricted login shell may not change her login shell. For this reason, placing <_:filename-1/> in <_:filename-2/> is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value." msgstr "" #. (itstool) path: listitem/para -#: chsh.1.xml.out:174 +#: chsh.1.xml.out:167 msgid "List of valid login shells." msgstr "" #. (itstool) path: listitem/para -#: chsh.1.xml.out:177 +#: chsh.1.xml.out:170 msgid "User defined list of valid login shells." msgstr "" #. (itstool) path: listitem/para -#: chsh.1.xml.out:183 +#: chsh.1.xml.out:176 msgid "Default configuration file if <_:filename-1/> does not exist." msgstr "" #. (itstool) path: term/filename -#: chsh.1.xml.out:188 +#: chsh.1.xml.out:181 msgid "%vendordir%/shells.d" msgstr "" #. (itstool) path: listitem/para -#: chsh.1.xml.out:190 +#: chsh.1.xml.out:183 msgid "Directory for additional vendor specific configuration files." msgstr "" #. (itstool) path: term/filename -#: chsh.1.xml.out:194 +#: chsh.1.xml.out:187 msgid "/etc/shells.d" msgstr "" #. (itstool) path: listitem/para -#: chsh.1.xml.out:196 +#: chsh.1.xml.out:189 msgid "Directory for additional user defined configuration files." msgstr "" -#. (itstool) path: arg/replaceable -#: gpasswd.1.xml.out:63 -msgid "option" -msgstr "" - -#. (itstool) path: term/option -#: groupadd.8.xml.out:88 -#: groupdel.8.xml.out:72 -#: userdel.8.xml.out:76 -msgid "--force" -msgstr "" - #. (itstool) path: author/contrib #: faillog.5.xml.out:17 #: faillog.8.xml.out:17 #: login.1.xml.out:50 -#: passwd.1.xml.out:26 +#: passwd.1.xml.out:25 #: passwd.5.xml.out:17 #: porttime.5.xml.out:17 #: shadow.3.xml.out:17 @@ -3479,9 +3403,9 @@ msgstr "" #: faillog.8.xml.out:59 #: faillog.8.xml.out:67 #: faillog.8.xml.out:76 -#: faillog.8.xml.out:203 -#: faillog.8.xml.out:211 -#: faillog.8.xml.out:238 +#: faillog.8.xml.out:204 +#: faillog.8.xml.out:212 +#: faillog.8.xml.out:239 msgid "faillog" msgstr "" @@ -3490,7 +3414,7 @@ msgstr "" #: gshadow.5.xml.out:24 #: limits.5.xml.out:37 #: login.access.5.xml.out:36 -#: login.defs.5.xml.out:106 +#: login.defs.5.xml.out:105 #: passwd.5.xml.out:35 #: porttime.5.xml.out:35 #: shadow.5.xml.out:35 @@ -3511,7 +3435,7 @@ msgstr "" #: faillog.8.xml.out:113 #: faillog.8.xml.out:138 #: faillog.8.xml.out:150 -#: faillog.8.xml.out:223 +#: faillog.8.xml.out:224 msgid "/var/log/faillog" msgstr "" @@ -3537,7 +3461,7 @@ msgstr "" #. (itstool) path: listitem/para #: faillog.5.xml.out:77 -#: faillog.8.xml.out:225 +#: faillog.8.xml.out:226 msgid "Failure logging file." msgstr "" @@ -3554,12 +3478,13 @@ msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option #: faillog.8.xml.out:72 -#: faillog.8.xml.out:215 -#: gpasswd.1.xml.out:126 +#: faillog.8.xml.out:216 +#: gpasswd.1.xml.out:125 #: groupmod.8.xml.out:73 +#: lastlog.8.xml.out:158 #: passwd.1.xml.out:153 #: usermod.8.xml.out:78 -#: usermod.8.xml.out:210 +#: usermod.8.xml.out:214 msgid "-a" msgstr "" @@ -3587,8 +3512,8 @@ msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option #: faillog.8.xml.out:89 -#: faillog.8.xml.out:169 -#: lastlog.8.xml.out:128 +#: faillog.8.xml.out:170 +#: lastlog.8.xml.out:129 msgid "-t" msgstr "" @@ -3666,90 +3591,90 @@ msgid "Reset the counters of login failures." msgstr "" #. (itstool) path: term/option -#: faillog.8.xml.out:169 -#: lastlog.8.xml.out:128 +#: faillog.8.xml.out:170 +#: lastlog.8.xml.out:129 msgid "--time" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: faillog.8.xml.out:169 -#: faillog.8.xml.out:174 +#: faillog.8.xml.out:170 +#: faillog.8.xml.out:175 #: lastlog.8.xml.out:75 #: lastlog.8.xml.out:79 -#: lastlog.8.xml.out:128 -#: lastlog.8.xml.out:133 +#: lastlog.8.xml.out:129 +#: lastlog.8.xml.out:134 msgid "DAYS" msgstr "" #. (itstool) path: listitem/para -#: faillog.8.xml.out:172 +#: faillog.8.xml.out:173 msgid "Display faillog records more recent than <_:replaceable-1/>." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: faillog.8.xml.out:180 +#: faillog.8.xml.out:181 #: lastlog.8.xml.out:90 -#: lastlog.8.xml.out:122 -#: lastlog.8.xml.out:139 -#: vipw.8.xml.out:133 +#: lastlog.8.xml.out:123 +#: lastlog.8.xml.out:140 +#: vipw.8.xml.out:134 msgid "--user" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: faillog.8.xml.out:180 -#: faillog.8.xml.out:190 +#: faillog.8.xml.out:181 #: faillog.8.xml.out:191 -#: lastlog.8.xml.out:139 -#: lastlog.8.xml.out:147 +#: faillog.8.xml.out:192 +#: lastlog.8.xml.out:140 #: lastlog.8.xml.out:148 +#: lastlog.8.xml.out:149 msgid "RANGE" msgstr "" #. (itstool) path: varlistentry/term -#: faillog.8.xml.out:179 -#: lastlog.8.xml.out:138 +#: faillog.8.xml.out:180 +#: lastlog.8.xml.out:139 msgid "<_:option-1/>, <_:option-2/> <_:replaceable-3/>|<_:replaceable-4/>" msgstr "" #. (itstool) path: listitem/para -#: faillog.8.xml.out:183 +#: faillog.8.xml.out:184 msgid "Display faillog record or maintains failure counters and limits (if used with <_:option-1/>, <_:option-2/> or <_:option-3/> options) only for the specified user(s)." msgstr "" #. (itstool) path: para/replaceable -#: faillog.8.xml.out:193 -#: lastlog.8.xml.out:149 +#: faillog.8.xml.out:194 +#: lastlog.8.xml.out:150 msgid "UID_MIN-UID_MAX" msgstr "" #. (itstool) path: para/replaceable -#: faillog.8.xml.out:194 -#: lastlog.8.xml.out:150 +#: faillog.8.xml.out:195 +#: lastlog.8.xml.out:151 msgid "-UID_MAX" msgstr "" #. (itstool) path: para/replaceable -#: faillog.8.xml.out:195 -#: lastlog.8.xml.out:151 +#: faillog.8.xml.out:196 +#: lastlog.8.xml.out:152 msgid "UID_MIN-" msgstr "" #. (itstool) path: listitem/para -#: faillog.8.xml.out:188 -#: lastlog.8.xml.out:145 +#: faillog.8.xml.out:189 +#: lastlog.8.xml.out:146 msgid "The users can be specified by a login name, a numerical user ID, or a <_:replaceable-1/> of users. This <_:replaceable-2/> of users can be specified with a min and max values (<_:replaceable-3/>), a max value (<_:replaceable-4/>), or a min value (<_:replaceable-5/>)." msgstr "" #. (itstool) path: refsect1/para -#: faillog.8.xml.out:201 +#: faillog.8.xml.out:202 msgid "When none of the <_:option-1/>, <_:option-2/>, or <_:option-3/> options are used, <_:command-4/> displays the faillog record of the specified user(s)." msgstr "" #. (itstool) path: refsect1/para -#: faillog.8.xml.out:210 +#: faillog.8.xml.out:211 msgid "<_:command-1/> only prints out users with no successful login since the last failure. To print out a user who has had a successful login since their last failure, you must explicitly request the user with the <_:option-2/> flag, or print out all users with the <_:option-3/> flag." msgstr "" @@ -3759,7 +3684,7 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: varlistentry/term -#: faillog.8.xml.out:235 +#: faillog.8.xml.out:236 #: limits.5.xml.out:125 #: limits.5.xml.out:185 #: login.1.xml.out:66 @@ -3774,15 +3699,15 @@ msgstr "" #: login.1.xml.out:119 #: login.1.xml.out:171 #: login.1.xml.out:177 +#: login.1.xml.out:222 #: login.1.xml.out:230 -#: login.1.xml.out:238 -#: login.1.xml.out:247 -#: login.1.xml.out:253 -#: login.1.xml.out:259 +#: login.1.xml.out:239 +#: login.1.xml.out:245 +#: login.1.xml.out:251 #: login.access.5.xml.out:112 -#: login.defs.5.xml.out:356 -#: login.defs.5.xml.out:537 -#: login.defs.5.xml.out:549 +#: login.defs.5.xml.out:342 +#: login.defs.5.xml.out:520 +#: login.defs.5.xml.out:532 #: newgrp.1.xml.out:133 #: nologin.8.xml.out:60 #: passwd.5.xml.out:125 @@ -3790,23 +3715,23 @@ msgstr "" #: passwd.5.xml.out:179 #: porttime.5.xml.out:121 #: shadow.5.xml.out:265 -#: sg.1.xml.out:122 +#: sg.1.xml.out:158 #: su.1.xml.out:415 msgid "login" msgstr "" #. (itstool) path: author/firstname -#: gpasswd.1.xml.out:22 +#: gpasswd.1.xml.out:21 msgid "Rafal" msgstr "" #. (itstool) path: author/surname -#: gpasswd.1.xml.out:23 +#: gpasswd.1.xml.out:22 msgid "Maszkowski" msgstr "" #. (itstool) path: author/contrib -#: gpasswd.1.xml.out:24 +#: gpasswd.1.xml.out:23 #: login.access.5.xml.out:18 #: pwconv.8.xml.out:23 #: suauth.5.xml.out:17 @@ -3814,84 +3739,91 @@ msgid "Creation, 1996" msgstr "" #. (itstool) path: refpurpose/phrase -#: gpasswd.1.xml.out:49 +#: gpasswd.1.xml.out:48 msgid "administer <_:filename-1/>" msgstr "" #. (itstool) path: refpurpose/phrase -#: gpasswd.1.xml.out:52 +#: gpasswd.1.xml.out:51 msgid "administer <_:filename-1/> and <_:filename-2/>" msgstr "" +#. (itstool) path: arg/replaceable +#: gpasswd.1.xml.out:62 +msgid "option" +msgstr "" + #. (itstool) path: arg/replaceable #. (itstool) path: para/replaceable #. (itstool) path: citerefentry/refentrytitle #. (itstool) path: para/emphasis -#: gpasswd.1.xml.out:66 -#: gpasswd.1.xml.out:91 -#: gpasswd.1.xml.out:131 -#: gpasswd.1.xml.out:144 +#. (itstool) path: para/filename +#: gpasswd.1.xml.out:65 +#: gpasswd.1.xml.out:90 +#: gpasswd.1.xml.out:130 +#: gpasswd.1.xml.out:143 #: gpasswd.1.xml.out:179 #: gpasswd.1.xml.out:183 #: gpasswd.1.xml.out:195 #: gpasswd.1.xml.out:199 -#: gpasswd.1.xml.out:294 +#: gpasswd.1.xml.out:293 #: grpck.8.xml.out:49 -#: grpck.8.xml.out:188 -#: grpck.8.xml.out:280 +#: grpck.8.xml.out:189 +#: grpck.8.xml.out:281 #: gshadow.5.xml.out:156 #: limits.5.xml.out:138 #: newgrp.1.xml.out:48 #: newgrp.1.xml.out:145 -#: pwck.8.xml.out:336 +#: pwck.8.xml.out:337 #: pwconv.8.xml.out:114 #: pwconv.8.xml.out:120 #: pwconv.8.xml.out:120 -#: sg.1.xml.out:134 -#: vipw.8.xml.out:208 +#: sg.1.xml.out:52 +#: sg.1.xml.out:170 +#: vipw.8.xml.out:209 msgid "group" msgstr "" #. (itstool) path: para/phrase -#: gpasswd.1.xml.out:75 +#: gpasswd.1.xml.out:74 msgid ", and <_:filename-1/>" msgstr "" #. (itstool) path: para/phrase -#: gpasswd.1.xml.out:78 +#: gpasswd.1.xml.out:77 msgid "administrators," msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:73 +#: gpasswd.1.xml.out:72 msgid "The <_:command-1/> command is used to administer <_:filename-2/><_:phrase-3/>. Every group can have <_:phrase-4/> members and a password." msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#: gpasswd.1.xml.out:82 -#: gpasswd.1.xml.out:114 +#: gpasswd.1.xml.out:81 +#: gpasswd.1.xml.out:113 #: gpasswd.1.xml.out:207 msgid "-A" msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:81 +#: gpasswd.1.xml.out:80 msgid "System administrators can use the <_:option-1/> option to define group administrator(s) and the <_:option-2/> option to define members. They have all rights of group administrators and members." msgstr "" #. (itstool) path: para/phrase -#: gpasswd.1.xml.out:88 +#: gpasswd.1.xml.out:87 msgid "a group administrator" msgstr "" #. (itstool) path: para/phrase -#: gpasswd.1.xml.out:89 +#: gpasswd.1.xml.out:88 msgid "a system administrator" msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:86 +#: gpasswd.1.xml.out:85 msgid "<_:command-1/> called by <_:phrase-2/> <_:phrase-3/> with a group name only prompts for the new password of the <_:replaceable-4/>." msgstr "" @@ -3900,12 +3832,10 @@ msgstr "" #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command -#: gpasswd.1.xml.out:95 +#: gpasswd.1.xml.out:94 #: gpasswd.1.xml.out:182 #: gpasswd.1.xml.out:198 -#: gpasswd.1.xml.out:279 -#: groups.1.xml.out:71 -#: groups.1.xml.out:92 +#: gpasswd.1.xml.out:278 #: gshadow.5.xml.out:76 #: gshadow.5.xml.out:165 #: newgrp.1.xml.out:34 @@ -3914,76 +3844,73 @@ msgstr "" #: newgrp.1.xml.out:55 #: newgrp.1.xml.out:63 #: newgrp.1.xml.out:66 -#: sg.1.xml.out:60 -#: sg.1.xml.out:64 #: sg.1.xml.out:65 -#: sg.1.xml.out:66 -#: sg.1.xml.out:125 +#: sg.1.xml.out:69 +#: sg.1.xml.out:70 +#: sg.1.xml.out:71 +#: sg.1.xml.out:161 msgid "newgrp" msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:93 +#: gpasswd.1.xml.out:92 msgid "If a password is set the members can still use <_:citerefentry-1/> without a password, and non-members must supply the password." msgstr "" #. (itstool) path: refsect2/title -#: gpasswd.1.xml.out:101 +#: gpasswd.1.xml.out:100 msgid "Notes about group passwords" msgstr "" #. (itstool) path: refsect2/para -#: gpasswd.1.xml.out:102 +#: gpasswd.1.xml.out:101 msgid "Group passwords are an inherent security problem since more than one person is permitted to know the password. However, groups are a useful tool for permitting co-operation between different users." msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:113 +#: gpasswd.1.xml.out:112 msgid "Except for the <_:option-1/> and <_:option-2/> options, the options cannot be combined." msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:117 +#: gpasswd.1.xml.out:116 msgid "The options cannot be combined." msgstr "" #. (itstool) path: term/option -#: gpasswd.1.xml.out:126 +#: gpasswd.1.xml.out:125 msgid "--add" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#. (itstool) path: arg/replaceable -#: gpasswd.1.xml.out:126 -#: gpasswd.1.xml.out:130 -#: gpasswd.1.xml.out:139 -#: gpasswd.1.xml.out:143 +#: gpasswd.1.xml.out:125 +#: gpasswd.1.xml.out:129 +#: gpasswd.1.xml.out:138 +#: gpasswd.1.xml.out:142 #: gpasswd.1.xml.out:207 #: gpasswd.1.xml.out:219 -#: groups.1.xml.out:48 -#: groups.1.xml.out:59 msgid "user" msgstr "" #. (itstool) path: listitem/para -#: gpasswd.1.xml.out:129 +#: gpasswd.1.xml.out:128 msgid "Add the <_:replaceable-1/> to the named <_:replaceable-2/>." msgstr "" #. (itstool) path: term/option -#: gpasswd.1.xml.out:139 +#: gpasswd.1.xml.out:138 #: passwd.1.xml.out:164 msgid "--delete" msgstr "" #. (itstool) path: listitem/para -#: gpasswd.1.xml.out:142 +#: gpasswd.1.xml.out:141 msgid "Remove the <_:replaceable-1/> from the named <_:replaceable-2/>." msgstr "" #. (itstool) path: term/option -#: gpasswd.1.xml.out:160 +#: gpasswd.1.xml.out:159 msgid "-Q" msgstr "" @@ -4054,19 +3981,19 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: gpasswd.1.xml.out:285 -#: groupadd.8.xml.out:357 +#: gpasswd.1.xml.out:284 +#: groupadd.8.xml.out:358 #: groupdel.8.xml.out:34 #: groupdel.8.xml.out:41 #: groupdel.8.xml.out:47 #: groupdel.8.xml.out:57 #: groupdel.8.xml.out:66 -#: groupdel.8.xml.out:165 -#: groupmod.8.xml.out:341 -#: login.defs.5.xml.out:312 -#: useradd.8.xml.out:913 -#: userdel.8.xml.out:328 -#: usermod.8.xml.out:640 +#: groupdel.8.xml.out:166 +#: groupmod.8.xml.out:342 +#: login.defs.5.xml.out:305 +#: useradd.8.xml.out:964 +#: userdel.8.xml.out:321 +#: usermod.8.xml.out:658 msgid "groupdel" msgstr "" @@ -4076,21 +4003,21 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: gpasswd.1.xml.out:288 -#: groupadd.8.xml.out:360 -#: groupdel.8.xml.out:220 +#: gpasswd.1.xml.out:287 +#: groupadd.8.xml.out:361 +#: groupdel.8.xml.out:221 #: groupmod.8.xml.out:34 #: groupmod.8.xml.out:41 #: groupmod.8.xml.out:47 #: groupmod.8.xml.out:58 #: groupmod.8.xml.out:67 -#: groupmod.8.xml.out:256 +#: groupmod.8.xml.out:257 #: grpck.8.xml.out:107 -#: grpck.8.xml.out:283 -#: login.defs.5.xml.out:324 -#: useradd.8.xml.out:916 -#: userdel.8.xml.out:331 -#: usermod.8.xml.out:643 +#: grpck.8.xml.out:284 +#: login.defs.5.xml.out:311 +#: useradd.8.xml.out:967 +#: userdel.8.xml.out:324 +#: usermod.8.xml.out:661 msgid "groupmod" msgstr "" @@ -4100,7 +4027,7 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #. (itstool) path: varlistentry/term -#: gpasswd.1.xml.out:291 +#: gpasswd.1.xml.out:290 #: grpck.8.xml.out:33 #: grpck.8.xml.out:40 #: grpck.8.xml.out:46 @@ -4108,13 +4035,13 @@ msgstr "" #: grpck.8.xml.out:116 #: grpck.8.xml.out:128 #: grpck.8.xml.out:141 -#: grpck.8.xml.out:184 -#: grpck.8.xml.out:234 +#: grpck.8.xml.out:185 +#: grpck.8.xml.out:235 #: gshadow.5.xml.out:159 -#: login.defs.5.xml.out:331 -#: pwck.8.xml.out:339 -#: pwconv.8.xml.out:198 -#: pwconv.8.xml.out:242 +#: login.defs.5.xml.out:317 +#: pwck.8.xml.out:340 +#: pwconv.8.xml.out:199 +#: pwconv.8.xml.out:243 msgid "grpck" msgstr "" @@ -4122,10 +4049,9 @@ msgstr "" #. (itstool) path: para/filename #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname -#. (itstool) path: para/emphasis -#: gpasswd.1.xml.out:297 +#: gpasswd.1.xml.out:296 #: grpck.8.xml.out:95 -#: grpck.8.xml.out:287 +#: grpck.8.xml.out:288 #: gshadow.5.xml.out:22 #: gshadow.5.xml.out:29 #: newgrp.1.xml.out:148 @@ -4133,22 +4059,22 @@ msgstr "" #: pwconv.8.xml.out:115 #: pwconv.8.xml.out:121 #: pwconv.8.xml.out:122 -#: sg.1.xml.out:137 -#: vipw.8.xml.out:211 +#: sg.1.xml.out:173 +#: vipw.8.xml.out:212 msgid "gshadow" msgstr "" #. (itstool) path: para/phrase -#: gpasswd.1.xml.out:295 +#: gpasswd.1.xml.out:294 #: newgrp.1.xml.out:146 -#: sg.1.xml.out:135 +#: sg.1.xml.out:171 msgid ", <_:citerefentry-1/>" msgstr "" #. (itstool) path: refsect1/para -#: gpasswd.1.xml.out:277 +#: gpasswd.1.xml.out:276 #: newgrp.1.xml.out:128 -#: sg.1.xml.out:117 +#: sg.1.xml.out:153 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/><_:phrase-7/>." msgstr "" @@ -4171,7 +4097,7 @@ msgstr "" #. (itstool) path: refsect1/para #: groupadd.8.xml.out:66 -msgid "Groupnames may contain only lower and upper case letters, digits, underscores, or dashes. They can end with a dollar sign. Dashes are not allowed at the beginning of the groupname. Fully numeric groupnames and groupnames . or .. are also disallowed." +msgid "Groupnames may contain only lower and upper case letters, digits, underscores, dashes, or dots. They can end with a dollar sign. Dashes are not allowed at the beginning of the groupname. Fully numeric groupnames and groupnames . or .. are also disallowed." msgstr "" #. (itstool) path: refsect1/para @@ -4179,23 +4105,30 @@ msgstr "" msgid "Groupnames may only be up to 32 characters long." msgstr "" +#. (itstool) path: term/option +#: groupadd.8.xml.out:88 +#: groupdel.8.xml.out:72 +#: userdel.8.xml.out:76 +msgid "--force" +msgstr "" + #. (itstool) path: para/option #. (itstool) path: term/option #: groupadd.8.xml.out:94 #: groupadd.8.xml.out:95 #: groupadd.8.xml.out:102 -#: groupadd.8.xml.out:236 +#: groupadd.8.xml.out:237 #: groupmod.8.xml.out:82 #: groupmod.8.xml.out:136 -#: groupmod.8.xml.out:201 +#: groupmod.8.xml.out:202 #: useradd.8.xml.out:96 -#: useradd.8.xml.out:230 -#: useradd.8.xml.out:264 -#: useradd.8.xml.out:393 -#: useradd.8.xml.out:398 -#: useradd.8.xml.out:559 -#: useradd.8.xml.out:659 -#: usermod.8.xml.out:174 +#: useradd.8.xml.out:271 +#: useradd.8.xml.out:305 +#: useradd.8.xml.out:439 +#: useradd.8.xml.out:444 +#: useradd.8.xml.out:606 +#: useradd.8.xml.out:705 +#: usermod.8.xml.out:178 #: vipw.8.xml.out:90 msgid "-g" msgstr "" @@ -4208,9 +4141,9 @@ msgstr "" #. (itstool) path: term/option #: groupadd.8.xml.out:102 #: groupmod.8.xml.out:82 -#: useradd.8.xml.out:230 -#: useradd.8.xml.out:659 -#: usermod.8.xml.out:174 +#: useradd.8.xml.out:271 +#: useradd.8.xml.out:705 +#: usermod.8.xml.out:178 msgid "--gid" msgstr "" @@ -4220,13 +4153,12 @@ msgstr "" #: groupadd.8.xml.out:102 #: groupadd.8.xml.out:105 #: groupadd.8.xml.out:151 -#: groupmod.8.xml.out:73 #: groupmod.8.xml.out:82 #: groupmod.8.xml.out:87 #: groupmod.8.xml.out:91 #: groupmod.8.xml.out:137 #: newusers.8.xml.out:302 -#: useradd.8.xml.out:471 +#: useradd.8.xml.out:517 msgid "GID" msgstr "" @@ -4257,7 +4189,7 @@ msgstr "" #. (itstool) path: listitem/para #: groupadd.8.xml.out:111 -#: useradd.8.xml.out:543 +#: useradd.8.xml.out:590 msgid "See also the <_:option-1/> option and the <_:option-2/> description." msgstr "" @@ -4268,35 +4200,35 @@ msgstr "" #: groupadd.8.xml.out:134 #: groupadd.8.xml.out:135 #: groupadd.8.xml.out:138 -#: useradd.8.xml.out:305 -#: useradd.8.xml.out:316 -#: useradd.8.xml.out:319 -#: useradd.8.xml.out:321 -#: useradd.8.xml.out:322 +#: useradd.8.xml.out:351 +#: useradd.8.xml.out:362 +#: useradd.8.xml.out:365 +#: useradd.8.xml.out:367 +#: useradd.8.xml.out:368 msgid "-K" msgstr "" #. (itstool) path: term/option #: groupadd.8.xml.out:125 -#: useradd.8.xml.out:305 +#: useradd.8.xml.out:351 msgid "--key" msgstr "" #. (itstool) path: term/replaceable #: groupadd.8.xml.out:125 -#: useradd.8.xml.out:305 +#: useradd.8.xml.out:351 msgid "KEY" msgstr "" #. (itstool) path: term/replaceable #: groupadd.8.xml.out:125 -#: useradd.8.xml.out:305 +#: useradd.8.xml.out:351 msgid "VALUE" msgstr "" #. (itstool) path: varlistentry/term #: groupadd.8.xml.out:124 -#: useradd.8.xml.out:304 +#: useradd.8.xml.out:350 msgid "<_:option-1/>, <_:option-2/> <_:replaceable-3/>=<_:replaceable-4/>" msgstr "" @@ -4307,14 +4239,14 @@ msgstr "" #. (itstool) path: para/replaceable #: groupadd.8.xml.out:134 -#: useradd.8.xml.out:322 +#: useradd.8.xml.out:368 msgid "100" msgstr "" #. (itstool) path: para/replaceable #: groupadd.8.xml.out:135 #: groupadd.8.xml.out:138 -#: useradd.8.xml.out:323 +#: useradd.8.xml.out:369 msgid "499" msgstr "" @@ -4326,11 +4258,12 @@ msgstr "" #. (itstool) path: para/replaceable #. (itstool) path: term/replaceable #: groupadd.8.xml.out:138 -#: groupadd.8.xml.out:333 -#: groupdel.8.xml.out:192 -#: groupmod.8.xml.out:295 -#: useradd.8.xml.out:873 -#: userdel.8.xml.out:265 +#: groupadd.8.xml.out:334 +#: groupdel.8.xml.out:193 +#: groupmod.8.xml.out:296 +#: passwd.1.xml.out:488 +#: useradd.8.xml.out:918 +#: userdel.8.xml.out:258 msgid "10" msgstr "" @@ -4342,8 +4275,8 @@ msgstr "" #. (itstool) path: term/option #: groupadd.8.xml.out:145 #: groupmod.8.xml.out:132 -#: useradd.8.xml.out:407 -#: usermod.8.xml.out:271 +#: useradd.8.xml.out:453 +#: usermod.8.xml.out:275 msgid "--non-unique" msgstr "" @@ -4353,7 +4286,6 @@ msgid "permits the creation of a group with an already used numerical ID. As a r msgstr "" #. (itstool) path: term/option -#. (itstool) path: group/arg #. (itstool) path: cmdsynopsis/arg #. (itstool) path: para/option #: groupadd.8.xml.out:158 @@ -4363,10 +4295,10 @@ msgstr "" #: login.1.xml.out:95 #: login.1.xml.out:212 #: su.1.xml.out:207 -#: useradd.8.xml.out:427 -#: usermod.8.xml.out:237 -#: usermod.8.xml.out:290 -#: usermod.8.xml.out:411 +#: useradd.8.xml.out:473 +#: usermod.8.xml.out:241 +#: usermod.8.xml.out:294 +#: usermod.8.xml.out:416 #: vipw.8.xml.out:102 msgid "-p" msgstr "" @@ -4374,16 +4306,16 @@ msgstr "" #. (itstool) path: term/option #: groupadd.8.xml.out:158 #: groupmod.8.xml.out:143 -#: useradd.8.xml.out:427 -#: usermod.8.xml.out:290 +#: useradd.8.xml.out:473 +#: usermod.8.xml.out:294 msgid "--password" msgstr "" #. (itstool) path: term/replaceable #: groupadd.8.xml.out:158 #: groupmod.8.xml.out:143 -#: useradd.8.xml.out:427 -#: usermod.8.xml.out:290 +#: useradd.8.xml.out:473 +#: usermod.8.xml.out:294 msgid "PASSWORD" msgstr "" @@ -4395,42 +4327,42 @@ msgstr "" #: passwd.5.xml.out:103 #: passwd.5.xml.out:109 #: passwd.5.xml.out:170 -#: shadow.5.xml.out:88 -#: shadow.5.xml.out:94 -#: useradd.8.xml.out:432 -#: useradd.8.xml.out:907 -#: usermod.8.xml.out:295 -#: usermod.8.xml.out:631 +#: shadow.5.xml.out:93 +#: shadow.5.xml.out:99 +#: useradd.8.xml.out:478 +#: useradd.8.xml.out:958 +#: usermod.8.xml.out:299 +#: usermod.8.xml.out:649 msgid "crypt" msgstr "" #. (itstool) path: citerefentry/manvolnum #. (itstool) path: term/replaceable +#. (itstool) path: para/manvolnum #. (itstool) path: refmeta/manvolnum #: groupadd.8.xml.out:164 -#: groupadd.8.xml.out:315 +#: groupadd.8.xml.out:316 #: groupmod.8.xml.out:148 -#: groupmod.8.xml.out:271 -#: groups.1.xml.out:68 -#: groups.1.xml.out:104 -#: grpck.8.xml.out:255 +#: groupmod.8.xml.out:272 +#: grpck.8.xml.out:256 #: gshadow.5.xml.out:63 #: gshadow.5.xml.out:69 -#: passwd.1.xml.out:465 +#: passwd.1.xml.out:464 +#: passwd.1.xml.out:490 #: passwd.5.xml.out:104 #: passwd.5.xml.out:110 #: passwd.5.xml.out:170 #: passwd.5.xml.out:176 -#: pwck.8.xml.out:305 +#: pwck.8.xml.out:306 #: shadow.3.xml.out:34 #: shadow.3.xml.out:217 -#: shadow.5.xml.out:89 -#: shadow.5.xml.out:95 -#: useradd.8.xml.out:433 -#: useradd.8.xml.out:849 -#: useradd.8.xml.out:907 -#: usermod.8.xml.out:296 -#: usermod.8.xml.out:631 +#: shadow.5.xml.out:94 +#: shadow.5.xml.out:100 +#: useradd.8.xml.out:479 +#: useradd.8.xml.out:894 +#: useradd.8.xml.out:958 +#: usermod.8.xml.out:300 +#: usermod.8.xml.out:649 msgid "3" msgstr "" @@ -4447,9 +4379,9 @@ msgstr "" #. (itstool) path: para/emphasis #: groupadd.8.xml.out:173 #: groupmod.8.xml.out:152 -#: useradd.8.xml.out:446 -#: userdel.8.xml.out:93 -#: usermod.8.xml.out:299 +#: useradd.8.xml.out:492 +#: userdel.8.xml.out:85 +#: usermod.8.xml.out:303 msgid "Note:" msgstr "" @@ -4462,15 +4394,15 @@ msgstr "" #. (itstool) path: listitem/para #: groupadd.8.xml.out:177 #: groupmod.8.xml.out:156 -#: useradd.8.xml.out:450 -#: usermod.8.xml.out:309 +#: useradd.8.xml.out:496 +#: usermod.8.xml.out:313 msgid "You should make sure the password respects the system's password policy." msgstr "" #. (itstool) path: term/option #: groupadd.8.xml.out:185 #: newusers.8.xml.out:289 -#: useradd.8.xml.out:458 +#: useradd.8.xml.out:504 msgid "--system" msgstr "" @@ -4496,115 +4428,112 @@ msgstr "" msgid "The numeric identifiers of new system groups are chosen in the <_:option-1/>-<_:option-2/> range, defined in <_:filename-3/>, instead of <_:option-4/>-<_:option-5/>." msgstr "" -#. (itstool) path: term/option -#. (itstool) path: para/option -#: groupadd.8.xml.out:229 -#: groupadd.8.xml.out:237 -#: groupmod.8.xml.out:194 -#: groupmod.8.xml.out:202 +#. (itstool) path: term/option +#. (itstool) path: para/option +#: groupadd.8.xml.out:230 +#: groupadd.8.xml.out:238 +#: groupmod.8.xml.out:195 +#: groupmod.8.xml.out:203 #: useradd.8.xml.out:96 -#: useradd.8.xml.out:399 -#: useradd.8.xml.out:551 -#: useradd.8.xml.out:560 -#: usermod.8.xml.out:238 -#: usermod.8.xml.out:405 +#: useradd.8.xml.out:445 +#: useradd.8.xml.out:598 +#: useradd.8.xml.out:607 +#: usermod.8.xml.out:242 +#: usermod.8.xml.out:410 msgid "-U" msgstr "" #. (itstool) path: term/option -#: groupadd.8.xml.out:229 -#: groupmod.8.xml.out:194 +#: groupadd.8.xml.out:230 +#: groupmod.8.xml.out:195 msgid "--users" msgstr "" #. (itstool) path: listitem/para -#: groupadd.8.xml.out:232 -#: groupmod.8.xml.out:197 -msgid "A list of usernames to add as members of the group." +#: groupadd.8.xml.out:233 +#: groupmod.8.xml.out:198 +msgid "A comma-separated list of usernames to add as members of the group." msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#: groupadd.8.xml.out:237 -#: groupmod.8.xml.out:202 +#: groupadd.8.xml.out:238 #: useradd.8.xml.out:96 -#: useradd.8.xml.out:388 -#: useradd.8.xml.out:399 -#: useradd.8.xml.out:560 +#: useradd.8.xml.out:434 +#: useradd.8.xml.out:445 +#: useradd.8.xml.out:607 msgid "-N" msgstr "" #. (itstool) path: para/option #. (itstool) path: para/phrase -#: groupadd.8.xml.out:238 -#: groupmod.8.xml.out:203 -#: login.defs.5.xml.out:467 +#: groupadd.8.xml.out:239 +#: groupmod.8.xml.out:204 +#: login.defs.5.xml.out:450 #: useradd.8.xml.out:97 -#: useradd.8.xml.out:240 -#: useradd.8.xml.out:400 -#: useradd.8.xml.out:561 -#: userdel.8.xml.out:86 -#: userdel.8.xml.out:296 +#: useradd.8.xml.out:281 +#: useradd.8.xml.out:446 +#: useradd.8.xml.out:608 +#: userdel.8.xml.out:289 msgid "USERGROUPS_ENAB" msgstr "" #. (itstool) path: listitem/para -#: groupadd.8.xml.out:235 -#: groupmod.8.xml.out:200 -#: useradd.8.xml.out:397 -#: useradd.8.xml.out:558 +#: groupadd.8.xml.out:236 +#: useradd.8.xml.out:443 +#: useradd.8.xml.out:605 msgid "The default behavior (if the <_:option-1/>, <_:option-2/>, and <_:option-3/> options are not specified) is defined by the <_:option-4/> variable in <_:filename-5/>." msgstr "" #. (itstool) path: refsect1/para -#: groupadd.8.xml.out:286 +#: groupadd.8.xml.out:287 msgid "You may not add a NIS or LDAP group. This must be performed on the corresponding server." msgstr "" #. (itstool) path: refsect1/para -#: groupadd.8.xml.out:290 +#: groupadd.8.xml.out:291 msgid "If the groupname already exists in an external group database such as NIS or LDAP, <_:command-1/> will deny the group creation request." msgstr "" #. (itstool) path: listitem/para -#: groupadd.8.xml.out:317 -#: passwd.1.xml.out:485 -#: useradd.8.xml.out:851 +#: groupadd.8.xml.out:318 +#: passwd.1.xml.out:484 +#: useradd.8.xml.out:896 msgid "invalid argument to option" msgstr "" #. (itstool) path: term/replaceable -#: groupadd.8.xml.out:321 -#: groupmod.8.xml.out:277 -#: grpck.8.xml.out:261 -#: passwd.1.xml.out:471 -#: pwck.8.xml.out:311 -#: useradd.8.xml.out:855 +#: groupadd.8.xml.out:322 +#: groupmod.8.xml.out:278 +#: grpck.8.xml.out:262 +#: passwd.1.xml.out:470 +#: pwck.8.xml.out:312 +#: useradd.8.xml.out:900 msgid "4" msgstr "" #. (itstool) path: listitem/para -#: groupadd.8.xml.out:323 +#: groupadd.8.xml.out:324 msgid "GID is already used (when called without <_:option-1/>)" msgstr "" #. (itstool) path: term/replaceable -#: groupadd.8.xml.out:327 -#: groupmod.8.xml.out:289 -#: useradd.8.xml.out:867 +#: groupadd.8.xml.out:328 +#: groupmod.8.xml.out:290 +#: useradd.8.xml.out:912 msgid "9" msgstr "" #. (itstool) path: listitem/para -#: groupadd.8.xml.out:329 +#: groupadd.8.xml.out:330 msgid "group name is already used" msgstr "" #. (itstool) path: listitem/para -#: groupadd.8.xml.out:335 -#: groupdel.8.xml.out:194 -#: useradd.8.xml.out:875 -#: userdel.8.xml.out:267 +#: groupadd.8.xml.out:336 +#: groupdel.8.xml.out:195 +#: useradd.8.xml.out:920 +#: userdel.8.xml.out:260 msgid "can't update group file" msgstr "" @@ -4614,23 +4543,22 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: groupadd.8.xml.out:369 -#: groupdel.8.xml.out:226 -#: groupmod.8.xml.out:350 -#: login.defs.5.xml.out:499 -#: useradd.8.xml.out:933 +#: groupadd.8.xml.out:370 +#: groupdel.8.xml.out:227 +#: groupmod.8.xml.out:351 +#: login.defs.5.xml.out:482 +#: useradd.8.xml.out:984 #: userdel.8.xml.out:39 #: userdel.8.xml.out:46 #: userdel.8.xml.out:51 #: userdel.8.xml.out:62 #: userdel.8.xml.out:71 -#: userdel.8.xml.out:82 -#: userdel.8.xml.out:211 -#: userdel.8.xml.out:232 -#: userdel.8.xml.out:283 -#: userdel.8.xml.out:298 -#: userdel.8.xml.out:300 -#: usermod.8.xml.out:660 +#: userdel.8.xml.out:204 +#: userdel.8.xml.out:225 +#: userdel.8.xml.out:276 +#: userdel.8.xml.out:291 +#: userdel.8.xml.out:293 +#: usermod.8.xml.out:678 msgid "userdel" msgstr "" @@ -4640,28 +4568,28 @@ msgstr "" #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command -#: groupadd.8.xml.out:372 -#: groupdel.8.xml.out:229 -#: groupmod.8.xml.out:353 -#: login.defs.5.xml.out:509 -#: passwd.1.xml.out:513 +#: groupadd.8.xml.out:373 +#: groupdel.8.xml.out:230 +#: groupmod.8.xml.out:354 +#: login.defs.5.xml.out:492 +#: passwd.1.xml.out:518 #: pwck.8.xml.out:140 -#: pwck.8.xml.out:348 -#: useradd.8.xml.out:936 -#: userdel.8.xml.out:345 +#: pwck.8.xml.out:349 +#: useradd.8.xml.out:987 +#: userdel.8.xml.out:338 #: usermod.8.xml.out:40 #: usermod.8.xml.out:47 #: usermod.8.xml.out:53 #: usermod.8.xml.out:64 #: usermod.8.xml.out:72 -#: usermod.8.xml.out:263 -#: usermod.8.xml.out:539 +#: usermod.8.xml.out:267 +#: usermod.8.xml.out:557 msgid "usermod" msgstr "" #. (itstool) path: refsect1/para -#: groupadd.8.xml.out:344 -#: groupmod.8.xml.out:324 +#: groupadd.8.xml.out:345 +#: groupmod.8.xml.out:325 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>, <_:citerefentry-8/>, <_:citerefentry-9/>, <_:citerefentry-10/>." msgstr "" @@ -4684,12 +4612,12 @@ msgstr "" #: groupmod.8.xml.out:125 #: suauth.5.xml.out:85 #: suauth.5.xml.out:87 -#: useradd.8.xml.out:230 -#: useradd.8.xml.out:249 -#: useradd.8.xml.out:394 -#: useradd.8.xml.out:659 -#: useradd.8.xml.out:668 -#: usermod.8.xml.out:174 +#: useradd.8.xml.out:271 +#: useradd.8.xml.out:290 +#: useradd.8.xml.out:440 +#: useradd.8.xml.out:705 +#: useradd.8.xml.out:714 +#: usermod.8.xml.out:178 msgid "GROUP" msgstr "" @@ -4704,170 +4632,50 @@ msgid "This option forces the removal of the group, even if there's some user ha msgstr "" #. (itstool) path: listitem/para -#: groupdel.8.xml.out:105 -#: groupmod.8.xml.out:180 -#: userdel.8.xml.out:139 +#: groupdel.8.xml.out:106 +#: groupmod.8.xml.out:181 +#: userdel.8.xml.out:132 msgid "Apply changes in the <_:replaceable-1/> directory and use the configuration files from the <_:replaceable-2/> directory. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. PAM authentication is using the host files. No SELINUX support." msgstr "" #. (itstool) path: refsect1/para -#: groupdel.8.xml.out:122 +#: groupdel.8.xml.out:123 msgid "You may not remove the primary group of any existing user. You must remove the user before you remove the group." msgstr "" #. (itstool) path: refsect1/para -#: groupdel.8.xml.out:126 +#: groupdel.8.xml.out:127 msgid "You should manually check all file systems to ensure that no files remain owned by this group." msgstr "" #. (itstool) path: term/replaceable -#: groupdel.8.xml.out:180 -#: groupmod.8.xml.out:283 -#: passwd.1.xml.out:483 -#: pwck.8.xml.out:323 -#: useradd.8.xml.out:861 -#: userdel.8.xml.out:253 +#: groupdel.8.xml.out:181 +#: groupmod.8.xml.out:284 +#: passwd.1.xml.out:482 +#: pwck.8.xml.out:324 +#: useradd.8.xml.out:906 +#: userdel.8.xml.out:246 msgid "6" msgstr "" #. (itstool) path: listitem/para -#: groupdel.8.xml.out:182 -#: useradd.8.xml.out:863 +#: groupdel.8.xml.out:183 +#: useradd.8.xml.out:908 msgid "specified group doesn't exist" msgstr "" #. (itstool) path: listitem/para -#: groupdel.8.xml.out:188 +#: groupdel.8.xml.out:189 msgid "can't remove user's primary group" msgstr "" #. (itstool) path: refsect1/para -#: groupdel.8.xml.out:203 -#: login.1.xml.out:375 +#: groupdel.8.xml.out:204 +#: login.1.xml.out:367 #: shadow.5.xml.out:260 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>, <_:citerefentry-8/>, <_:citerefentry-9/>." msgstr "" -#. (itstool) path: author/firstname -msgid "George" -msgstr "" - -#. (itstool) path: author/surname -msgid "Kraft" -msgstr "" - -#. (itstool) path: author/lineage -msgid "IV" -msgstr "" - -#. (itstool) path: author/contrib -msgid "Creation, 2000" -msgstr "" - -#. (itstool) path: refmeta/refentrytitle -#. (itstool) path: refnamediv/refname -#. (itstool) path: cmdsynopsis/command -#. (itstool) path: para/command -#. (itstool) path: varlistentry/term -#: login.defs.5.xml.out:318 -msgstr "" - -#. (itstool) path: refnamediv/refpurpose -msgid "administer members of a user's primary group" -msgstr "" - -#. (itstool) path: group/arg -msgid "-a <_:replaceable-1/>" -msgstr "" - -#. (itstool) path: group/arg -msgid "-d <_:replaceable-1/>" -msgstr "" - -#. (itstool) path: group/arg -msgid "-g <_:replaceable-1/>" -msgstr "" - -#. (itstool) path: refsect1/para -msgid "The <_:command-1/> command allows a user to administer their own group membership list without the requirement of superuser privileges. The <_:command-2/> utility is for systems that configure its users to be in their own name sake primary group (i.e., guest / guest)." -msgstr "" - -#. (itstool) path: refsect1/para -msgid "Only the superuser, as administrator, can use <_:command-1/> to alter the memberships of other groups." -msgstr "" - -#. (itstool) path: listitem/para -msgid "Add a user to the group membership list." -msgstr "" - -#. (itstool) path: listitem/para -msgid "If the <_:filename-1/> file exist, and the group has no entry in the <_:filename-2/> file, a new entry will be created." -msgstr "" - -#. (itstool) path: listitem/para -msgid "Delete a user from the group membership list." -msgstr "" - -#. (itstool) path: listitem/para -msgid "If the <_:filename-1/> file exist, the user will be removed from the list of members and administrators of the group." -msgstr "" - -#. (itstool) path: term/option -#: vipw.8.xml.out:90 -msgid "--group" -msgstr "" - -#. (itstool) path: listitem/para -msgid "The superuser can specify which group membership list to modify." -msgstr "" - -#. (itstool) path: listitem/para -msgid "List the group membership list." -msgstr "" - -#. (itstool) path: term/option -msgid "--purge" -msgstr "" - -#. (itstool) path: listitem/para -msgid "Purge all users from the group membership list." -msgstr "" - -#. (itstool) path: refsect1/title -msgid "SETUP" -msgstr "" - -#. (itstool) path: para/literal -msgid "2710" -msgstr "" - -#. (itstool) path: para/emphasis -#. (itstool) path: refmeta/refentrytitle -#. (itstool) path: refnamediv/refname -#. (itstool) path: cmdsynopsis/command -#. (itstool) path: para/command -#: groups.1.xml.out:33 -#: groups.1.xml.out:40 -#: groups.1.xml.out:46 -#: groups.1.xml.out:56 -msgid "groups" -msgstr "" - -#. (itstool) path: refsect1/para -msgid "The <_:command-1/> executable should be in mode <_:literal-2/> as user <_:emphasis-3/> and in group <_:emphasis-4/>. The system administrator can add users to group <_:emphasis-5/> to allow or disallow them using the <_:command-6/> utility to manage their own group membership list." -msgstr "" - -#. (itstool) path: refsect1/programlisting -msgstr "" - -#. (itstool) path: listitem/para -msgid "secure group account information" -msgstr "" - -#. (itstool) path: refsect1/para -msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>, <_:citerefentry-8/>." -msgstr "" - #. (itstool) path: refnamediv/refpurpose #: groupmod.8.xml.out:42 msgid "modify a group definition on the system" @@ -4911,13 +4719,13 @@ msgstr "" #. (itstool) path: listitem/para #: groupmod.8.xml.out:105 -#: usermod.8.xml.out:395 +#: usermod.8.xml.out:400 msgid "No checks will be performed with regard to the <_:option-1/>, <_:option-2/>, <_:option-3/>, or <_:option-4/> from <_:filename-5/>." msgstr "" #. (itstool) path: term/option #: groupmod.8.xml.out:121 -#: passwd.1.xml.out:242 +#: passwd.1.xml.out:241 msgid "-n" msgstr "" @@ -4949,134 +4757,77 @@ msgid "The encrypted password, as returned by <_:citerefentry-1/>." msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:261 +#: groupmod.8.xml.out:201 +msgid "The default behavior (if the <_:option-1/> and <_:option-2/> options are not specified) is defined by the <_:option-3/> variable in <_:filename-4/>." +msgstr "" + +#. (itstool) path: listitem/para +#: groupmod.8.xml.out:262 msgid "E_SUCCESS: success" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:267 +#: groupmod.8.xml.out:268 msgid "E_USAGE: invalid command syntax" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:273 +#: groupmod.8.xml.out:274 msgid "E_BAD_ARG: invalid argument to option" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:279 +#: groupmod.8.xml.out:280 msgid "E_GID_IN_USE: group id already in use" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:285 +#: groupmod.8.xml.out:286 msgid "E_NOTFOUND: specified group doesn't exist" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:291 +#: groupmod.8.xml.out:292 msgid "E_NAME_IN_USE: group name already in use" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:297 +#: groupmod.8.xml.out:298 msgid "E_GRP_UPDATE: can't update group file" msgstr "" #. (itstool) path: term/replaceable -#: groupmod.8.xml.out:301 +#: groupmod.8.xml.out:302 msgid "11" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:303 +#: groupmod.8.xml.out:304 msgid "E_CLEANUP_SERVICE: can't setup cleanup service" msgstr "" #. (itstool) path: term/replaceable -#: groupmod.8.xml.out:307 -#: useradd.8.xml.out:879 -#: userdel.8.xml.out:271 +#: groupmod.8.xml.out:308 +#: useradd.8.xml.out:924 +#: userdel.8.xml.out:264 msgid "12" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:309 +#: groupmod.8.xml.out:310 msgid "E_PAM_USERNAME: can't determine your username for use with pam" msgstr "" #. (itstool) path: term/replaceable -#: groupmod.8.xml.out:313 +#: groupmod.8.xml.out:314 msgid "13" msgstr "" #. (itstool) path: listitem/para -#: groupmod.8.xml.out:315 +#: groupmod.8.xml.out:316 msgid "E_PAM_ERROR: pam returned an error, see syslog facility id groupmod for the PAM error message" msgstr "" -#. (itstool) path: refnamediv/refpurpose -#: groups.1.xml.out:41 -msgid "display current group names" -msgstr "" - -#. (itstool) path: refsect1/para -#: groups.1.xml.out:55 -msgid "The <_:command-1/> command displays the current group names or ID values. If the value does not have a corresponding entry in <_:filename-2/>, the value will be displayed as the numerical group value. The optional <_:replaceable-3/> parameter will display the groups for the named user." -msgstr "" - -#. (itstool) path: citerefentry/refentrytitle -#: groups.1.xml.out:68 -#: groups.1.xml.out:104 -msgid "initgroups" -msgstr "" - -#. (itstool) path: para/command -#. (itstool) path: citerefentry/refentrytitle -#. (itstool) path: refmeta/refentrytitle -#. (itstool) path: refnamediv/refname -#. (itstool) path: cmdsynopsis/command -#: groups.1.xml.out:71 -#: newgrp.1.xml.out:139 -#: sg.1.xml.out:34 -#: sg.1.xml.out:41 -#: sg.1.xml.out:47 -#: sg.1.xml.out:59 -#: sg.1.xml.out:62 -#: sg.1.xml.out:64 -#: sg.1.xml.out:67 -#: sg.1.xml.out:68 -#: su.1.xml.out:421 -msgid "sg" -msgstr "" - -#. (itstool) path: refsect1/para -#: groups.1.xml.out:66 -msgid "Systems which do not support supplementary groups (see <_:citerefentry-1/>) will have the information from <_:filename-2/> reported. The user must use <_:command-3/> or <_:command-4/> to change his current real and effective group ID." -msgstr "" - -#. (itstool) path: citerefentry/refentrytitle -#: groups.1.xml.out:95 -msgid "getgid" -msgstr "" - -#. (itstool) path: citerefentry/refentrytitle -#: groups.1.xml.out:98 -msgid "getgroups" -msgstr "" - -#. (itstool) path: citerefentry/refentrytitle -#: groups.1.xml.out:101 -msgid "getuid" -msgstr "" - -#. (itstool) path: refsect1/para -#: groups.1.xml.out:90 -#: gshadow.5.xml.out:151 -#: pwck.8.xml.out:334 -msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>." -msgstr "" - #. (itstool) path: author/contrib #: grpck.8.xml.out:17 #: lastlog.8.xml.out:19 @@ -5091,8 +4842,8 @@ msgstr "" #. (itstool) path: para/phrase #: grpck.8.xml.out:62 -#: grpck.8.xml.out:165 -#: grpck.8.xml.out:185 +#: grpck.8.xml.out:166 +#: grpck.8.xml.out:186 msgid "and <_:filename-1/>" msgstr "" @@ -5152,8 +4903,8 @@ msgstr "" #. (itstool) path: arg/replaceable #. (itstool) path: para/replaceable #: grpck.8.xml.out:113 -#: newusers.8.xml.out:69 -#: newusers.8.xml.out:77 +#: newusers.8.xml.out:68 +#: newusers.8.xml.out:76 msgid "file" msgstr "" @@ -5182,9 +4933,9 @@ msgstr "" #. (itstool) path: para/emphasis #. (itstool) path: para/replaceable #: grpck.8.xml.out:143 -#: login.defs.5.xml.out:136 -#: login.defs.5.xml.out:138 -#: useradd.8.xml.out:246 +#: login.defs.5.xml.out:135 +#: login.defs.5.xml.out:137 +#: useradd.8.xml.out:287 msgid "no" msgstr "" @@ -5194,82 +4945,83 @@ msgid "Execute the <_:command-1/> command in read-only mode. This causes all que msgstr "" #. (itstool) path: term/option -#: grpck.8.xml.out:161 -#: pwck.8.xml.out:209 +#: grpck.8.xml.out:162 +#: pwck.8.xml.out:210 msgid "--sort" msgstr "" #. (itstool) path: listitem/para -#: grpck.8.xml.out:163 +#: grpck.8.xml.out:164 msgid "Sort entries in <_:filename-1/> <_:phrase-2/> by GID." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: grpck.8.xml.out:172 -#: lastlog.8.xml.out:117 +#: grpck.8.xml.out:173 +#: lastlog.8.xml.out:118 #: passwd.1.xml.out:157 -#: passwd.1.xml.out:302 +#: passwd.1.xml.out:301 +#: usermod.8.xml.out:506 msgid "-S" msgstr "" #. (itstool) path: term/option -#: grpck.8.xml.out:172 +#: grpck.8.xml.out:173 msgid "--silence-warnings" msgstr "" #. (itstool) path: para/filename -#: grpck.8.xml.out:178 +#: grpck.8.xml.out:179 msgid "/etc/ghadow" msgstr "" #. (itstool) path: listitem/para -#: grpck.8.xml.out:174 +#: grpck.8.xml.out:175 msgid "Suppress more controversial warnings, in particular warnings about inconsistency between group members listed in <_:filename-1/> and <_:filename-2/>." msgstr "" #. (itstool) path: para/phrase -#: grpck.8.xml.out:189 +#: grpck.8.xml.out:190 msgid "parameter." msgstr "" #. (itstool) path: para/phrase -#: grpck.8.xml.out:190 +#: grpck.8.xml.out:191 msgid "and <_:emphasis-1/> parameters." msgstr "" #. (itstool) path: refsect1/para -#: grpck.8.xml.out:183 +#: grpck.8.xml.out:184 msgid "By default, <_:command-1/> operates on <_:filename-2/> <_:phrase-3/>. The user may select alternate files with the <_:emphasis-4/> <_:phrase-5/> <_:phrase-6/>" msgstr "" #. (itstool) path: listitem/para -#: grpck.8.xml.out:251 +#: grpck.8.xml.out:252 msgid "one or more bad group entries" msgstr "" #. (itstool) path: listitem/para -#: grpck.8.xml.out:257 +#: grpck.8.xml.out:258 msgid "can't open group files" msgstr "" #. (itstool) path: listitem/para -#: grpck.8.xml.out:263 +#: grpck.8.xml.out:264 msgid "can't lock group files" msgstr "" #. (itstool) path: listitem/para -#: grpck.8.xml.out:269 +#: grpck.8.xml.out:270 msgid "can't update group files" msgstr "" #. (itstool) path: phrase/citerefentry -#: grpck.8.xml.out:286 +#: grpck.8.xml.out:287 msgid "<_:refentrytitle-1/><_:manvolnum-2/>," msgstr "" #. (itstool) path: refsect1/para -#: grpck.8.xml.out:278 +#: grpck.8.xml.out:279 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:phrase-3/> <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>." msgstr "" @@ -5306,7 +5058,7 @@ msgstr "" #. (itstool) path: listitem/para #: gshadow.5.xml.out:53 -msgid "It must be a valid group name, which exist on the system." +msgid "It must be a valid group name, which exists on the system." msgstr "" #. (itstool) path: term/emphasis @@ -5319,7 +5071,7 @@ msgstr "" #. (itstool) path: refsect1/para #: gshadow.5.xml.out:61 #: passwd.5.xml.out:102 -#: shadow.5.xml.out:87 +#: shadow.5.xml.out:92 msgid "Refer to <_:citerefentry-1/> for details on how this string is interpreted." msgstr "" @@ -5340,7 +5092,6 @@ msgstr "" #. (itstool) path: listitem/para #: gshadow.5.xml.out:83 -#: shadow.5.xml.out:81 msgid "A password field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked." msgstr "" @@ -5391,16 +5142,22 @@ msgstr "" #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command #: gshadow.5.xml.out:162 -#: login.defs.5.xml.out:337 +#: login.defs.5.xml.out:323 #: pwconv.8.xml.out:48 #: pwconv.8.xml.out:67 #: pwconv.8.xml.out:113 #: pwconv.8.xml.out:134 #: pwconv.8.xml.out:166 -#: pwconv.8.xml.out:208 +#: pwconv.8.xml.out:209 msgid "grpconv" msgstr "" +#. (itstool) path: refsect1/para +#: gshadow.5.xml.out:151 +#: pwck.8.xml.out:335 +msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>." +msgstr "" + #. (itstool) path: refmeta/refentrytitle #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command @@ -5412,8 +5169,8 @@ msgstr "" #: lastlog.8.xml.out:48 #: lastlog.8.xml.out:58 #: lastlog.8.xml.out:70 -#: lastlog.8.xml.out:172 -#: login.defs.5.xml.out:350 +#: lastlog.8.xml.out:183 +#: login.defs.5.xml.out:336 msgid "lastlog" msgstr "" @@ -5425,8 +5182,8 @@ msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename #: lastlog.8.xml.out:59 -#: lastlog.8.xml.out:197 -#: lastlog.8.xml.out:214 +#: lastlog.8.xml.out:208 +#: lastlog.8.xml.out:225 msgid "/var/log/lastlog" msgstr "" @@ -5453,7 +5210,7 @@ msgstr "" #. (itstool) path: term/option #: lastlog.8.xml.out:75 #: useradd.8.xml.out:118 -#: useradd.8.xml.out:612 +#: useradd.8.xml.out:659 #: usermod.8.xml.out:89 msgid "-b" msgstr "" @@ -5480,72 +5237,77 @@ msgstr "" #. (itstool) path: listitem/para #: lastlog.8.xml.out:88 -msgid "Clear lastlog record of a user. This option can be used only together with <_:option-1/> (<_:option-2/>))." +msgid "Clear lastlog record of a user. This option can be used only together with <_:option-1/> (<_:option-2/>)." msgstr "" #. (itstool) path: term/option -#: lastlog.8.xml.out:117 +#: lastlog.8.xml.out:118 msgid "--set" msgstr "" #. (itstool) path: listitem/para -#: lastlog.8.xml.out:120 -msgid "Set lastlog record of a user to the current time. This option can be used only together with <_:option-1/> (<_:option-2/>))." +#: lastlog.8.xml.out:121 +msgid "Set lastlog record of a user to the current time. This option can be used only together with <_:option-1/> (<_:option-2/>)." msgstr "" #. (itstool) path: listitem/para -#: lastlog.8.xml.out:131 +#: lastlog.8.xml.out:132 msgid "Print the lastlog records more recent than <_:replaceable-1/>." msgstr "" #. (itstool) path: listitem/para -#: lastlog.8.xml.out:142 +#: lastlog.8.xml.out:143 msgid "Print the lastlog record of the specified user(s)." msgstr "" +#. (itstool) path: listitem/para +#: lastlog.8.xml.out:161 +msgid "Print the lastlog records of the users that have logged in at least once. Excludes records for users with '**Never logged in**'." +msgstr "" + #. (itstool) path: para/emphasis -#: lastlog.8.xml.out:158 +#: lastlog.8.xml.out:169 msgid "** Never logged in**" msgstr "" #. (itstool) path: refsect1/para -#: lastlog.8.xml.out:157 +#: lastlog.8.xml.out:168 msgid "If the user has never logged in the message <_:emphasis-1/> will be displayed instead of the port and time." msgstr "" #. (itstool) path: refsect1/para -#: lastlog.8.xml.out:162 +#: lastlog.8.xml.out:173 msgid "Only the entries for the current users of the system will be displayed. Other entries may exist for users that were deleted previously." msgstr "" #. (itstool) path: para/command -#: lastlog.8.xml.out:175 +#: lastlog.8.xml.out:186 msgid "ls -l" msgstr "" #. (itstool) path: para/command -#: lastlog.8.xml.out:177 +#: lastlog.8.xml.out:188 msgid "ls -s" msgstr "" #. (itstool) path: refsect1/para -#: lastlog.8.xml.out:171 +#: lastlog.8.xml.out:182 msgid "The <_:filename-1/> file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by \"<_:command-2/>\" (which can indicate a really big file if you have in <_:filename-3/> users with a high UID). You can display its real size with \"<_:command-4/>\"." msgstr "" #. (itstool) path: listitem/para -#: lastlog.8.xml.out:199 +#: lastlog.8.xml.out:210 msgid "Database times of previous user logins." msgstr "" #. (itstool) path: refsect1/para -#: lastlog.8.xml.out:207 +#: lastlog.8.xml.out:218 msgid "Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i.e. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171-799)." msgstr "" #. (itstool) path: refsect1/para -#: lastlog.8.xml.out:213 -msgid "Having high UIDs can create problems when handling the <_:term-1/> with external tools. Although the actual file is sparse and does not use too much space, certain applications are not designed to identify sparse files by default and may require a specific option to handle them." +#: lastlog.8.xml.out:224 +msgid "Having high UIDs can create problems when handling the <_:filename-1/> with external tools. Although the actual file is sparse and does not use too much space, certain applications are not designed to identify sparse files by default and may require a specific option to handle them." msgstr "" #. (itstool) path: author/firstname @@ -5751,7 +5513,7 @@ msgstr "" #: su.1.xml.out:95 #: su.1.xml.out:153 #: su.1.xml.out:155 -#: useradd.8.xml.out:795 +#: useradd.8.xml.out:840 msgid "username" msgstr "" @@ -5762,6 +5524,7 @@ msgstr "" #. (itstool) path: para/emphasis #: limits.5.xml.out:129 +#: shadow.5.xml.out:88 msgid "*" msgstr "" @@ -5812,7 +5575,8 @@ msgstr "" #: login.access.5.xml.out:72 #: newgrp.1.xml.out:47 #: newgrp.1.xml.out:56 -#: sg.1.xml.out:48 +#: sg.1.xml.out:49 +#: sg.1.xml.out:85 #: su.1.xml.out:67 #: su.1.xml.out:84 #: su.1.xml.out:93 @@ -5897,7 +5661,7 @@ msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename #: login.1.xml.out:135 -#: login.1.xml.out:341 +#: login.1.xml.out:333 msgid "/etc/motd" msgstr "" @@ -5977,7 +5741,7 @@ msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename #: login.1.xml.out:155 -#: login.1.xml.out:353 +#: login.1.xml.out:345 msgid "/etc/ttytype" msgstr "" @@ -5999,26 +5763,26 @@ msgstr "" #. (itstool) path: citerefentry/refentrytitle #: login.1.xml.out:173 -#: login.1.xml.out:249 -#: login.1.xml.out:401 +#: login.1.xml.out:241 +#: login.1.xml.out:393 msgid "getty" msgstr "" #. (itstool) path: citerefentry/refentrytitle #: login.1.xml.out:175 -#: login.1.xml.out:251 +#: login.1.xml.out:243 msgid "init" msgstr "" #. (itstool) path: para/command #: login.1.xml.out:178 -#: login.1.xml.out:254 +#: login.1.xml.out:246 msgid "exec" msgstr "" #. (itstool) path: refsect1/para #: login.1.xml.out:170 -#: login.1.xml.out:246 +#: login.1.xml.out:238 msgid "The <_:command-1/> program is NOT responsible for removing users from the utmp file. It is the responsibility of <_:citerefentry-2/> and <_:citerefentry-3/> to clean up apparent ownership of a terminal session. If you use <_:command-4/> from the shell prompt without <_:command-5/>, the user you use will continue to appear to be logged in even after you log out of the \"subsession\"." msgstr "" @@ -6029,7 +5793,7 @@ msgstr "" #. (itstool) path: listitem/para #: login.1.xml.out:196 -msgid "Note: In that case, <_:replaceable-1/> is mandatory." +msgid "Note: in that case, <_:replaceable-1/> is mandatory." msgstr "" #. (itstool) path: listitem/para @@ -6042,93 +5806,84 @@ msgstr "" msgid "Preserve environment." msgstr "" -#. (itstool) path: listitem/para -#: login.1.xml.out:223 -msgid "Perform autologin protocol for rlogin." -msgstr "" - #. (itstool) path: refsect1/para -#: login.1.xml.out:228 +#: login.1.xml.out:220 msgid "The <_:option-1/>, <_:option-2/> and <_:option-3/> options are only used when <_:command-4/> is invoked by root." msgstr "" #. (itstool) path: refsect1/para -#: login.1.xml.out:237 +#: login.1.xml.out:229 #: su.1.xml.out:307 msgid "This version of <_:command-1/> has many compilation options, only some of which may be in use at any particular site." msgstr "" #. (itstool) path: refsect1/para -#: login.1.xml.out:242 +#: login.1.xml.out:234 msgid "The location of files is subject to differences in system configuration." msgstr "" #. (itstool) path: refsect1/para -#: login.1.xml.out:258 +#: login.1.xml.out:250 msgid "As with any program, <_:command-1/>'s appearance can be faked. If non-trusted users have physical access to a machine, an attacker could use this to obtain the password of the next person coming to sit in front of the machine. Under Linux, the SAK mechanism can be used by users to initiate a trusted path and prevent this kind of attack." msgstr "" #. (itstool) path: term/filename -#. (itstool) path: para/filename -#: login.1.xml.out:317 -#: logoutd.8.xml.out:56 -#: logoutd.8.xml.out:74 +#: login.1.xml.out:309 msgid "/var/run/utmp" msgstr "" #. (itstool) path: listitem/para -#: login.1.xml.out:319 -#: logoutd.8.xml.out:76 +#: login.1.xml.out:311 msgid "List of current login sessions." msgstr "" #. (itstool) path: term/filename -#: login.1.xml.out:323 +#: login.1.xml.out:315 msgid "/var/log/wtmp" msgstr "" #. (itstool) path: listitem/para -#: login.1.xml.out:325 +#: login.1.xml.out:317 msgid "List of previous login sessions." msgstr "" #. (itstool) path: listitem/para -#: login.1.xml.out:343 +#: login.1.xml.out:335 msgid "System message of the day file." msgstr "" #. (itstool) path: term/filename -#: login.1.xml.out:347 +#: login.1.xml.out:339 msgid "/etc/nologin" msgstr "" #. (itstool) path: listitem/para -#: login.1.xml.out:349 +#: login.1.xml.out:341 msgid "Prevent non-root users from logging in." msgstr "" #. (itstool) path: listitem/para -#: login.1.xml.out:355 +#: login.1.xml.out:347 msgid "List of terminal types." msgstr "" #. (itstool) path: term/filename -#: login.1.xml.out:359 +#: login.1.xml.out:351 msgid "$HOME/.hushlogin" msgstr "" #. (itstool) path: listitem/para -#: login.1.xml.out:361 +#: login.1.xml.out:353 msgid "Suppress printing of system messages." msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: login.1.xml.out:377 +#: login.1.xml.out:369 msgid "mail" msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: login.1.xml.out:383 +#: login.1.xml.out:375 #: su.1.xml.out:424 msgid "sh" msgstr "" @@ -6139,14 +5894,14 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: login.1.xml.out:386 -#: login.defs.5.xml.out:455 -#: login.defs.5.xml.out:539 -#: login.defs.5.xml.out:555 +#: login.1.xml.out:378 +#: login.defs.5.xml.out:438 +#: login.defs.5.xml.out:522 +#: login.defs.5.xml.out:538 #: newgrp.1.xml.out:136 #: passwd.5.xml.out:197 #: shadow.5.xml.out:283 -#: sg.1.xml.out:128 +#: sg.1.xml.out:164 #: su.1.xml.out:50 #: su.1.xml.out:57 #: su.1.xml.out:62 @@ -6169,7 +5924,7 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: login.1.xml.out:392 +#: login.1.xml.out:384 #: nologin.8.xml.out:22 #: nologin.8.xml.out:29 #: nologin.8.xml.out:35 @@ -6181,7 +5936,7 @@ msgid "nologin" msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: login.1.xml.out:398 +#: login.1.xml.out:390 msgid "securetty" msgstr "" @@ -6303,81 +6058,80 @@ msgid "<_:citerefentry-1/>." msgstr "" #. (itstool) path: refnamediv/refpurpose -#: login.defs.5.xml.out:112 +#: login.defs.5.xml.out:111 msgid "shadow password suite configuration" msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:117 +#: login.defs.5.xml.out:116 msgid "The <_:filename-1/> file defines the site-specific configuration for the shadow password suite. This file is required. Absence of this file will not prevent system operation, but will probably result in undesirable operation." msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:124 +#: login.defs.5.xml.out:123 msgid "This file is a readable text file, each line of the file describing one configuration parameter. The lines consist of a configuration name and value, separated by whitespace. Blank lines and comment lines are ignored. Comments are introduced with a \"#\" pound sign and the pound sign must be the first non-white character of the line." msgstr "" #. (itstool) path: para/replaceable #. (itstool) path: para/emphasis -#: login.defs.5.xml.out:135 -#: useradd.8.xml.out:242 -#: useradd.8.xml.out:382 -#: userdel.8.xml.out:87 -#: userdel.8.xml.out:297 +#: login.defs.5.xml.out:134 +#: useradd.8.xml.out:283 +#: useradd.8.xml.out:428 +#: userdel.8.xml.out:290 msgid "yes" msgstr "" #. (itstool) path: para/replaceable -#: login.defs.5.xml.out:142 +#: login.defs.5.xml.out:141 msgid "0x" msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:132 +#: login.defs.5.xml.out:131 msgid "Parameter values may be of four types: strings, booleans, numbers, and long numbers. A string is comprised of any printable characters. A boolean should be either the value <_:replaceable-1/> or <_:replaceable-2/>. An undefined boolean parameter or one with a value other than these will be given a <_:replaceable-3/> value. Numbers (both regular and long) may be either decimal values, octal values (precede the value with <_:replaceable-4/>) or hexadecimal values (precede the value with <_:replaceable-5/>). The maximum value of the regular and long numeric parameters is machine-dependent." msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:147 +#: login.defs.5.xml.out:146 msgid "The following configuration items are provided:" msgstr "" #. (itstool) path: para/option #. (itstool) path: para/emphasis #. (itstool) path: para/replaceable -#: login.defs.5.xml.out:196 +#: login.defs.5.xml.out:194 #: pwconv.8.xml.out:146 -#: useradd.8.xml.out:311 -#: useradd.8.xml.out:316 +#: useradd.8.xml.out:357 +#: useradd.8.xml.out:362 msgid "PASS_MAX_DAYS" msgstr "" #. (itstool) path: para/option #. (itstool) path: para/emphasis -#: login.defs.5.xml.out:196 +#: login.defs.5.xml.out:194 #: pwconv.8.xml.out:145 msgid "PASS_MIN_DAYS" msgstr "" #. (itstool) path: para/option #. (itstool) path: para/emphasis -#: login.defs.5.xml.out:197 +#: login.defs.5.xml.out:195 #: pwconv.8.xml.out:147 msgid "PASS_WARN_AGE" msgstr "" #. (itstool) path: variablelist/para -#: login.defs.5.xml.out:195 +#: login.defs.5.xml.out:193 msgid "<_:option-1/>, <_:option-2/> and <_:option-3/> are only used at the time of account creation. Any changes to these settings won't affect existing accounts." msgstr "" #. (itstool) path: refsect1/title -#: login.defs.5.xml.out:229 +#: login.defs.5.xml.out:227 msgid "CROSS REFERENCES" msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:230 +#: login.defs.5.xml.out:228 msgid "The following cross references show which programs in the shadow password suite use which parameters." msgstr "" @@ -6385,13 +6139,13 @@ msgstr "" #. (itstool) path: para/phrase #. (itstool) path: phrase/option #. (itstool) path: para/option -#: login.defs.5.xml.out:239 -#: login.defs.5.xml.out:442 -#: login.defs.5.xml.out:450 -#: login.defs.5.xml.out:522 +#: login.defs.5.xml.out:237 +#: login.defs.5.xml.out:425 +#: login.defs.5.xml.out:433 +#: login.defs.5.xml.out:505 #: pwck.8.xml.out:75 -#: pwck.8.xml.out:216 -#: pwck.8.xml.out:232 +#: pwck.8.xml.out:217 +#: pwck.8.xml.out:233 #: pwconv.8.xml.out:89 #: pwconv.8.xml.out:91 #: pwconv.8.xml.out:94 @@ -6401,76 +6155,66 @@ msgid "USE_TCB" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:246 +#: login.defs.5.xml.out:244 msgid "CHFN_AUTH" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:248 -#: login.defs.5.xml.out:372 +#: login.defs.5.xml.out:246 +#: login.defs.5.xml.out:358 msgid "LOGIN_STRING" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:245 +#: login.defs.5.xml.out:243 msgid "<_:phrase-1/> CHFN_RESTRICT <_:phrase-2/>" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:256 -#: login.defs.5.xml.out:269 -#: login.defs.5.xml.out:293 -#: login.defs.5.xml.out:396 -#: login.defs.5.xml.out:418 +#: login.defs.5.xml.out:254 +#: login.defs.5.xml.out:266 +#: login.defs.5.xml.out:287 +#: login.defs.5.xml.out:381 +#: login.defs.5.xml.out:402 msgid "BCRYPT_MAX_ROUNDS BCRYPT_MIN_ROUNDS" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:259 -#: login.defs.5.xml.out:273 -#: login.defs.5.xml.out:296 -#: login.defs.5.xml.out:403 -#: login.defs.5.xml.out:422 -msgid "SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS" -msgstr "" - -#. (itstool) path: para/phrase -#: login.defs.5.xml.out:261 -#: login.defs.5.xml.out:275 -#: login.defs.5.xml.out:298 -#: login.defs.5.xml.out:409 -#: login.defs.5.xml.out:424 +#: login.defs.5.xml.out:258 +#: login.defs.5.xml.out:270 +#: login.defs.5.xml.out:291 +#: login.defs.5.xml.out:393 +#: login.defs.5.xml.out:407 msgid "YESCRYPT_COST_FACTOR" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:255 -#: login.defs.5.xml.out:292 -msgid "<_:phrase-1/> ENCRYPT_METHOD MAX_MEMBERS_PER_GROUP MD5_CRYPT_ENAB <_:phrase-2/> <_:phrase-3/>" +#: login.defs.5.xml.out:253 +#: login.defs.5.xml.out:286 +msgid "<_:phrase-1/> ENCRYPT_METHOD MAX_MEMBERS_PER_GROUP SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS <_:phrase-2/>" msgstr "" -#. (itstool) path: para/phrase -#: login.defs.5.xml.out:271 -msgid "ENCRYPT_METHOD MD5_CRYPT_ENAB" +#. (itstool) path: listitem/para +#: login.defs.5.xml.out:265 +msgid "<_:phrase-1/> <_:phrase-2/> SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS <_:phrase-3/>" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:282 +#: login.defs.5.xml.out:277 msgid "CHSH_AUTH LOGIN_STRING" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:305 +#: login.defs.5.xml.out:298 msgid "GID_MAX GID_MIN MAX_MEMBERS_PER_GROUP SYS_GID_MAX SYS_GID_MIN" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:314 -#: login.defs.5.xml.out:320 -#: login.defs.5.xml.out:326 -#: login.defs.5.xml.out:333 -#: login.defs.5.xml.out:339 -#: login.defs.5.xml.out:345 +#: login.defs.5.xml.out:307 +#: login.defs.5.xml.out:313 +#: login.defs.5.xml.out:319 +#: login.defs.5.xml.out:325 +#: login.defs.5.xml.out:331 msgid "MAX_MEMBERS_PER_GROUP" msgstr "" @@ -6478,95 +6222,95 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: login.defs.5.xml.out:343 +#: login.defs.5.xml.out:329 #: pwconv.8.xml.out:49 #: pwconv.8.xml.out:73 #: pwconv.8.xml.out:119 #: pwconv.8.xml.out:153 #: pwconv.8.xml.out:167 -#: pwconv.8.xml.out:208 +#: pwconv.8.xml.out:209 msgid "grpunconv" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:352 +#: login.defs.5.xml.out:338 msgid "LASTLOG_UID_MAX" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:359 -#: login.defs.5.xml.out:458 +#: login.defs.5.xml.out:345 +#: login.defs.5.xml.out:441 msgid "CONSOLE" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:361 +#: login.defs.5.xml.out:347 msgid "ENV_HZ ENV_PATH ENV_SUPATH ENV_TZ ENVIRON_FILE" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:364 +#: login.defs.5.xml.out:350 msgid "FAILLOG_ENAB" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:366 +#: login.defs.5.xml.out:352 msgid "FTMP_FILE" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:368 +#: login.defs.5.xml.out:354 msgid "ISSUE_FILE" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:370 +#: login.defs.5.xml.out:356 msgid "LASTLOG_ENAB LASTLOG_UID_MAX" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:374 +#: login.defs.5.xml.out:360 msgid "MAIL_CHECK_ENAB MAIL_DIR MAIL_FILE MOTD_FILE NOLOGINS_FILE PORTTIME_CHECKS_ENAB QUOTAS_ENAB" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:378 +#: login.defs.5.xml.out:364 msgid "ULIMIT UMASK" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:358 +#: login.defs.5.xml.out:344 msgid "<_:phrase-1/> CONSOLE_GROUPS DEFAULT_HOME <_:phrase-2/> ERASECHAR FAIL_DELAY <_:phrase-3/> FAKE_SHELL <_:phrase-4/> HUSHLOGIN_FILE <_:phrase-5/> KILLCHAR <_:phrase-6/> LOGIN_RETRIES <_:phrase-7/> LOGIN_TIMEOUT LOG_OK_LOGINS LOG_UNKFAIL_ENAB <_:phrase-8/> TTYGROUP TTYPERM TTYTYPE_FILE <_:phrase-9/> USERGROUPS_ENAB" msgstr "" #. (itstool) path: varlistentry/term -#: login.defs.5.xml.out:385 +#: login.defs.5.xml.out:370 msgid "newgrp / sg" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:387 +#: login.defs.5.xml.out:372 msgid "SYSLOG_SG_ENAB" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:395 -msgid "<_:phrase-1/> ENCRYPT_METHOD GID_MAX GID_MIN MAX_MEMBERS_PER_GROUP MD5_CRYPT_ENAB HOME_MODE PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE <_:phrase-2/> SUB_GID_COUNT SUB_GID_MAX SUB_GID_MIN SUB_UID_COUNT SUB_UID_MAX SUB_UID_MIN SYS_GID_MAX SYS_GID_MIN SYS_UID_MAX SYS_UID_MIN UID_MAX UID_MIN UMASK <_:phrase-3/>" +#: login.defs.5.xml.out:380 +msgid "<_:phrase-1/> ENCRYPT_METHOD GID_MAX GID_MIN MAX_MEMBERS_PER_GROUP HOME_MODE PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS SUB_GID_COUNT SUB_GID_MAX SUB_GID_MIN SUB_UID_COUNT SUB_UID_MAX SUB_UID_MIN SYS_GID_MAX SYS_GID_MIN SYS_UID_MAX SYS_UID_MIN UID_MAX UID_MIN UMASK <_:phrase-2/>" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:417 -msgid "<_:phrase-1/> ENCRYPT_METHOD MD5_CRYPT_ENAB OBSCURE_CHECKS_ENAB PASS_ALWAYS_WARN PASS_CHANGE_TRIES PASS_MAX_LEN PASS_MIN_LEN <_:phrase-2/> <_:phrase-3/>" +#: login.defs.5.xml.out:401 +msgid "<_:phrase-1/> ENCRYPT_METHOD OBSCURE_CHECKS_ENAB PASS_ALWAYS_WARN PASS_CHANGE_TRIES PASS_MAX_LEN PASS_MIN_LEN SHA_CRYPT_MAX_ROUNDS SHA_CRYPT_MIN_ROUNDS <_:phrase-2/>" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:433 +#: login.defs.5.xml.out:416 msgid "TCB_AUTH_GROUP TCB_SYMLINKS USE_TCB" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:431 -#: login.defs.5.xml.out:440 +#: login.defs.5.xml.out:414 +#: login.defs.5.xml.out:423 msgid "PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE <_:phrase-1/>" msgstr "" @@ -6576,7 +6320,7 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: login.defs.5.xml.out:438 +#: login.defs.5.xml.out:421 #: passwd.5.xml.out:188 #: pwconv.8.xml.out:39 #: pwconv.8.xml.out:46 @@ -6587,7 +6331,7 @@ msgstr "" #: pwconv.8.xml.out:134 #: pwconv.8.xml.out:144 #: pwconv.8.xml.out:165 -#: pwconv.8.xml.out:216 +#: pwconv.8.xml.out:217 #: shadow.5.xml.out:277 msgid "pwconv" msgstr "" @@ -6597,7 +6341,7 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: login.defs.5.xml.out:447 +#: login.defs.5.xml.out:430 #: passwd.5.xml.out:191 #: pwconv.8.xml.out:47 #: pwconv.8.xml.out:61 @@ -6612,61 +6356,61 @@ msgid "pwunconv" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:460 +#: login.defs.5.xml.out:443 msgid "ENV_HZ ENVIRON_FILE" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:462 +#: login.defs.5.xml.out:445 msgid "ENV_TZ LOGIN_STRING MAIL_CHECK_ENAB MAIL_DIR MAIL_FILE QUOTAS_ENAB" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:465 +#: login.defs.5.xml.out:448 msgid "SU_WHEEL_ONLY" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:457 +#: login.defs.5.xml.out:440 msgid "<_:phrase-1/> CONSOLE_GROUPS DEFAULT_HOME <_:phrase-2/> ENV_PATH ENV_SUPATH <_:phrase-3/> SULOG_FILE SU_NAME <_:phrase-4/> SYSLOG_SU_ENAB <_:phrase-5/>" msgstr "" #. (itstool) path: varlistentry/term #. (itstool) path: citerefentry/refentrytitle -#: login.defs.5.xml.out:472 +#: login.defs.5.xml.out:455 #: passwd.5.xml.out:200 #: shadow.5.xml.out:286 msgid "sulogin" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:474 +#: login.defs.5.xml.out:457 msgid "ENV_HZ ENV_TZ" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:494 +#: login.defs.5.xml.out:477 msgid "TCB_AUTH_GROUP TCB_SYMLINK USE_TCB" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:483 +#: login.defs.5.xml.out:466 msgid "CREATE_HOME GID_MAX GID_MIN HOME_MODE LASTLOG_UID_MAX MAIL_DIR MAX_MEMBERS_PER_GROUP PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE SUB_GID_COUNT SUB_GID_MAX SUB_GID_MIN SUB_UID_COUNT SUB_UID_MAX SUB_UID_MIN SYS_GID_MAX SYS_GID_MIN SYS_UID_MAX SYS_UID_MIN UID_MAX UID_MIN UMASK <_:phrase-1/>" msgstr "" #. (itstool) path: para/phrase -#: login.defs.5.xml.out:504 -#: login.defs.5.xml.out:514 +#: login.defs.5.xml.out:487 +#: login.defs.5.xml.out:497 msgid "TCB_SYMLINKS USE_TCB" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:501 +#: login.defs.5.xml.out:484 msgid "MAIL_DIR MAIL_FILE MAX_MEMBERS_PER_GROUP USERDEL_CMD USERGROUPS_ENAB <_:phrase-1/>" msgstr "" #. (itstool) path: listitem/para -#: login.defs.5.xml.out:511 +#: login.defs.5.xml.out:494 msgid "LASTLOG_UID_MAX MAIL_DIR MAIL_FILE MAX_MEMBERS_PER_GROUP <_:phrase-1/>" msgstr "" @@ -6675,7 +6419,7 @@ msgstr "" #. (itstool) path: refnamediv/refname #. (itstool) path: cmdsynopsis/command #. (itstool) path: para/command -#: login.defs.5.xml.out:519 +#: login.defs.5.xml.out:502 #: vipw.8.xml.out:35 #: vipw.8.xml.out:42 #: vipw.8.xml.out:51 @@ -6685,70 +6429,29 @@ msgid "vipw" msgstr "" #. (itstool) path: refsect1/title -#: login.defs.5.xml.out:530 -#: pwconv.8.xml.out:193 +#: login.defs.5.xml.out:513 +#: pwconv.8.xml.out:194 #: suauth.5.xml.out:179 msgid "BUGS" msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:531 +#: login.defs.5.xml.out:514 msgid "Much of the functionality that used to be provided by the shadow password suite is now handled by PAM. Thus, <_:filename-1/> is no longer used by <_:citerefentry-2/>, or less used by <_:citerefentry-3/>, and <_:citerefentry-4/>. Please refer to the corresponding PAM configuration files instead." msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: login.defs.5.xml.out:564 +#. (itstool) path: para/refentrytitle +#: login.defs.5.xml.out:547 +#: passwd.1.xml.out:490 msgid "pam" msgstr "" #. (itstool) path: refsect1/para -#: login.defs.5.xml.out:547 +#: login.defs.5.xml.out:530 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>." msgstr "" -#. (itstool) path: refmeta/refentrytitle -#. (itstool) path: refnamediv/refname -#. (itstool) path: cmdsynopsis/command -#. (itstool) path: para/command -#: logoutd.8.xml.out:33 -#: logoutd.8.xml.out:40 -#: logoutd.8.xml.out:46 -#: logoutd.8.xml.out:53 -#: logoutd.8.xml.out:55 -msgid "logoutd" -msgstr "" - -#. (itstool) path: refnamediv/refpurpose -#: logoutd.8.xml.out:41 -msgid "enforce login time restrictions" -msgstr "" - -#. (itstool) path: para/filename -#. (itstool) path: term/filename -#: logoutd.8.xml.out:54 -#: logoutd.8.xml.out:60 -#: logoutd.8.xml.out:68 -#: porttime.5.xml.out:87 -#: porttime.5.xml.out:109 -msgid "/etc/porttime" -msgstr "" - -#. (itstool) path: para/filename -#: logoutd.8.xml.out:56 -msgid "/etc/rc" -msgstr "" - -#. (itstool) path: refsect1/para -#: logoutd.8.xml.out:52 -msgid "<_:command-1/> enforces the login time and port restrictions specified in <_:filename-2/>. <_:command-3/> should be started from <_:filename-4/>. The <_:filename-5/> file is scanned periodically and each user name is checked to see if the named user is permitted on the named port at the current time. Any login session which is violating the restrictions in <_:filename-6/> is terminated." -msgstr "" - -#. (itstool) path: listitem/para -#: logoutd.8.xml.out:70 -#: porttime.5.xml.out:111 -msgid "File containing port access." -msgstr "" - #. (itstool) path: refnamediv/refpurpose #: newgrp.1.xml.out:42 msgid "log in to a new group" @@ -6771,48 +6474,67 @@ msgstr "" #. (itstool) path: citerefentry/refentrytitle #: newgrp.1.xml.out:130 -#: sg.1.xml.out:119 +#: sg.1.xml.out:155 msgid "id" msgstr "" +#. (itstool) path: citerefentry/refentrytitle +#. (itstool) path: refmeta/refentrytitle +#. (itstool) path: refnamediv/refname +#. (itstool) path: cmdsynopsis/command +#. (itstool) path: para/command +#: newgrp.1.xml.out:139 +#: sg.1.xml.out:34 +#: sg.1.xml.out:41 +#: sg.1.xml.out:47 +#: sg.1.xml.out:64 +#: sg.1.xml.out:67 +#: sg.1.xml.out:69 +#: sg.1.xml.out:72 +#: sg.1.xml.out:73 +#: sg.1.xml.out:81 +#: su.1.xml.out:421 +msgid "sg" +msgstr "" + #. (itstool) path: refnamediv/refpurpose -#: newusers.8.xml.out:59 +#: newusers.8.xml.out:58 msgid "update and create new users in batch" msgstr "" #. (itstool) path: refsect1/para -#: newusers.8.xml.out:76 +#: newusers.8.xml.out:75 msgid "The <_:command-1/> command reads a <_:replaceable-2/> (or the standard input by default) and uses this information to update a set of existing users or to create new users. Each line is in the same format as the standard password file (see <_:citerefentry-3/>) with the exceptions explained below:" msgstr "" #. (itstool) path: refsect1/para -#: newusers.8.xml.out:84 +#: newusers.8.xml.out:83 msgid "pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell" msgstr "" #. (itstool) path: term/emphasis -#: newusers.8.xml.out:89 +#: newusers.8.xml.out:88 msgid "pw_name" msgstr "" #. (itstool) path: listitem/para -#: newusers.8.xml.out:92 +#: newusers.8.xml.out:91 msgid "This is the name of the user." msgstr "" #. (itstool) path: listitem/para -#: newusers.8.xml.out:95 +#: newusers.8.xml.out:94 msgid "It can be the name of a new user or the name of an existing user (or a user created before by <_:command-1/>). In case of an existing user, the user's information will be changed, otherwise a new user will be created." msgstr "" #. (itstool) path: term/emphasis -#: newusers.8.xml.out:106 +#: newusers.8.xml.out:105 msgid "pw_passwd" msgstr "" #. (itstool) path: listitem/para -#: newusers.8.xml.out:109 -msgid "This field will be encrypted and used as the new value of the encrypted password." +#: newusers.8.xml.out:108 +msgid "If this field is not empty, it will be encrypted and used as the new value of the encrypted password." msgstr "" #. (itstool) path: term/emphasis @@ -6958,49 +6680,49 @@ msgstr "" #. (itstool) path: listitem/para #: newusers.8.xml.out:292 -#: useradd.8.xml.out:461 +#: useradd.8.xml.out:507 msgid "Create a system account." msgstr "" #. (itstool) path: para/option #: newusers.8.xml.out:299 -#: useradd.8.xml.out:468 -#: usermod.8.xml.out:398 +#: useradd.8.xml.out:514 +#: usermod.8.xml.out:403 msgid "SYS_UID_MIN" msgstr "" #. (itstool) path: para/option #: newusers.8.xml.out:299 -#: useradd.8.xml.out:468 -#: usermod.8.xml.out:398 +#: useradd.8.xml.out:514 +#: usermod.8.xml.out:403 msgid "SYS_UID_MAX" msgstr "" #. (itstool) path: para/option #. (itstool) path: para/replaceable #: newusers.8.xml.out:301 -#: useradd.8.xml.out:310 -#: useradd.8.xml.out:321 -#: useradd.8.xml.out:470 -#: useradd.8.xml.out:540 -#: usermod.8.xml.out:397 +#: useradd.8.xml.out:356 +#: useradd.8.xml.out:367 +#: useradd.8.xml.out:516 +#: useradd.8.xml.out:587 +#: usermod.8.xml.out:402 msgid "UID_MIN" msgstr "" #. (itstool) path: para/option #. (itstool) path: para/replaceable #: newusers.8.xml.out:301 -#: useradd.8.xml.out:310 -#: useradd.8.xml.out:323 -#: useradd.8.xml.out:470 -#: useradd.8.xml.out:545 -#: usermod.8.xml.out:397 +#: useradd.8.xml.out:356 +#: useradd.8.xml.out:369 +#: useradd.8.xml.out:516 +#: useradd.8.xml.out:592 +#: usermod.8.xml.out:402 msgid "UID_MAX" msgstr "" #. (itstool) path: listitem/para #: newusers.8.xml.out:295 -#: useradd.8.xml.out:464 +#: useradd.8.xml.out:510 msgid "System users will be created with no aging information in <_:filename-1/>, and their numeric identifiers are chosen in the <_:option-2/>-<_:option-3/> range, defined in <_:filename-4/>, instead of <_:option-5/>-<_:option-6/> (and their <_:option-7/> counterparts for the creation of groups)." msgstr "" @@ -7025,67 +6747,67 @@ msgid "The input file must be protected since it contains unencrypted passwords. msgstr "" #. (itstool) path: term/filename -#: newusers.8.xml.out:450 +#: newusers.8.xml.out:447 msgid "/etc/pam.d/newusers" msgstr "" #. (itstool) path: term/filename #. (itstool) path: para/filename -#: newusers.8.xml.out:456 -#: useradd.8.xml.out:222 -#: useradd.8.xml.out:483 -#: useradd.8.xml.out:805 -#: userdel.8.xml.out:215 -#: usermod.8.xml.out:604 +#: newusers.8.xml.out:453 +#: useradd.8.xml.out:263 +#: useradd.8.xml.out:529 +#: useradd.8.xml.out:850 +#: userdel.8.xml.out:208 +#: usermod.8.xml.out:622 msgid "/etc/subgid" msgstr "" #. (itstool) path: listitem/para -#: newusers.8.xml.out:458 -#: useradd.8.xml.out:807 -#: userdel.8.xml.out:217 +#: newusers.8.xml.out:455 +#: useradd.8.xml.out:852 +#: userdel.8.xml.out:210 msgid "Per user subordinate group IDs." msgstr "" #. (itstool) path: term/filename #. (itstool) path: para/filename -#: newusers.8.xml.out:462 -#: useradd.8.xml.out:222 -#: useradd.8.xml.out:482 -#: useradd.8.xml.out:811 -#: userdel.8.xml.out:221 -#: usermod.8.xml.out:610 +#: newusers.8.xml.out:459 +#: useradd.8.xml.out:263 +#: useradd.8.xml.out:528 +#: useradd.8.xml.out:856 +#: userdel.8.xml.out:214 +#: usermod.8.xml.out:628 msgid "/etc/subuid" msgstr "" #. (itstool) path: listitem/para -#: newusers.8.xml.out:464 -#: useradd.8.xml.out:813 -#: userdel.8.xml.out:223 +#: newusers.8.xml.out:461 +#: useradd.8.xml.out:858 +#: userdel.8.xml.out:216 msgid "Per user subordinate user IDs." msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: newusers.8.xml.out:481 -#: useradd.8.xml.out:926 -#: userdel.8.xml.out:335 -#: usermod.8.xml.out:650 +#: newusers.8.xml.out:478 +#: useradd.8.xml.out:977 +#: userdel.8.xml.out:328 +#: usermod.8.xml.out:668 msgid "subgid" msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: newusers.8.xml.out:484 -#: useradd.8.xml.out:929 -#: userdel.8.xml.out:338 -#: usermod.8.xml.out:653 +#: newusers.8.xml.out:481 +#: useradd.8.xml.out:980 +#: userdel.8.xml.out:331 +#: usermod.8.xml.out:671 msgid "subuid" msgstr "" #. (itstool) path: para/phrase -#: newusers.8.xml.out:479 -#: useradd.8.xml.out:924 -#: userdel.8.xml.out:333 -#: usermod.8.xml.out:648 +#: newusers.8.xml.out:476 +#: useradd.8.xml.out:975 +#: userdel.8.xml.out:326 +#: usermod.8.xml.out:666 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>," msgstr "" @@ -7125,13 +6847,13 @@ msgid "The <_:command-1/> command appeared in BSD 4.4." msgstr "" #. (itstool) path: refnamediv/refpurpose -#: passwd.1.xml.out:50 +#: passwd.1.xml.out:49 msgid "change user password" msgstr "" #. (itstool) path: refsect1/para -#: passwd.1.xml.out:67 -msgid "The <_:command-1/> command changes passwords for user accounts. A normal user may only change the password for their own account, while the superuser may change the password for any account. <_:command-2/> also changes the account or associated password validity period." +#: passwd.1.xml.out:66 +msgid "The <_:command-1/> command changes passwords for user accounts. A regular user can only change the password for their own account, while the superuser can change the password for any account. The <_:command-2/> also changes the account or associated password validity period." msgstr "" #. (itstool) path: refsect2/title @@ -7141,22 +6863,22 @@ msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:77 -msgid "The user is first prompted for their old password, if one is present. This password is then encrypted and compared against the stored password. The user has only one chance to enter the correct password. The superuser is permitted to bypass this step so that forgotten passwords may be changed." +msgid "If the account has a non-empty password, the user is first prompted to enter their current password. The entered password is encrypted and compared to the stored value. The user has only one attempt to enter the correct password. The superuser can bypass this step to allow changing forgotten passwords." msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:85 -msgid "After the password has been entered, password aging information is checked to see if the user is permitted to change the password at this time. If not, <_:command-1/> refuses to change the password and exits." +msgid "After the password has been entered, password aging information is checked to determine if the user is permitted to change the password at this time. If not, <_:command-1/> refuses to change the password and exits." msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:92 -msgid "The user is then prompted twice for a replacement password. The second entry is compared against the first and both are required to match in order for the password to be changed." +msgid "The user is then prompted twice for a replacement password. The second entry is compared against the first and both are required to match for the password to be changed." msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:98 -msgid "Then, the password is tested for complexity. <_:command-1/> will reject any password which is not suitably complex. Care must be taken not to include the system default erase or kill characters." +msgid "Then, the password is tested for complexity. <_:command-1/> rejects passwords that do not meet the complexity requirements. Do not include the system default erase or kill characters." msgstr "" #. (itstool) path: refsect2/title @@ -7171,12 +6893,12 @@ msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:109 -msgid "The security of a password depends upon the strength of the encryption algorithm and the size of the key space. The legacy <_:emphasis-1/> System encryption method is based on the NBS DES algorithm. More recent methods are now recommended (see <_:option-2/>). The size of the key space depends upon the randomness of the password which is selected." +msgid "The security of a password depends on the strength of the encryption algorithm and the size of the key space. The legacy <_:emphasis-1/> System encryption method is based on the NBS DES algorithm. More recent methods are now recommended (see <_:option-2/>). The size of the key space depends on the randomness of the selected password." msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:118 -msgid "Compromises in password security normally result from careless password selection or handling. For this reason, you should not select a password which appears in a dictionary or which must be written down. The password should also not be a proper name, your license number, birth date, or street address. Any of these may be used as guesses to violate system security." +msgid "Compromises in password security normally result from careless password selection or handling. For this reason, you should not select a password which appears in a dictionary or one that must be written down. The password should also not be a proper name, your license number, birth date, or street address. Any of these may be used as guesses to violate system security." msgstr "" #. (itstool) path: refsect2/para @@ -7186,7 +6908,7 @@ msgstr "" #. (itstool) path: refsect2/para #: passwd.1.xml.out:138 -msgid "You can find advice on how to choose a strong password on http://en.wikipedia.org/wiki/Password_strength" +msgid "You can find advice on how to choose a strong password on https://en.wikipedia.org/wiki/Password_strength" msgstr "" #. (itstool) path: listitem/para @@ -7196,129 +6918,134 @@ msgstr "" #. (itstool) path: listitem/para #: passwd.1.xml.out:167 -msgid "Delete a user's password (make it empty). This is a quick way to disable a password for an account. It will set the named account passwordless." +msgid "Deletes a user's password, making it empty. This command sets the account to be passwordless." msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:176 +#: passwd.1.xml.out:175 msgid "--expire" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:179 +#: passwd.1.xml.out:178 msgid "Immediately expire an account's password. This in effect can force a user to change their password at the user's next login." msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:196 +#: passwd.1.xml.out:195 msgid "This option is used to disable an account after the password has been expired for a number of days. After a user account has had an expired password for <_:replaceable-1/> days, the user may no longer sign on to the account." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: passwd.1.xml.out:206 -#: useradd.8.xml.out:280 -#: useradd.8.xml.out:358 +#: passwd.1.xml.out:205 +#: useradd.8.xml.out:321 +#: useradd.8.xml.out:404 msgid "-k" msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:206 +#: passwd.1.xml.out:205 msgid "--keep-tokens" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:209 +#: passwd.1.xml.out:208 msgid "Indicate password change should be performed only for expired authentication tokens (passwords). The user wishes to keep their non-expired tokens as before." msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:218 -#: usermod.8.xml.out:231 +#: passwd.1.xml.out:217 +#: usermod.8.xml.out:235 msgid "--lock" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:221 +#: passwd.1.xml.out:220 msgid "Lock the password of the named account. This option disables a password by changing it to a value which matches no possible encrypted value (it adds a ´!´ at the beginning of the password)." msgstr "" #. (itstool) path: para/command -#: passwd.1.xml.out:231 +#: passwd.1.xml.out:230 msgid "usermod --expiredate 1" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:227 -msgid "Note that this does not disable the account. The user may still be able to login using another authentication token (e.g. an SSH key). To disable the account, administrators should use <_:command-1/> (this set the account's expire date to Jan 2, 1970)." +#: passwd.1.xml.out:226 +msgid "Note that this does not disable the account. The user may still be able to login using another authentication token (e.g. an SSH key). To disable the account, administrators should use <_:command-1/> (this sets the account's expire date to 1970-01-02)." msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:234 +#: passwd.1.xml.out:233 msgid "Users with a locked password are not allowed to change their password." msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:254 +#: passwd.1.xml.out:253 #: pwck.8.xml.out:179 #: vipw.8.xml.out:108 msgid "-q" msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:254 +#: passwd.1.xml.out:253 #: pwck.8.xml.out:179 #: vipw.8.xml.out:108 msgid "--quiet" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:257 +#: passwd.1.xml.out:256 #: vipw.8.xml.out:110 msgid "Quiet mode." msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:264 +#: passwd.1.xml.out:263 msgid "--repository" msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: passwd.1.xml.out:264 -#: passwd.1.xml.out:268 +#: passwd.1.xml.out:263 +#: passwd.1.xml.out:267 msgid "REPOSITORY" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:267 +#: passwd.1.xml.out:266 msgid "change password in <_:replaceable-1/> repository" msgstr "" +#. (itstool) path: listitem/para +#: passwd.1.xml.out:290 +msgid "Apply changes to configuration files under the root filesystem found under the directory <_:replaceable-1/>. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. No PAM support. No SELINUX support." +msgstr "" + #. (itstool) path: term/option -#: passwd.1.xml.out:302 +#: passwd.1.xml.out:301 msgid "--status" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:305 +#: passwd.1.xml.out:304 msgid "Display account status information. The status information consists of 7 fields. The first field is the user's login name. The second field indicates if the user account has a locked password (L), has no password (NP), or has a usable password (P). The third field gives the date of the last password change. The next four fields are the minimum age, maximum age, warning period, and inactivity period for the password. These ages are expressed in days." msgstr "" #. (itstool) path: term/option -#: passwd.1.xml.out:320 -#: usermod.8.xml.out:405 +#: passwd.1.xml.out:319 +#: usermod.8.xml.out:410 msgid "--unlock" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:323 +#: passwd.1.xml.out:322 msgid "Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the <_:option-1/> option)." msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:336 -msgid "Set the number of days of warning before a password change is required. The <_:replaceable-1/> option is the number of days prior to the password expiring that a user will be warned that their password is about to expire." +#: passwd.1.xml.out:335 +msgid "Set the number of days of warning before a password change is required. The <_:replaceable-1/> option is the number of days prior to password expiration during which the user is warned that their password is about to expire." msgstr "" #. (itstool) path: term/option @@ -7357,42 +7084,47 @@ msgid "<_:command-1/> uses PAM to authenticate users and to change their passwor msgstr "" #. (itstool) path: term/filename -#: passwd.1.xml.out:433 +#: passwd.1.xml.out:432 msgid "/etc/pam.d/passwd" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:461 +#: passwd.1.xml.out:460 msgid "invalid combination of options" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:467 +#: passwd.1.xml.out:466 msgid "unexpected failure, nothing done" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:473 +#: passwd.1.xml.out:472 msgid "unexpected failure, <_:filename-1/> file missing" msgstr "" #. (itstool) path: listitem/para -#: passwd.1.xml.out:479 +#: passwd.1.xml.out:478 msgid "<_:filename-1/> file busy, try again" msgstr "" +#. (itstool) path: listitem/para +#: passwd.1.xml.out:490 +msgid "an error was returned by <_:refentrytitle-1/><_:manvolnum-2/>" +msgstr "" + #. (itstool) path: citerefentry/refentrytitle -#: passwd.1.xml.out:499 +#: passwd.1.xml.out:504 msgid "makepasswd" msgstr "" #. (itstool) path: refsect1/para -#: passwd.1.xml.out:494 +#: passwd.1.xml.out:499 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:phrase-5/> <_:citerefentry-6/>." msgstr "" #. (itstool) path: refsect1/para -#: passwd.1.xml.out:517 +#: passwd.1.xml.out:522 msgid "The following web page comically (yet correctly) compares the strength of two different methods for choosing a password: \"https://xkcd.com/936/\"" msgstr "" @@ -7480,9 +7212,7 @@ msgid "A <_:emphasis-1/> field which starts with an exclamation mark means that msgstr "" #. (itstool) path: refsect1/para -#. (itstool) path: listitem/para #: passwd.5.xml.out:107 -#: shadow.5.xml.out:92 msgid "If the password field contains some string that is not a valid result of <_:citerefentry-1/>, for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means)." msgstr "" @@ -7498,7 +7228,7 @@ msgstr "" #. (itstool) path: para/filename #: passwd.5.xml.out:134 -#: sg.1.xml.out:61 +#: sg.1.xml.out:66 #: su.1.xml.out:190 msgid "/bin/sh" msgstr "" @@ -7510,7 +7240,7 @@ msgstr "" #. (itstool) path: listitem/para #: passwd.5.xml.out:150 -msgid "optional encrypted password file" +msgid "Optional encrypted password file." msgstr "" #. (itstool) path: term/filename @@ -7649,6 +7379,13 @@ msgstr "" msgid "/dev/console" msgstr "" +#. (itstool) path: para/filename +#. (itstool) path: term/filename +#: porttime.5.xml.out:87 +#: porttime.5.xml.out:109 +msgid "/etc/porttime" +msgstr "" + #. (itstool) path: refsect1/para #: porttime.5.xml.out:83 msgid "The following entries allow access only to the users <_:emphasis-1/> and <_:emphasis-2/> on <_:filename-3/> at any time. This illustrates how the <_:filename-4/> file is an ordered list of access times. Any other user would match the second entry which does not permit access at any time." @@ -7674,6 +7411,11 @@ msgstr "" msgid "*:games:Wk1700-0900,SaSu0000-2400" msgstr "" +#. (itstool) path: listitem/para +#: porttime.5.xml.out:111 +msgid "File containing port access." +msgstr "" + #. (itstool) path: refnamediv/refpurpose #: pwck.8.xml.out:48 msgid "verify the integrity of password files" @@ -7693,7 +7435,7 @@ msgstr "" #. (itstool) path: phrase/filename #: pwck.8.xml.out:75 -#: pwck.8.xml.out:226 +#: pwck.8.xml.out:227 msgid "/etc/tcb" msgstr "" @@ -7788,70 +7530,70 @@ msgid "Execute the <_:command-1/> command in read-only mode." msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:211 +#: pwck.8.xml.out:212 msgid "Sort entries in <_:filename-1/> and <_:filename-2/> by UID." msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:215 +#: pwck.8.xml.out:216 msgid "This option has no effect when <_:option-1/> is enabled." msgstr "" #. (itstool) path: para/phrase -#: pwck.8.xml.out:225 +#: pwck.8.xml.out:226 msgid "(or the files in <_:filename-1/>)" msgstr "" #. (itstool) path: refsect1/para -#: pwck.8.xml.out:222 +#: pwck.8.xml.out:223 msgid "By default, <_:command-1/> operates on the files <_:filename-2/> and <_:filename-3/><_:phrase-4/>. The user may select alternate files with the <_:replaceable-5/> and <_:replaceable-6/> parameters." msgstr "" #. (itstool) path: refsect1/para -#: pwck.8.xml.out:231 +#: pwck.8.xml.out:232 msgid "Note that when <_:option-1/> is enabled, you cannot specify an alternative <_:replaceable-2/> file. In future releases, this parameter could be replaced by an alternate TCB directory." msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:301 +#: pwck.8.xml.out:302 msgid "one or more bad password entries" msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:307 +#: pwck.8.xml.out:308 msgid "can't open password files" msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:313 +#: pwck.8.xml.out:314 msgid "can't lock password files" msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:319 +#: pwck.8.xml.out:320 msgid "can't update password files" msgstr "" #. (itstool) path: listitem/para -#: pwck.8.xml.out:325 +#: pwck.8.xml.out:326 msgid "can't sort password files" msgstr "" #. (itstool) path: refnamediv/refpurpose #: pwconv.8.xml.out:50 -msgid "convert to and from shadow passwords and groups" +msgid "convert between the system's shadowed and plain account files" msgstr "" #. (itstool) path: refsect1/para #: pwconv.8.xml.out:82 #: pwconv.8.xml.out:112 -msgid "The <_:command-1/> command creates <_:emphasis-2/> from <_:emphasis-3/> and an optionally existing <_:emphasis-4/>." +msgid "The <_:command-1/> command creates <_:filename-2/> from <_:filename-3/> and an optionally existing <_:filename-4/>." msgstr "" #. (itstool) path: para/command #. (itstool) path: citerefentry/refentrytitle #: pwconv.8.xml.out:93 -#: pwconv.8.xml.out:251 +#: pwconv.8.xml.out:252 msgid "tcb_convert" msgstr "" @@ -7862,14 +7604,13 @@ msgstr "" #. (itstool) path: refsect1/para #: pwconv.8.xml.out:97 -#: pwconv.8.xml.out:118 -msgid "The <_:command-1/> command creates <_:emphasis-2/> from <_:emphasis-3/> and <_:emphasis-4/> and then removes <_:emphasis-5/>." +msgid "The <_:command-1/> command creates a plain <_:filename-2/> from shadowed <_:filename-3/> and <_:filename-4/> and then removes <_:filename-5/>." msgstr "" #. (itstool) path: para/command #. (itstool) path: citerefentry/refentrytitle #: pwconv.8.xml.out:106 -#: pwconv.8.xml.out:254 +#: pwconv.8.xml.out:255 msgid "tcb_unconvert" msgstr "" @@ -7878,6 +7619,11 @@ msgstr "" msgid "<_:command-1/> does not work with <_:option-2/> enabled. You should first switch back from tcb to shadowed passwords using <_:command-3/>, and then disable <_:option-4/> in <_:filename-5/> before using <_:command-6/>." msgstr "" +#. (itstool) path: refsect1/para +#: pwconv.8.xml.out:118 +msgid "The <_:command-1/> command creates plain <_:filename-2/> from shadowed <_:filename-3/> and <_:filename-4/> and then removes <_:filename-5/>." +msgstr "" + #. (itstool) path: refsect1/para #: pwconv.8.xml.out:125 msgid "These four programs all operate on the normal and shadow password and group files: <_:filename-1/>, <_:filename-2/>, <_:filename-3/>, and <_:filename-4/>." @@ -7885,7 +7631,7 @@ msgstr "" #. (itstool) path: refsect1/para #: pwconv.8.xml.out:132 -msgid "Each program acquires the necessary locks before conversion. <_:command-1/> and <_:command-2/> are similar. First, entries in the shadowed file which don't exist in the main file are removed. Then, shadowed entries which don't have `x' as the password in the main file are updated. Any missing shadowed entries are added. Finally, passwords in the main file are replaced with `x'. These programs can be used for initial conversion as well to update the shadowed file if the main file is edited by hand." +msgid "Each program acquires the necessary locks before conversion. <_:command-1/> and <_:command-2/> are similar. First, entries in the shadowed file which don't exist in the plain file are removed. Then, entries in the shadowed file which don't have `x' as the password in plain file are updated. Any missing shadowed entries are added. Finally, passwords in the plain file are replaced with `x'. These programs can be used for initial conversion as well to update the shadowed file if the plain file has been edited by hand." msgstr "" #. (itstool) path: refsect1/para @@ -7895,7 +7641,7 @@ msgstr "" #. (itstool) path: refsect1/para #: pwconv.8.xml.out:152 -msgid "Likewise <_:command-1/> and <_:command-2/> are similar. Passwords in the main file are updated from the shadowed file. Entries which exist in the main file but not in the shadowed file are left alone. Finally, the shadowed file is removed. Some password aging information is lost by <_:command-3/>. It will convert what it can." +msgid "Likewise <_:command-1/> and <_:command-2/> are similar. Passwords in the plain file are updated from the shadowed file. Entries which exist in the plain file but not in the shadowed file are left alone. Finally, the shadowed file is removed. Some password aging information is lost by <_:command-3/>. It will convert what it can." msgstr "" #. (itstool) path: refsect1/para @@ -7904,27 +7650,27 @@ msgid "The options which apply to the <_:command-1/>, <_:command-2/>, <_:command msgstr "" #. (itstool) path: refsect1/para -#: pwconv.8.xml.out:194 -msgid "Errors in the password or group files (such as invalid or duplicate entries) may cause these programs to loop forever or fail in other strange ways. Please run <_:command-1/> and <_:command-2/> to correct any such errors before converting to or from shadow passwords or groups." +#: pwconv.8.xml.out:195 +msgid "Errors in the password or group files (such as invalid or duplicate entries) may cause these programs to loop forever or fail in other strange ways. Please run <_:command-1/> and <_:command-2/> to correct any such errors before converting to or from shadowed files." msgstr "" #. (itstool) path: refsect1/para -#: pwconv.8.xml.out:205 +#: pwconv.8.xml.out:206 msgid "The following configuration variable in <_:filename-1/> changes the behavior of <_:command-2/> and <_:command-3/>:" msgstr "" #. (itstool) path: refsect1/para -#: pwconv.8.xml.out:213 +#: pwconv.8.xml.out:214 msgid "The following configuration variables in <_:filename-1/> change the behavior of <_:command-2/>:" msgstr "" #. (itstool) path: para/phrase -#: pwconv.8.xml.out:249 +#: pwconv.8.xml.out:250 msgid ", <_:citerefentry-1/>, <_:citerefentry-2/>" msgstr "" #. (itstool) path: refsect1/para -#: pwconv.8.xml.out:240 +#: pwconv.8.xml.out:241 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/><_:phrase-4/>." msgstr "" @@ -8223,107 +7969,127 @@ msgstr "" #. (itstool) path: listitem/para #: shadow.5.xml.out:66 -msgid "It must be a valid account name, which exist on the system." +msgid "It must be a valid account name, which exists on the system." msgstr "" #. (itstool) path: listitem/para #: shadow.5.xml.out:74 -msgid "This field may be empty, in which case no passwords are required to authenticate as the specified login name. However, some applications which read the <_:filename-1/> file may decide not to permit any access at all if the password field is empty." +msgid "If the password field is empty, the user can log in without a password. However, some applications that read the <_:filename-1/> file might block access if the password field is empty." +msgstr "" + +#. (itstool) path: para/emphasis +#: shadow.5.xml.out:82 +msgid "!" +msgstr "" + +#. (itstool) path: listitem/para +#: shadow.5.xml.out:81 +msgid "If the password field begins with an exclamation mark <_:emphasis-1/>, the password is locked. The remaining characters on the line represent the password hash." +msgstr "" + +#. (itstool) path: listitem/para +#: shadow.5.xml.out:87 +msgid "If the password hash consists of a star <_:emphasis-1/>, password access is effectively disallowed; this is because no password can produce a hash like this." +msgstr "" + +#. (itstool) path: listitem/para +#: shadow.5.xml.out:97 +msgid "If the password field contains a string that is not a valid result of <_:citerefentry-1/>, for instance ! or *, the user cannot use a UNIX password to log in. However, the user may log in the system by other means." msgstr "" #. (itstool) path: term/emphasis -#: shadow.5.xml.out:103 +#: shadow.5.xml.out:108 msgid "date of last password change" msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:106 -msgid "The date of the last password change, expressed as the number of days since Jan 1, 1970 00:00 UTC." +#: shadow.5.xml.out:111 +msgid "The date of the last password change, expressed as the number of days since 1970-01-01 00:00:00 UTC." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:110 -msgid "The value 0 has a special meaning, which is that the user should change her password the next time she will log in the system." +#: shadow.5.xml.out:115 +msgid "The value 0 indicates that the user must change their password the next time they log in to the system." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:115 +#: shadow.5.xml.out:119 msgid "An empty field means that password aging features are disabled." msgstr "" #. (itstool) path: term/emphasis -#: shadow.5.xml.out:122 +#: shadow.5.xml.out:126 msgid "minimum password age" msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:124 -msgid "The minimum password age is the number of days the user will have to wait before she will be allowed to change her password again." +#: shadow.5.xml.out:128 +msgid "The minimum password age is the number of days the user must wait before they can change their password again." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:129 +#: shadow.5.xml.out:132 msgid "An empty field and value 0 mean that there is no minimum password age." msgstr "" #. (itstool) path: term/emphasis -#: shadow.5.xml.out:136 +#: shadow.5.xml.out:139 msgid "maximum password age" msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:138 -msgid "The maximum password age is the number of days after which the user will have to change her password." +#: shadow.5.xml.out:141 +msgid "The maximum password age is the number of days after which the user must change their password." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:142 -msgid "After this number of days is elapsed, the password may still be valid. The user should be asked to change her password the next time she will log in." +#: shadow.5.xml.out:145 +msgid "After this number of days has elapsed, the password may still be valid. The user is prompted to change their password at the next login." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:147 +#: shadow.5.xml.out:149 msgid "An empty field means that there are no maximum password age, no password warning period, and no password inactivity period (see below)." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:152 +#: shadow.5.xml.out:154 msgid "If the maximum password age is lower than the minimum password age, the user cannot change her password." msgstr "" #. (itstool) path: term/emphasis -#: shadow.5.xml.out:160 +#: shadow.5.xml.out:162 msgid "password warning period" msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:163 -msgid "The number of days before a password is going to expire (see the maximum password age above) during which the user should be warned." +#: shadow.5.xml.out:165 +msgid "The number of days before a password expires (see the maximum password age above) during which the user is warned." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:168 -msgid "An empty field and value 0 mean that there are no password warning period." +#: shadow.5.xml.out:170 +msgid "An empty field and value 0 mean that there is no password warning period." msgstr "" #. (itstool) path: term/emphasis -#: shadow.5.xml.out:176 +#: shadow.5.xml.out:178 msgid "password inactivity period" msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:179 -msgid "The number of days after a password has expired (see the maximum password age above) during which the password should still be accepted (and the user should update her password during the next login)." +#: shadow.5.xml.out:181 +msgid "The number of days after a password expires (see the maximum password age above) during which the password is still accepted, and the user must update their password at the next login." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:185 -msgid "After expiration of the password and this expiration period is elapsed, no login is possible for the user. The user should contact her administrator." +#: shadow.5.xml.out:187 +msgid "After the password expires and the password inactivity period elapses, the user cannot log in and must contact their administrator." msgstr "" #. (itstool) path: listitem/para -#: shadow.5.xml.out:190 -msgid "An empty field means that there are no enforcement of an inactivity period." +#: shadow.5.xml.out:191 +msgid "An empty string means that no inactivity period is enforced." msgstr "" #. (itstool) path: term/emphasis @@ -8333,22 +8099,22 @@ msgstr "" #. (itstool) path: listitem/para #: shadow.5.xml.out:201 -msgid "The date of expiration of the account, expressed as the number of days since Jan 1, 1970 00:00 UTC." +msgid "The date when the account expires, expressed as the number of days since 1970-01-01." msgstr "" #. (itstool) path: listitem/para #: shadow.5.xml.out:205 -msgid "Note that an account expiration differs from a password expiration. In case of an account expiration, the user shall not be allowed to login. In case of a password expiration, the user is not allowed to login using her password." +msgid "Note that account expiration differs from password expiration. Account expiration prevents the user from logging in, whereas password expiration only prevents users from logging in with their password." msgstr "" #. (itstool) path: listitem/para #: shadow.5.xml.out:211 -msgid "An empty field means that the account will never expire." +msgid "An empty field means that the account never expires." msgstr "" #. (itstool) path: listitem/para #: shadow.5.xml.out:214 -msgid "The value 0 should not be used as it is interpreted as either an account with no expiration, or as an expiration on Jan 1, 1970." +msgid "The value 0 should not be used, as it is interpreted either as an account with no expiration or as an expiration date of 1970-01-01." msgstr "" #. (itstool) path: term/emphasis @@ -8376,14 +8142,30 @@ msgstr "" msgid "execute command as different group ID" msgstr "" -#. (itstool) path: cmdsynopsis/arg -#: sg.1.xml.out:49 -msgid "group <_:arg-1/> command" +#. (itstool) path: arg/replaceable +#: sg.1.xml.out:56 +msgid "command" msgstr "" #. (itstool) path: refsect1/para -#: sg.1.xml.out:58 -msgid "The <_:command-1/> command works similar to <_:command-2/> but accepts a command. The command will be executed with the <_:filename-3/> shell. With most shells you may run <_:command-4/> from, you need to enclose multi-word commands in quotes. Another difference between <_:command-5/> and <_:command-6/> is that some shells treat <_:command-7/> specially, replacing themselves with a new instance of a shell that <_:command-8/> creates. This doesn't happen with <_:command-9/>, so upon exit from a <_:command-10/> command you are returned to your previous group ID." +#: sg.1.xml.out:63 +msgid "The <_:command-1/> command works similar to <_:command-2/> but accepts a command. The command will be executed with the <_:filename-3/> shell. With most shells you may run <_:command-4/> from, you need to enclose multi-word commands in quotes. Another difference between <_:command-5/> and <_:command-6/> is that some shells treat <_:command-7/> specially, replacing themselves with a new instance of a shell that <_:command-8/> creates. This doesn't happen with <_:command-9/>, so upon exit from an <_:command-10/> command you are returned to your previous group ID." +msgstr "" + +#. (itstool) path: listitem/para +#: sg.1.xml.out:87 +msgid "Start the shell as a login shell." +msgstr "" + +#. (itstool) path: listitem/para +#: sg.1.xml.out:97 +#: su.1.xml.out:129 +msgid "Specify a command that will be invoked by the shell using its <_:option-1/>." +msgstr "" + +#. (itstool) path: listitem/para +#: sg.1.xml.out:101 +msgid "This is the default; for backward compatibility." msgstr "" #. (itstool) path: refnamediv/refpurpose @@ -8454,11 +8236,6 @@ msgstr "" msgid "COMMAND" msgstr "" -#. (itstool) path: listitem/para -#: su.1.xml.out:129 -msgid "Specify a command that will be invoked by the shell using its <_:option-1/>." -msgstr "" - #. (itstool) path: listitem/para #: su.1.xml.out:133 msgid "The executed command will have no controlling terminal. This option cannot be used to execute interactive programs which need a controlling TTY." @@ -8472,7 +8249,7 @@ msgstr "" #: su.1.xml.out:263 #: su.1.xml.out:273 #: su.1.xml.out:286 -#: usermod.8.xml.out:217 +#: usermod.8.xml.out:221 msgid "--login" msgstr "" @@ -8623,7 +8400,7 @@ msgstr "" #. (itstool) path: para/option #: su.1.xml.out:279 -#: userdel.8.xml.out:116 +#: userdel.8.xml.out:108 msgid "MAIL_DIR" msgstr "" @@ -8854,9 +8631,9 @@ msgstr "" #: useradd.8.xml.out:72 #: useradd.8.xml.out:76 #: useradd.8.xml.out:86 -#: useradd.8.xml.out:169 -#: useradd.8.xml.out:603 -#: useradd.8.xml.out:605 +#: useradd.8.xml.out:199 +#: useradd.8.xml.out:650 +#: useradd.8.xml.out:652 msgid "-D" msgstr "" @@ -8872,7 +8649,7 @@ msgstr "" #. (itstool) path: term/option #: useradd.8.xml.out:118 -#: useradd.8.xml.out:612 +#: useradd.8.xml.out:659 msgid "--base-dir" msgstr "" @@ -8880,18 +8657,18 @@ msgstr "" #. (itstool) path: para/replaceable #: useradd.8.xml.out:118 #: useradd.8.xml.out:124 -#: useradd.8.xml.out:159 -#: useradd.8.xml.out:612 -#: useradd.8.xml.out:618 +#: useradd.8.xml.out:186 +#: useradd.8.xml.out:659 +#: useradd.8.xml.out:665 msgid "BASE_DIR" msgstr "" #. (itstool) path: para/replaceable #. (itstool) path: term/replaceable #: useradd.8.xml.out:123 -#: useradd.8.xml.out:151 -#: useradd.8.xml.out:156 -#: useradd.8.xml.out:161 +#: useradd.8.xml.out:178 +#: useradd.8.xml.out:183 +#: useradd.8.xml.out:188 #: usermod.8.xml.out:112 msgid "HOME_DIR" msgstr "" @@ -8903,625 +8680,682 @@ msgstr "" #. (itstool) path: para/option #: useradd.8.xml.out:131 -#: useradd.8.xml.out:623 +#: useradd.8.xml.out:670 msgid "HOME" msgstr "" -#. (itstool) path: para/filename -#. (itstool) path: term/filename -#: useradd.8.xml.out:132 -#: useradd.8.xml.out:189 -#: useradd.8.xml.out:212 -#: useradd.8.xml.out:250 -#: useradd.8.xml.out:267 -#: useradd.8.xml.out:295 -#: useradd.8.xml.out:345 -#: useradd.8.xml.out:395 -#: useradd.8.xml.out:525 -#: useradd.8.xml.out:624 -#: useradd.8.xml.out:636 -#: useradd.8.xml.out:653 -#: useradd.8.xml.out:669 -#: useradd.8.xml.out:683 -#: useradd.8.xml.out:697 -#: useradd.8.xml.out:787 -#: usermod.8.xml.out:419 -msgid "/etc/default/useradd" +#. (itstool) path: para/filename +#. (itstool) path: term/filename +#: useradd.8.xml.out:132 +#: useradd.8.xml.out:149 +#: useradd.8.xml.out:221 +#: useradd.8.xml.out:252 +#: useradd.8.xml.out:291 +#: useradd.8.xml.out:308 +#: useradd.8.xml.out:336 +#: useradd.8.xml.out:391 +#: useradd.8.xml.out:441 +#: useradd.8.xml.out:572 +#: useradd.8.xml.out:671 +#: useradd.8.xml.out:683 +#: useradd.8.xml.out:699 +#: useradd.8.xml.out:715 +#: useradd.8.xml.out:729 +#: useradd.8.xml.out:742 +#: useradd.8.xml.out:832 +#: usermod.8.xml.out:424 +msgid "/etc/default/useradd" +msgstr "" + +#. (itstool) path: para/filename +#: useradd.8.xml.out:133 +msgid "/home" +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:128 +msgid "If this option is not specified, <_:command-1/> will use the base directory specified by the <_:option-2/> variable in <_:filename-3/>, or <_:filename-4/> by default." +msgstr "" + +#. (itstool) path: term/option +#. (itstool) path: para/option +#: useradd.8.xml.out:139 +#: useradd.8.xml.out:153 +msgid "--btrfs-subvolume-home" +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:142 +msgid "Create the user's home directory as a Btrfs subvolume." +msgstr "" + +#. (itstool) path: para/option +#: useradd.8.xml.out:148 +msgid "BTRFS_SUBVOLUME_HOME" +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:145 +msgid "If this option is not specified, <_:command-1/> will follow the default behavior defined by the <_:option-2/> variable in <_:filename-3/>. If this variable is not set, the default value is no." msgstr "" -#. (itstool) path: para/filename -#: useradd.8.xml.out:133 -msgid "/home" +#. (itstool) path: listitem/para +#: useradd.8.xml.out:152 +msgid "When the <_:option-1/> command-line option is specified, a Btrfs subvolume is created regardless of any configuration file settings." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:128 -msgid "If this option is not specified, <_:command-1/> will use the base directory specified by the <_:option-2/> variable in <_:filename-3/>, or <_:filename-4/> by default." +#: useradd.8.xml.out:158 +msgid "Note: this feature works only if the underlying filesystem supports Btrfs subvolumes." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:139 +#: useradd.8.xml.out:166 #: usermod.8.xml.out:99 msgid "--comment" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:139 +#: useradd.8.xml.out:166 #: usermod.8.xml.out:99 msgid "COMMENT" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:142 +#: useradd.8.xml.out:169 msgid "Any text string. It is generally a short description of the account, and is currently used as the field for the user's full name." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:151 +#: useradd.8.xml.out:178 msgid "--home-dir" msgstr "" +#. (itstool) path: para/replaceable +#. (itstool) path: para/option +#: useradd.8.xml.out:191 +#: useradd.8.xml.out:409 +#: useradd.8.xml.out:427 +#: useradd.8.xml.out:523 +msgid "CREATE_HOME" +msgstr "" + #. (itstool) path: listitem/para -#: useradd.8.xml.out:154 -msgid "The new user will be created using <_:replaceable-1/> as the value for the user's login directory. The default is to append the <_:replaceable-2/> name to <_:replaceable-3/> and use that as the login directory name. If the directory <_:replaceable-4/> does not exist, then it will be created unless the <_:option-5/> option is specified." +#: useradd.8.xml.out:181 +msgid "The new user will be created using <_:replaceable-1/> as the value for the user's login directory. The default is to append the <_:replaceable-2/> name to <_:replaceable-3/> and use that as the login directory name. The directory <_:replaceable-4/> is not created by default. However it will be created for non-system users if either the <_:option-5/> flag is specified or <_:replaceable-6/> in <_:filename-7/> is set to true. However, it will never be created if the <_:option-8/> flag is specified." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:169 +#: useradd.8.xml.out:199 msgid "--defaults" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:172 +#: useradd.8.xml.out:202 msgid "See below, the subsection \"Changing the default values\"." msgstr "" -#. (itstool) path: para/emphasis -#: useradd.8.xml.out:184 -#: usermod.8.xml.out:135 -msgid "YYYY-MM-DD" -msgstr "" - #. (itstool) path: listitem/para -#: useradd.8.xml.out:182 -msgid "The date on which the user account will be disabled. The date is specified in the format <_:emphasis-1/>." +#: useradd.8.xml.out:212 +msgid "Sets the date on which the user account will be disabled. The value can be specified as a date in the YYYY-MM-DD format or as a number of days since 1970-01-01. The date is interpreted using the UTC timezone." msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:188 -#: useradd.8.xml.out:635 -#: usermod.8.xml.out:418 +#: useradd.8.xml.out:220 +#: useradd.8.xml.out:682 +#: usermod.8.xml.out:423 msgid "EXPIRE" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:186 -msgid "If not specified, <_:command-1/> will use the default expiry date specified by the <_:option-2/> variable in <_:filename-3/>, or an empty string (no expiry) by default." +#: useradd.8.xml.out:218 +msgid "If not specified, <_:command-1/> uses the default expiry date specified by the <_:option-2/> variable in <_:filename-3/>, or an empty string (no expiry) by default." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:199 -msgid "defines the number of days after the password exceeded its maximum age where the user is expected to replace this password. The value is stored in the shadow password file. An input of 0 will disable an expired password with no delay. An input of -1 will blank the respective field in the shadow password file. See <_:citerefentry-1/>for more information." +#: useradd.8.xml.out:231 +msgid "Defines the number of days after a password exceeds its maximum age before the user account gets locked. If the user does not change their password within this period of time, their account becomes inactive. This value is stored in the shadow password file. For more information, see <_:citerefentry-1/>." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:208 -msgid "If not specified, <_:command-1/> will use the default inactivity period specified by the <_:option-2/> variable in <_:filename-3/>, or -1 by default." +#: useradd.8.xml.out:241 +#: usermod.8.xml.out:162 +msgid "A value of 0 disables the account when the password expires, with no delay." +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:244 +#: usermod.8.xml.out:165 +msgid "A value of -1 empties the respective field in the shadow password file, which means that the inactivity period is not enforced." +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:248 +msgid "If not specified, <_:command-1/> uses the default inactivity period specified by the <_:option-2/> variable in <_:filename-3/>, or -1 by default if no value is specified." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: useradd.8.xml.out:218 -#: useradd.8.xml.out:484 +#: useradd.8.xml.out:259 +#: useradd.8.xml.out:530 msgid "-F" msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:218 +#: useradd.8.xml.out:259 msgid "--add-subids-for-system" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:221 +#: useradd.8.xml.out:262 msgid "Update <_:filename-1/> and <_:filename-2/> even when creating a system account with <_:option-3/> option." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:233 +#: useradd.8.xml.out:274 msgid "The name or the number of the user's primary group. The group name must exist. A group number must refer to an already existing group." msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:243 +#: useradd.8.xml.out:284 msgid "-U/--user-group" msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:247 +#: useradd.8.xml.out:288 msgid "-N/--no-user-group" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:238 -msgid "If not specified, the behavior of <_:command-1/> will depend on the <_:option-2/> variable in <_:filename-3/>. If this variable is set to <_:replaceable-4/> (or <_:option-5/> is specified on the command line), a group will be created for the user, with the same name as her loginname. If the variable is set to <_:replaceable-6/> (or <_:option-7/> is specified on the command line), useradd will set the primary group of the new user to the value specified by the <_:option-8/> variable in <_:filename-9/>, or 1000 by default." +#: useradd.8.xml.out:279 +msgid "If not specified, the behavior of <_:command-1/> will depend on the <_:option-2/> variable in <_:filename-3/>. If this variable is set to <_:replaceable-4/> (or <_:option-5/> is specified on the command line), a group will be created for the user, with the same name as the loginname. If the variable is set to <_:replaceable-6/> (or <_:option-7/> is specified on the command line), useradd will set the primary group of the new user to the value specified by the <_:option-8/> variable in <_:filename-9/>, or 1000 by default." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: useradd.8.xml.out:257 +#: useradd.8.xml.out:298 #: usermod.8.xml.out:83 -#: usermod.8.xml.out:199 -#: usermod.8.xml.out:322 +#: usermod.8.xml.out:203 +#: usermod.8.xml.out:326 msgid "-G" msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:257 -#: usermod.8.xml.out:199 +#: useradd.8.xml.out:298 +#: usermod.8.xml.out:203 msgid "--groups" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:257 -#: usermod.8.xml.out:199 +#: useradd.8.xml.out:298 +#: usermod.8.xml.out:203 msgid "GROUP1" msgstr "" #. (itstool) path: term/emphasis -#: useradd.8.xml.out:257 -#: usermod.8.xml.out:199 +#: useradd.8.xml.out:298 +#: usermod.8.xml.out:203 msgid ",GROUP2,..." msgstr "" #. (itstool) path: term/emphasis -#: useradd.8.xml.out:257 -#: usermod.8.xml.out:199 +#: useradd.8.xml.out:298 +#: usermod.8.xml.out:203 msgid ",GROUPN" msgstr "" #. (itstool) path: varlistentry/term -#: useradd.8.xml.out:256 -#: usermod.8.xml.out:198 +#: useradd.8.xml.out:297 +#: usermod.8.xml.out:202 msgid "<_:option-1/>, <_:option-2/> <_:replaceable-3/>[<_:emphasis-4/>[<_:emphasis-5/>]]]" msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:267 +#: useradd.8.xml.out:308 msgid "GROUPS" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:260 +#: useradd.8.xml.out:301 msgid "A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the <_:option-1/> option. The default is for the user to belong only to the initial group. In addition to passing in the -G flag, you can add the option <_:option-2/> to the file <_:filename-3/> which in turn will add all users to those supplementary groups." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:280 +#: useradd.8.xml.out:321 msgid "--skel" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:280 +#: useradd.8.xml.out:321 msgid "SKEL_DIR" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:283 +#: useradd.8.xml.out:324 msgid "The skeleton directory, which contains files and directories to be copied in the user's home directory, when the home directory is created by <_:command-1/>." msgstr "" #. (itstool) path: para/option #. (itstool) path: term/option -#: useradd.8.xml.out:290 -#: useradd.8.xml.out:352 +#: useradd.8.xml.out:331 +#: useradd.8.xml.out:398 msgid "--create-home" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:288 -#: useradd.8.xml.out:592 -#: usermod.8.xml.out:524 +#: useradd.8.xml.out:329 +#: useradd.8.xml.out:639 +#: usermod.8.xml.out:542 msgid "This option is only valid if the <_:option-1/> (or <_:option-2/>) option is specified." msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:294 +#: useradd.8.xml.out:335 msgid "SKEL" msgstr "" #. (itstool) path: para/filename -#: useradd.8.xml.out:296 +#: useradd.8.xml.out:337 +#: useradd.8.xml.out:341 msgid "/etc/skel" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:292 +#: useradd.8.xml.out:333 msgid "If this option is not set, the skeleton directory is defined by the <_:option-1/> variable in <_:filename-2/> or, by default, <_:filename-3/>." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:298 +#: useradd.8.xml.out:339 +msgid "Absolute symlinks that link back to the skel directory will have the <_:filename-1/> prefix replaced with the user's home directory." +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:344 msgid "If possible, the ACLs and extended attributes are copied." msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:311 +#: useradd.8.xml.out:357 msgid "UMASK" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:308 +#: useradd.8.xml.out:354 msgid "Overrides <_:filename-1/> defaults (<_:option-2/>, <_:option-3/>, <_:option-4/>, <_:option-5/> and others)." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:314 +#: useradd.8.xml.out:360 msgid "Example: <_:option-1/> <_:replaceable-2/>=<_:replaceable-3/> can be used when creating an account to turn off password aging. Multiple <_:option-4/> options can be specified, e.g.: <_:option-5/> <_:replaceable-6/> =<_:replaceable-7/> <_:option-8/> <_:replaceable-9/>=<_:replaceable-10/>" msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:332 +#: useradd.8.xml.out:378 msgid "--no-log-init" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:334 +#: useradd.8.xml.out:380 msgid "Do not add the user to the lastlog and faillog databases." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:337 +#: useradd.8.xml.out:383 msgid "By default, the user's entries in the lastlog and faillog databases are reset to avoid reusing the entry from a previously deleted user." msgstr "" #. (itstool) path: para/option -#: useradd.8.xml.out:344 +#: useradd.8.xml.out:390 msgid "LOG_INIT" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:342 +#: useradd.8.xml.out:388 msgid "If this option is not specified, <_:command-1/> will also consult the variable <_:option-2/> in the <_:filename-3/> if set to no the user will not be added to the lastlog and faillog databases." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:355 +#: useradd.8.xml.out:401 msgid "Create the user's home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the <_:option-1/> option) will be copied to the home directory." msgstr "" -#. (itstool) path: para/option -#: useradd.8.xml.out:363 -#: useradd.8.xml.out:381 -#: useradd.8.xml.out:477 -msgid "CREATE_HOME" -msgstr "" - #. (itstool) path: listitem/para -#: useradd.8.xml.out:361 +#: useradd.8.xml.out:407 msgid "By default, if this option is not specified and <_:option-1/> is not enabled, no home directories are created." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:366 +#: useradd.8.xml.out:412 msgid "The directory where the user's home directory is created must exist and have proper SELinux context and permissions. Otherwise the user's home directory cannot be created or accessed." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:375 +#: useradd.8.xml.out:421 msgid "--no-create-home" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:378 +#: useradd.8.xml.out:424 msgid "Do not create the user's home directory, even if the system wide setting from <_:filename-1/> (<_:option-2/>) is set to <_:replaceable-3/>." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:388 +#: useradd.8.xml.out:434 msgid "--no-user-group" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:391 +#: useradd.8.xml.out:437 msgid "Do not create a group with the same name as the user, but add the user to the group specified by the <_:option-1/> option or by the <_:option-2/> variable in <_:filename-3/>." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:410 +#: useradd.8.xml.out:456 msgid "allows the creation of an account with an already existing UID." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:414 -#: usermod.8.xml.out:277 +#: useradd.8.xml.out:460 +#: usermod.8.xml.out:281 msgid "This option is only valid in combination with the <_:option-1/> option. As a user identity serves as key to map between users on one hand and permissions, file ownerships and other aspects that determine the system's behavior on the other hand, more than one login name will access the account of the given UID." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:430 +#: useradd.8.xml.out:476 msgid "defines an initial password for the account. PASSWORD is expected to be encrypted, as returned by <_:citerefentry-1/>. Within a shell script, this option allows to create efficiently batches of users." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:437 +#: useradd.8.xml.out:483 msgid "Without this option, the new account will be locked and with no password defined, i.e. a single exclamation mark in the respective field of <_:filename-1/>. This is a state where the user won't be able to access the account or to define a password himself." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:445 +#: useradd.8.xml.out:491 msgid "<_:emphasis-1/>Avoid this option on the command line because the password (or encrypted password) will be visible by users listing the processes." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:473 +#: useradd.8.xml.out:519 msgid "Note that <_:command-1/> will not create a home directory for such a user, regardless of the default setting in <_:filename-2/> (<_:option-3/>). You have to specify the <_:option-4/> options if you want a home directory for a system account to be created." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:481 +#: useradd.8.xml.out:527 msgid "Note that this option will not update <_:filename-1/> and <_:filename-2/>. You have to specify the <_:option-3/> options if you want to update the files for a system account to be created." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:522 +#: useradd.8.xml.out:569 msgid "sets the path to the user's login shell. Without this option, the system will use the <_:option-1/> variable specified in <_:filename-2/>, or, if that is as well not set, the field for the login shell in <_:filename-3/> remains empty." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:533 -#: usermod.8.xml.out:369 +#: useradd.8.xml.out:580 +#: usermod.8.xml.out:374 msgid "--uid" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:533 -#: usermod.8.xml.out:369 +#: useradd.8.xml.out:580 +#: usermod.8.xml.out:374 msgid "UID" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:536 +#: useradd.8.xml.out:583 msgid "The numerical value of the user's ID. This value must be unique, unless the <_:option-1/> option is used. The value must be non-negative. The default is to use the smallest ID value greater than or equal to <_:option-2/> and greater than every other user." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:551 +#: useradd.8.xml.out:598 msgid "--user-group" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:554 +#: useradd.8.xml.out:601 msgid "Create a group with the same name as the user, and add the user to this group." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: useradd.8.xml.out:568 -#: useradd.8.xml.out:593 -#: userdel.8.xml.out:153 -#: usermod.8.xml.out:501 -#: usermod.8.xml.out:525 +#: useradd.8.xml.out:615 +#: useradd.8.xml.out:640 +#: userdel.8.xml.out:146 +#: usermod.8.xml.out:519 +#: usermod.8.xml.out:543 msgid "-Z" msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: useradd.8.xml.out:568 -#: useradd.8.xml.out:594 -#: userdel.8.xml.out:153 -#: usermod.8.xml.out:501 -#: usermod.8.xml.out:526 +#: useradd.8.xml.out:615 +#: useradd.8.xml.out:641 +#: userdel.8.xml.out:146 +#: usermod.8.xml.out:519 +#: usermod.8.xml.out:544 msgid "--selinux-user" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:568 -#: usermod.8.xml.out:501 +#: useradd.8.xml.out:615 +#: usermod.8.xml.out:519 msgid "SEUSER" msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: useradd.8.xml.out:575 -#: useradd.8.xml.out:589 -#: usermod.8.xml.out:521 +#: useradd.8.xml.out:622 +#: useradd.8.xml.out:636 +#: usermod.8.xml.out:539 msgid "semanage" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:571 +#: useradd.8.xml.out:618 msgid "defines the SELinux user for the new account. Without this option, SELinux uses the default user. Note that the shadow system doesn't store the selinux-user, it uses <_:citerefentry-1/> for that." msgstr "" #. (itstool) path: term/option -#: useradd.8.xml.out:582 -#: usermod.8.xml.out:515 +#: useradd.8.xml.out:629 +#: usermod.8.xml.out:533 msgid "--selinux-range" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:582 -#: usermod.8.xml.out:515 +#: useradd.8.xml.out:629 +#: usermod.8.xml.out:533 msgid "SERANGE" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:585 +#: useradd.8.xml.out:632 msgid "defines the SELinux MLS range for the new account. Without this option, SELinux uses the default range. Note that the shadow system doesn't store the selinux-range, it uses <_:citerefentry-1/> for that." msgstr "" #. (itstool) path: refsect2/title -#: useradd.8.xml.out:601 +#: useradd.8.xml.out:648 msgid "Changing the default values" msgstr "" #. (itstool) path: refsect2/para -#: useradd.8.xml.out:602 +#: useradd.8.xml.out:649 msgid "When invoked with only the <_:option-1/> option, <_:command-2/> will display the current default values. When invoked with <_:option-3/> plus other options, <_:command-4/> will update the default values for the specified options. Valid default-changing options are:" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:615 +#: useradd.8.xml.out:662 msgid "sets the path prefix for a new user's home directory. The user's name will be affixed to the end of <_:replaceable-1/> to form the new user's home directory name, if the <_:option-2/> option is not used when creating a new account." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:622 -#: useradd.8.xml.out:634 -#: useradd.8.xml.out:651 -#: useradd.8.xml.out:667 +#: useradd.8.xml.out:669 #: useradd.8.xml.out:681 +#: useradd.8.xml.out:697 +#: useradd.8.xml.out:713 +#: useradd.8.xml.out:727 msgid "This option sets the <_:option-1/> variable in <_:filename-2/>." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:633 +#: useradd.8.xml.out:680 msgid "sets the date on which newly created user accounts are disabled." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:645 -msgid "defines the number of days after the password exceeded its maximum age where the user is expected to replace this password. See <_:citerefentry-1/>for more information." +#: useradd.8.xml.out:692 +msgid "specifies the number of days after a password expires during which the user can still log in. After this period, the account is locked." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:662 +#: useradd.8.xml.out:708 msgid "sets the default primary group for newly created users, accepting group names or a numerical group ID. The named group must exist, and the GID must have an existing entry." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:678 +#: useradd.8.xml.out:724 msgid "defines the default login shell for new users." msgstr "" #. (itstool) path: refsect1/title -#: useradd.8.xml.out:693 +#: useradd.8.xml.out:738 msgid "NOTES" msgstr "" #. (itstool) path: para/filename #. (itstool) path: term/filename -#: useradd.8.xml.out:695 -#: useradd.8.xml.out:799 +#: useradd.8.xml.out:740 +#: useradd.8.xml.out:844 msgid "/etc/skel/" msgstr "" #. (itstool) path: refsect1/para -#: useradd.8.xml.out:694 +#: useradd.8.xml.out:739 msgid "The system administrator is responsible for placing the default user files in the <_:filename-1/> directory (or any other skeleton directory specified in <_:filename-2/> or on the command line)." msgstr "" #. (itstool) path: refsect1/para -#: useradd.8.xml.out:703 +#: useradd.8.xml.out:748 msgid "You may not add a user to a NIS or LDAP group. This must be performed on the corresponding server." msgstr "" #. (itstool) path: refsect1/para -#: useradd.8.xml.out:708 +#: useradd.8.xml.out:753 msgid "Similarly, if the username already exists in an external user database such as NIS or LDAP, <_:command-1/> will deny the user account creation request." msgstr "" #. (itstool) path: para/command -#: useradd.8.xml.out:722 +#: useradd.8.xml.out:767 msgid "ls" msgstr "" #. (itstool) path: refsect1/para -#: useradd.8.xml.out:714 -msgid "Usernames may contain only lower and upper case letters, digits, underscores, or dashes. They can end with a dollar sign. Dashes are not allowed at the beginning of the username. Fully numeric usernames and usernames . or .. are also disallowed. It is not recommended to use usernames beginning with . character as their home directories will be hidden in the <_:command-1/> output." +#: useradd.8.xml.out:759 +msgid "Usernames may contain only lower and upper case letters, digits, underscores, dashes, or dots. They can end with a dollar sign. Dashes are not allowed at the beginning of the username. Fully numeric usernames and usernames . or .. are also disallowed. It is not recommended to use usernames beginning with . character as their home directories will be hidden in the <_:command-1/> output." msgstr "" #. (itstool) path: refsect1/para -#: useradd.8.xml.out:724 +#: useradd.8.xml.out:769 msgid "Usernames may only be up to 256 characters long." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:789 +#: useradd.8.xml.out:834 msgid "Default values for account creation." msgstr "" #. (itstool) path: term/filename -#: useradd.8.xml.out:793 +#: useradd.8.xml.out:838 msgid "/etc/shadow-maint/useradd-pre.d/*" msgstr "" #. (itstool) path: term/filename -#: useradd.8.xml.out:793 +#: useradd.8.xml.out:838 msgid "/etc/shadow-maint/useradd-post.d/*" msgstr "" #. (itstool) path: varlistentry/term -#: useradd.8.xml.out:793 -#: userdel.8.xml.out:209 +#: useradd.8.xml.out:838 +#: userdel.8.xml.out:202 msgid "<_:filename-1/>, <_:filename-2/>" msgstr "" #. (itstool) path: para/command -#: useradd.8.xml.out:795 -#: userdel.8.xml.out:211 +#: useradd.8.xml.out:840 +#: userdel.8.xml.out:204 msgid "ACTION" msgstr "" #. (itstool) path: para/command -#: useradd.8.xml.out:795 -#: userdel.8.xml.out:211 +#: useradd.8.xml.out:840 +#: userdel.8.xml.out:204 msgid "SUBJECT" msgstr "" #. (itstool) path: para/filename -#: useradd.8.xml.out:795 +#: useradd.8.xml.out:840 msgid "useradd-pre.d" msgstr "" #. (itstool) path: para/filename -#: useradd.8.xml.out:795 +#: useradd.8.xml.out:840 msgid "useradd-post.d" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:795 +#: useradd.8.xml.out:840 msgid "Run-part files to execute during user addition. The environment variable <_:command-1/> will be populated with useradd and <_:command-2/> with the <_:command-3/>. <_:filename-4/> will be executed prior to any user addition. <_:filename-5/> will execute after user addition. If a script exits non-zero then execution will terminate." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:801 +#: useradd.8.xml.out:846 msgid "Directory containing default files." msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:839 -#: userdel.8.xml.out:243 +#: useradd.8.xml.out:884 +#: userdel.8.xml.out:236 msgid "can't update password file" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:857 +#: useradd.8.xml.out:902 msgid "UID already in use (and no <_:option-1/>)" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:869 +#: useradd.8.xml.out:914 msgid "username or group name already in use" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:881 +#: useradd.8.xml.out:926 msgid "can't create home directory" msgstr "" #. (itstool) path: term/replaceable -#: useradd.8.xml.out:885 +#: useradd.8.xml.out:930 msgid "14" msgstr "" #. (itstool) path: listitem/para -#: useradd.8.xml.out:887 +#: useradd.8.xml.out:932 msgid "can't update SELinux user mapping" msgstr "" +#. (itstool) path: term/replaceable +#: useradd.8.xml.out:936 +msgid "19" +msgstr "" + +#. (itstool) path: listitem/para +#: useradd.8.xml.out:938 +msgid "invalid user or group name" +msgstr "" + #. (itstool) path: refsect1/para -#: useradd.8.xml.out:896 -#: usermod.8.xml.out:620 +#: useradd.8.xml.out:947 +#: usermod.8.xml.out:638 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>, <_:citerefentry-8/>, <_:citerefentry-9/>, <_:phrase-10/> <_:citerefentry-11/>, <_:citerefentry-12/>." msgstr "" @@ -9537,97 +9371,97 @@ msgstr "" #. (itstool) path: listitem/para #: userdel.8.xml.out:79 -msgid "This option forces the removal of the user account, even if the user is still logged in. It also forces <_:command-1/> to remove the user's home directory and mail spool, even if another user uses the same home directory or if the mail spool is not owned by the specified user. If <_:option-2/> is defined to <_:emphasis-3/> in <_:filename-4/> and if a group exists with the same name as the deleted user, then this group will be removed, even if it is still the primary group of another user." +msgid "This option forces the removal of the user account and any other requested actions, skipping any safety checks." msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:92 +#: userdel.8.xml.out:84 msgid "<_:emphasis-1/> This option is dangerous and may leave your system in an inconsistent state." msgstr "" #. (itstool) path: term/option -#: userdel.8.xml.out:106 -#: usermod.8.xml.out:317 +#: userdel.8.xml.out:98 +#: usermod.8.xml.out:321 msgid "--remove" msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:109 +#: userdel.8.xml.out:101 msgid "Files in the user's home directory will be removed along with the home directory itself and the user's mail spool. Files located in other file systems will have to be searched for and deleted manually." msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:115 +#: userdel.8.xml.out:107 msgid "The mail spool is defined by the <_:option-1/> variable in the <_:filename-2/> file." msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:156 +#: userdel.8.xml.out:149 msgid "Remove any SELinux user mapping for the user's login." msgstr "" #. (itstool) path: term/filename -#: userdel.8.xml.out:209 +#: userdel.8.xml.out:202 msgid "/etc/shadow-maint/userdel-pre.d/*" msgstr "" #. (itstool) path: term/filename -#: userdel.8.xml.out:209 +#: userdel.8.xml.out:202 msgid "/etc/shadow-maint/userdel-post.d/*" msgstr "" #. (itstool) path: para/filename -#: userdel.8.xml.out:211 +#: userdel.8.xml.out:204 msgid "userdel-pre.d" msgstr "" #. (itstool) path: para/filename -#: userdel.8.xml.out:211 +#: userdel.8.xml.out:204 msgid "userdel-post.d" msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:211 +#: userdel.8.xml.out:204 msgid "Run-part files to execute during user deletion. The environment variable <_:command-1/> will be populated with <_:command-2/> and <_:command-3/> with the username. <_:filename-4/> will be executed prior to any user deletion. <_:filename-5/> will execute after user deletion. If a script exits non-zero then execution will terminate." msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:255 +#: userdel.8.xml.out:248 msgid "specified user doesn't exist" msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:261 +#: userdel.8.xml.out:254 msgid "user currently logged in" msgstr "" #. (itstool) path: listitem/para -#: userdel.8.xml.out:273 +#: userdel.8.xml.out:266 msgid "can't remove home directory" msgstr "" #. (itstool) path: refsect1/para -#: userdel.8.xml.out:282 +#: userdel.8.xml.out:275 msgid "<_:command-1/> will not allow you to remove an account if there are running processes which belong to this account. In that case, you may have to kill those processes or lock the user's password or account and remove the account later. The <_:option-2/> option can force the deletion of this account." msgstr "" #. (itstool) path: refsect1/para -#: userdel.8.xml.out:289 +#: userdel.8.xml.out:282 msgid "You should manually check all file systems to ensure that no files remain owned by this user." msgstr "" #. (itstool) path: refsect1/para -#: userdel.8.xml.out:293 +#: userdel.8.xml.out:286 msgid "You may not remove any NIS attributes on a NIS client. This must be performed on the NIS server." msgstr "" #. (itstool) path: refsect1/para -#: userdel.8.xml.out:296 +#: userdel.8.xml.out:289 msgid "If <_:option-1/> is defined to <_:emphasis-2/> in <_:filename-3/>, <_:command-4/> will delete the group with the same name as the user. To avoid inconsistencies in the passwd and group databases, <_:command-5/> will check that this group is not used as a primary group for another user, and will just warn without deleting the group otherwise. The <_:option-6/> option can force the deletion of this group." msgstr "" #. (itstool) path: refsect1/para -#: userdel.8.xml.out:309 +#: userdel.8.xml.out:302 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/>, <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>, <_:citerefentry-8/>, <_:phrase-9/> <_:citerefentry-10/>, <_:citerefentry-11/>." msgstr "" @@ -9654,7 +9488,7 @@ msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option #: usermod.8.xml.out:112 -#: usermod.8.xml.out:260 +#: usermod.8.xml.out:264 msgid "--home" msgstr "" @@ -9670,394 +9504,413 @@ msgstr "" #. (itstool) path: listitem/para #: usermod.8.xml.out:132 -msgid "The date on which the user account will be disabled. The date is specified in the format <_:emphasis-1/>. Integers as input are interpreted as days after 1970-01-01." +msgid "Specifies the date on which the user account will be disabled. The value can be specified as a date in the YYYY-MM-DD format or as a number of days since 1970-01-01. The date is interpreted using the UTC timezone." msgstr "" #. (itstool) path: listitem/para #: usermod.8.xml.out:138 -msgid "An input of -1 or an empty string will blank the account expiration field in the shadow password file. The account will remain available with no date limit." +msgid "An input of -1 or an empty string blanks the account expiration field in the shadow password file. The account will remain available with no expiration date." msgstr "" #. (itstool) path: listitem/para #: usermod.8.xml.out:143 -#: usermod.8.xml.out:165 -msgid "This option requires a <_:filename-1/> file. A <_:filename-2/> entry will be created if there were none." +msgid "This option requires the <_:filename-1/> file. If no entry exists in the <_:filename-2/> file, the system will automatically create one." msgstr "" #. (itstool) path: listitem/para #: usermod.8.xml.out:155 -msgid "defines the number of days after the password exceeded its maximum age during which the user may still login by immediately replacing the password. This grace period before the account becomes inactive is stored in the shadow password file. An input of 0 will disable an expired password with no delay. An input of -1 will blank the respective field in the shadow password file. See <_:citerefentry-1/> for more information." +msgid "Defines the number of days after a password exceeds its maximum age during which the user can still log in by immediately changing their password. If the user does not change their password within this period of time, their account becomes inactive. This value is stored in the shadow password file." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:177 -msgid "The name or numerical ID of the user's new primary group. The group must exist." +#: usermod.8.xml.out:169 +msgid "This option requires the <_:filename-1/> file. If no entry exist in the <_:filename-2/> file, the system will automatically create one." msgstr "" #. (itstool) path: listitem/para #: usermod.8.xml.out:181 -msgid "Any file from the user's home directory owned by the previous primary group of the user will be owned by this new group." +msgid "The name or numerical ID of the user's new primary group. The group must exist." msgstr "" #. (itstool) path: listitem/para #: usermod.8.xml.out:185 +msgid "Any file from the user's home directory owned by the previous primary group of the user will be owned by this new group." +msgstr "" + +#. (itstool) path: listitem/para +#: usermod.8.xml.out:189 msgid "The group ownership of files outside of the user's home directory must be fixed manually." msgstr "" #. (itstool) path: para/filename -#: usermod.8.xml.out:193 -#: usermod.8.xml.out:393 +#: usermod.8.xml.out:197 +#: usermod.8.xml.out:398 msgid "/" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:189 +#: usermod.8.xml.out:193 msgid "The change of the group ownership of files inside of the user's home directory is also not done if the home dir owner uid is different from the current or new user id. This is a safety measure for special home directories such as <_:filename-1/>." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:202 +#: usermod.8.xml.out:206 msgid "A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups must exist." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:207 +#: usermod.8.xml.out:211 msgid "If the user is currently a member of a group which is not listed, the user will be removed from the group. This behaviour can be changed via the <_:option-1/> option, which appends the user to the current supplementary group list." msgstr "" #. (itstool) path: term/replaceable #. (itstool) path: para/replaceable -#: usermod.8.xml.out:217 -#: usermod.8.xml.out:223 +#: usermod.8.xml.out:221 +#: usermod.8.xml.out:227 msgid "NEW_LOGIN" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:220 +#: usermod.8.xml.out:224 msgid "The name of the user will be changed from <_:replaceable-1/> to <_:replaceable-2/>. Nothing else is changed. In particular, the user's home directory or mail spool should probably be renamed manually to reflect the new login name." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: usermod.8.xml.out:231 -#: usermod.8.xml.out:411 +#: usermod.8.xml.out:235 +#: usermod.8.xml.out:416 msgid "-L" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:234 +#: usermod.8.xml.out:238 msgid "Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with <_:option-1/> or <_:option-2/>." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:240 +#: usermod.8.xml.out:244 msgid "Note: if you wish to lock the account (not only access with a password), you should also set the <_:replaceable-1/> to <_:replaceable-2/>." msgstr "" #. (itstool) path: term/option -#: usermod.8.xml.out:250 +#: usermod.8.xml.out:254 msgid "--move-home" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:253 +#: usermod.8.xml.out:257 msgid "moves the content of the user's home directory to the new location. If the current home directory does not exist the new home directory will not be created." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:258 +#: usermod.8.xml.out:262 msgid "This option is only valid in combination with the <_:option-1/> (or <_:option-2/>) option." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:262 +#: usermod.8.xml.out:266 msgid "<_:command-1/> will try to adapt the ownership of the files and to copy the modes, ACL and extended attributes, but manual changes might be needed afterwards." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:274 +#: usermod.8.xml.out:278 msgid "allows to change the user ID to a non-unique value." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:293 +#: usermod.8.xml.out:297 msgid "defines a new password for the user. PASSWORD is expected to be encrypted, as returned by <_:citerefentry-1/>." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:298 +#: usermod.8.xml.out:302 msgid "<_:emphasis-1/> Avoid this option on the command line because the password (or encrypted password) will be visible by users listing the processes." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:303 +#: usermod.8.xml.out:307 msgid "The password will be written in the local <_:filename-1/> or <_:filename-2/> file. This might differ from the password database configured in your PAM configuration." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:320 +#: usermod.8.xml.out:324 msgid "Remove the user from named supplementary group(s). Use only with the <_:option-1/> option." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:344 +#: usermod.8.xml.out:349 msgid "Apply changes within the directory tree starting with <_:replaceable-1/> and use as well the configuration files located there. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. PAM authentication is using the host files. No SELINUX support." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:360 -msgid "changes the user's login shell. An empty string for SHELL blanks the field in <_:filename-1/> and logs the user into the system's default shell." +#: usermod.8.xml.out:365 +msgid "changes the user's login shell. An empty string for SHELL empties the field in <_:filename-1/> and logs the user into the system's default shell." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:372 +#: usermod.8.xml.out:377 msgid "The new value of the user's ID." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:375 +#: usermod.8.xml.out:380 msgid "This value must be unique, unless the <_:option-1/> option is used. The value must be non-negative." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:380 +#: usermod.8.xml.out:385 msgid "The user's mailbox, and any files which the user owns and which are located in the user's home directory will have the file user ID changed automatically." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:385 +#: usermod.8.xml.out:390 msgid "The ownership of files outside of the user's home directory must be fixed manually." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:389 +#: usermod.8.xml.out:394 msgid "The change of the user ownership of files inside of the user's home directory is also not done if the home dir owner uid is different from the current or new user id. This is a safety measure for special home directories such as <_:filename-1/>." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:408 +#: usermod.8.xml.out:413 msgid "Unlock a user's password. This removes the '!' in front of the encrypted password. You can't use this option with <_:option-1/> or <_:option-2/>." msgstr "" #. (itstool) path: para/replaceable -#: usermod.8.xml.out:417 +#: usermod.8.xml.out:422 msgid "99999" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:413 +#: usermod.8.xml.out:418 msgid "Note: if you wish to unlock the account (not only access with a password), you should also set the <_:replaceable-1/> (for example to <_:replaceable-2/>, or to the <_:option-3/> value from <_:filename-4/>)." msgstr "" #. (itstool) path: term/option -#: usermod.8.xml.out:425 +#: usermod.8.xml.out:430 msgid "-v" msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: usermod.8.xml.out:425 -#: usermod.8.xml.out:451 +#: usermod.8.xml.out:430 +#: usermod.8.xml.out:456 msgid "--add-subuids" msgstr "" #. (itstool) path: term/replaceable -#: usermod.8.xml.out:425 -#: usermod.8.xml.out:443 -#: usermod.8.xml.out:463 -#: usermod.8.xml.out:481 +#: usermod.8.xml.out:430 +#: usermod.8.xml.out:448 +#: usermod.8.xml.out:468 +#: usermod.8.xml.out:486 msgid "FIRST" msgstr "" #. (itstool) path: term/replaceable -#: usermod.8.xml.out:425 -#: usermod.8.xml.out:443 -#: usermod.8.xml.out:463 -#: usermod.8.xml.out:481 +#: usermod.8.xml.out:430 +#: usermod.8.xml.out:448 +#: usermod.8.xml.out:468 +#: usermod.8.xml.out:486 msgid "LAST" msgstr "" #. (itstool) path: varlistentry/term -#: usermod.8.xml.out:424 -#: usermod.8.xml.out:442 -#: usermod.8.xml.out:462 -#: usermod.8.xml.out:480 +#: usermod.8.xml.out:429 +#: usermod.8.xml.out:447 +#: usermod.8.xml.out:467 +#: usermod.8.xml.out:485 msgid "<_:option-1/>, <_:option-2/> <_:replaceable-3/>-<_:replaceable-4/>" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:428 +#: usermod.8.xml.out:433 msgid "Add a range of subordinate uids to the user's account." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:431 -#: usermod.8.xml.out:469 +#: usermod.8.xml.out:436 +#: usermod.8.xml.out:474 msgid "This option may be specified multiple times to add multiple ranges to a user's account." msgstr "" #. (itstool) path: para/option -#: usermod.8.xml.out:436 -#: usermod.8.xml.out:456 +#: usermod.8.xml.out:441 +#: usermod.8.xml.out:461 msgid "SUB_UID_MIN" msgstr "" #. (itstool) path: para/option -#: usermod.8.xml.out:436 -#: usermod.8.xml.out:456 +#: usermod.8.xml.out:441 +#: usermod.8.xml.out:461 msgid "SUB_UID_MAX" msgstr "" #. (itstool) path: para/option -#: usermod.8.xml.out:437 -#: usermod.8.xml.out:457 +#: usermod.8.xml.out:442 +#: usermod.8.xml.out:462 msgid "SUB_UID_COUNT" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:434 -#: usermod.8.xml.out:454 -#: usermod.8.xml.out:472 -#: usermod.8.xml.out:492 +#: usermod.8.xml.out:439 +#: usermod.8.xml.out:459 +#: usermod.8.xml.out:477 +#: usermod.8.xml.out:497 msgid "No checks will be performed with regard to <_:option-1/>, <_:option-2/>, or <_:option-3/> from /etc/login.defs." msgstr "" #. (itstool) path: term/option -#: usermod.8.xml.out:443 +#: usermod.8.xml.out:448 msgid "-V" msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: usermod.8.xml.out:443 -#: usermod.8.xml.out:451 +#: usermod.8.xml.out:448 +#: usermod.8.xml.out:456 msgid "--del-subuids" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:446 +#: usermod.8.xml.out:451 msgid "Remove a range of subordinate uids from the user's account." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:449 +#: usermod.8.xml.out:454 msgid "This option may be specified multiple times to remove multiple ranges to a user's account. When both <_:option-1/> and <_:option-2/> are specified, the removal of all subordinate uid ranges happens before any subordinate uid range is added." msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: usermod.8.xml.out:463 -#: usermod.8.xml.out:489 +#: usermod.8.xml.out:468 +#: usermod.8.xml.out:494 msgid "--add-subgids" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:466 +#: usermod.8.xml.out:471 msgid "Add a range of subordinate gids to the user's account." msgstr "" #. (itstool) path: para/option -#: usermod.8.xml.out:474 -#: usermod.8.xml.out:494 +#: usermod.8.xml.out:479 +#: usermod.8.xml.out:499 msgid "SUB_GID_MIN" msgstr "" #. (itstool) path: para/option -#: usermod.8.xml.out:474 -#: usermod.8.xml.out:494 +#: usermod.8.xml.out:479 +#: usermod.8.xml.out:499 msgid "SUB_GID_MAX" msgstr "" #. (itstool) path: para/option -#: usermod.8.xml.out:475 -#: usermod.8.xml.out:495 +#: usermod.8.xml.out:480 +#: usermod.8.xml.out:500 msgid "SUB_GID_COUNT" msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: usermod.8.xml.out:481 -#: usermod.8.xml.out:489 +#: usermod.8.xml.out:486 +#: usermod.8.xml.out:494 msgid "--del-subgids" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:484 +#: usermod.8.xml.out:489 msgid "Remove a range of subordinate gids from the user's account." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:487 +#: usermod.8.xml.out:492 msgid "This option may be specified multiple times to remove multiple ranges to a user's account. When both <_:option-1/> and <_:option-2/> are specified, the removal of all subordinate gid ranges happens before any subordinate gid range is added." msgstr "" +#. (itstool) path: term/option +#: usermod.8.xml.out:506 +msgid "--add-subids" +msgstr "" + +#. (itstool) path: listitem/para +#: usermod.8.xml.out:509 +msgid "Add subordinate uids and gids to the user's account." +msgstr "" + +#. (itstool) path: listitem/para +#: usermod.8.xml.out:512 +msgid "An appropriate uid and gid range is automatically selected from /etc/login.defs defaults." +msgstr "" + #. (itstool) path: listitem/para -#: usermod.8.xml.out:504 +#: usermod.8.xml.out:522 msgid "defines the SELinux user to be mapped with <_:replaceable-1/>. An empty string (\"\") will remove the respective entry (if any). Note that the shadow system doesn't store the selinux-user, it uses semanage(8) for that." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:518 +#: usermod.8.xml.out:536 msgid "defines the SELinux MLS range for the new account. Note that the shadow system doesn't store the selinux-range, it uses <_:citerefentry-1/> for that." msgstr "" #. (itstool) path: refsect1/para -#: usermod.8.xml.out:535 +#: usermod.8.xml.out:553 msgid "You must make certain that the named user is not executing any processes when this command is being executed if the user's numerical user ID, the user's name, or the user's home directory is being changed. <_:command-1/> checks this on Linux. On other operating systems it only uses utmp to check if the user is logged in." msgstr "" #. (itstool) path: para/command -#: usermod.8.xml.out:544 +#: usermod.8.xml.out:562 msgid "crontab" msgstr "" #. (itstool) path: para/command -#: usermod.8.xml.out:545 +#: usermod.8.xml.out:563 msgid "at" msgstr "" #. (itstool) path: refsect1/para -#: usermod.8.xml.out:543 +#: usermod.8.xml.out:561 msgid "You must change the owner of any <_:command-1/> files or <_:command-2/> jobs manually." msgstr "" #. (itstool) path: refsect1/para -#: usermod.8.xml.out:547 +#: usermod.8.xml.out:565 msgid "You must make any changes involving NIS on the NIS server." msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:576 +#: usermod.8.xml.out:594 msgid "Group account information" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:582 +#: usermod.8.xml.out:600 msgid "Secure group account information" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:588 +#: usermod.8.xml.out:606 msgid "Shadow password suite configuration" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:594 +#: usermod.8.xml.out:612 msgid "User account information" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:600 +#: usermod.8.xml.out:618 msgid "Secure user account information" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:606 +#: usermod.8.xml.out:624 msgid "Per user subordinate group IDs" msgstr "" #. (itstool) path: listitem/para -#: usermod.8.xml.out:612 +#: usermod.8.xml.out:630 msgid "Per user subordinate user IDs" msgstr "" @@ -10088,7 +9941,7 @@ msgstr "" #. (itstool) path: citerefentry/refentrytitle #: vipw.8.xml.out:77 -#: vipw.8.xml.out:205 +#: vipw.8.xml.out:206 msgid "vi" msgstr "" @@ -10102,6 +9955,11 @@ msgstr "" msgid "The options which apply to the <_:command-1/> and <_:command-2/> commands are:" msgstr "" +#. (itstool) path: term/option +#: vipw.8.xml.out:90 +msgid "--group" +msgstr "" + #. (itstool) path: listitem/para #: vipw.8.xml.out:92 msgid "Edit group database." @@ -10118,54 +9976,54 @@ msgid "Edit passwd database." msgstr "" #. (itstool) path: term/option -#: vipw.8.xml.out:127 +#: vipw.8.xml.out:128 msgid "--shadow" msgstr "" #. (itstool) path: listitem/para -#: vipw.8.xml.out:129 +#: vipw.8.xml.out:130 msgid "Edit shadow or gshadow database." msgstr "" #. (itstool) path: listitem/para -#: vipw.8.xml.out:135 +#: vipw.8.xml.out:136 msgid "Indicates which user's tcb shadow file to edit." msgstr "" #. (itstool) path: refsect1/title -#: vipw.8.xml.out:154 +#: vipw.8.xml.out:155 msgid "ENVIRONMENT" msgstr "" #. (itstool) path: term/option #. (itstool) path: para/option -#: vipw.8.xml.out:157 -#: vipw.8.xml.out:165 +#: vipw.8.xml.out:158 +#: vipw.8.xml.out:166 msgid "VISUAL" msgstr "" #. (itstool) path: listitem/para -#: vipw.8.xml.out:159 +#: vipw.8.xml.out:160 msgid "Editor to be used." msgstr "" #. (itstool) path: term/option -#: vipw.8.xml.out:163 +#: vipw.8.xml.out:164 msgid "EDITOR" msgstr "" #. (itstool) path: listitem/para -#: vipw.8.xml.out:165 +#: vipw.8.xml.out:166 msgid "Editor to be used if <_:option-1/> is not set." msgstr "" #. (itstool) path: citerefentry/refentrytitle -#: vipw.8.xml.out:220 +#: vipw.8.xml.out:221 msgid "tcb" msgstr "" #. (itstool) path: refsect1/para -#: vipw.8.xml.out:203 +#: vipw.8.xml.out:204 msgid "<_:citerefentry-1/>, <_:citerefentry-2/>, <_:citerefentry-3/> <_:citerefentry-4/>, <_:citerefentry-5/>, <_:citerefentry-6/>, <_:citerefentry-7/>." msgstr ""