Lines Matching refs:user
23 user="toyTestUser"
24 testing "(text)" "useradd $user $arg ||
25 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
27 userdel -r $user $arg
29 user="toy1Test2User3"
30 testing "(alphanumeric)" "useradd $user $arg ||
31 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
33 userdel -r $user $arg
35 user="987654321"
36 testing "(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 "(with ./-/_)" "useradd $user $arg ||
43 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
45 userdel -r $user $arg
48 user="abcdefghijklmnopqrstuvwxyz123456789abcdefghijklmnopqrstuvwxyz123456789"
49 testing "(long string)" "useradd $user $arg ||
50 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
52 userdel -r $user $arg
54 user="toyTestUser"
55 testing "dir" "useradd -h $PWD/dir $user $arg ||
56 grep '^$user:.*dir' /etc/passwd $arg && [ -d $PWD/dir ] &&
58 userdel -r $user $arg
62 testing "gecos" "useradd -g '$gecos' $user $arg ||
63 grep '^$user:.*$gecos' /etc/passwd $arg && [ -d /home/$user ] &&
65 userdel -r $user $arg
68 testing "shell" "useradd -s $shl $user $arg ||
69 grep '^$user:.*$shl$' /etc/passwd $arg && [ -d /home/$user ] &&
71 userdel -r $user $arg
75 testing "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 "(system user)" "useradd -S $user $arg ||
81 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ ! -e /home/$user ] &&
83 userdel -r $user $arg
85 testing "-D" "useradd -D $user $arg ||
86 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ -d /home/$user ] &&
88 userdel -r $user $arg
90 testing "-H" "useradd -H $user $arg ||
91 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ ! -e /home/$user ] &&
93 userdel -r $user $arg
95 testing "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 "-u" "useradd -u 49999 $user $arg ||
101 grep '^$user:x:49999:.*' /etc/passwd $arg && [ -d /home/$user ] &&
103 userdel -r $user $arg