Lines Matching full:user
20 # Default password for adding user is: 'password'
23 user="toyTestUser"
24 testing "adduser user_name (text)" "useradd $user $arg ||
25 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
27 userdel -r $user $arg
29 user="toy1Test2User3"
30 testing "adduser user_name (alphanumeric)" "useradd $user $arg ||
31 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
33 userdel -r $user $arg
35 user="987654321"
36 testing "adduser user_name (numeric)" "useradd $user $arg ||
37 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
39 userdel -r $user $arg
41 user="toy.1Test-2User_3"
42 testing "adduser user_name (with ./-/_)" "useradd $user $arg ||
43 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
45 userdel -r $user $arg
48 user="abcdefghijklmnopqrstuvwxyz123456789abcdefghijklmnopqrstuvwxyz123456789"
49 testing "adduser user_name (long string)" "useradd $user $arg ||
50 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
52 userdel -r $user $arg
54 user="toyTestUser"
55 testing "adduser user_name with dir" "useradd -h $PWD/dir $user $arg ||
56 grep '^$user:.*dir' /etc/passwd $arg && [ -d $PWD/dir ] &&
58 userdel -r $user $arg
62 testing "adduser user_name with gecos" "useradd -g '$gecos' $user $arg ||
63 grep '^$user:.*$gecos' /etc/passwd $arg && [ -d /home/$user ] &&
65 userdel -r $user $arg
68 testing "adduser user_name with shell" "useradd -s $shl $user $arg ||
69 grep '^$user:.*$shl$' /etc/passwd $arg && [ -d /home/$user ] &&
71 userdel -r $user $arg
75 testing "adduser user_name with group" "useradd -G $g_name $user $arg ||
76 grep '^$user:.*:.*:$g_id:.*' /etc/passwd $arg && [ -d /home/$user ] &&
78 userdel -r $user $arg
80 testing "adduser user_name (system user)" "useradd -S $user $arg ||
81 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ ! -e /home/$user ] &&
83 userdel -r $user $arg
85 testing "adduser user_name with -D" "useradd -D $user $arg ||
86 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ -d /home/$user ] &&
88 userdel -r $user $arg
90 testing "adduser user_name with -H" "useradd -H $user $arg ||
91 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ ! -e /home/$user ] &&
93 userdel -r $user $arg
95 testing "adduser user_name with dir and -H" "useradd -H -h $PWD/dir $user $arg ||
96 grep '^$user:.*dir' /etc/passwd $arg && [ ! -e $PWD/dir ] &&
98 userdel -r $user $arg
100 testing "adduser user_name with user_id" "useradd -u 49999 $user $arg ||
101 grep '^$user:x:49999:.*' /etc/passwd $arg && [ -d /home/$user ] &&
103 userdel -r $user $arg