Lines Matching +full:20 +full:user

5 # Test add user
15 # Test add user with option -N
24 # Test add user with comments
29 atf_check -s exit:0 ${PW} useradd test -c 'Test User,work!,123,user@example.com'
30 atf_check -s exit:0 -o match:'^test:.*:Test User,work!,123,user@example.com:' \
31 grep '^test:.*:Test User,work!,123,user@example.com:' $HOME/master.passwd
34 # Test add user with comments and option -N
39 atf_check -s exit:0 -o match:"^test:.*:Test User,work,123,456:" \
40 ${PW} useradd test -c "Test User,work,123,456" -N
44 # Test add user with invalid comments
50 ${PW} useradd test -c "Test User,work,123:456,456"
52 grep "^test:.*:Test User,work,123:456,456:" $HOME/master.passwd
55 # Test add user with invalid comments and option -N
61 ${PW} useradd test -c "Test User,work,123:456,456" -N
65 # Test add user with alternate homedir
71 atf_check -s exit:0 -o match:"^test:\*:.*::0:0:User &:/foo/bar:.*" \
75 # Test add user with account expiration as an epoch date
86 # Test add user with account expiration as a DD-MM-YYYY date
94 atf_check -s exit:0 -o match:"^test:\*:.*::0:${EPOCH}:User &:.*" \
98 # Test add user with account expiration as a DD-MM-YYYY date
106 atf_check -s exit:0 -o match:"^test:\*:.*::0:${EPOCH}:User &:.*" \
110 # Test add user with account expiration as a relative date
123 # Test add user with password expiration as an epoch date
134 # Test add user with password expiration as a DD-MM-YYYY date
142 atf_check -s exit:0 -o match:"^test:\*:.*::${EPOCH}:0:User &:.*" \
146 # Test add user with password expiration as a DD-MMM-YYYY date
154 atf_check -s exit:0 -o match:"^test:\*:.*::${EPOCH}:0:User &:.*" \
158 # Test add user with password expiration as a relative date
182 ${PW} useradd 'test user'
183 atf_check -s exit:1 -o empty grep "^test user:.*" $HOME/master.passwd
186 ${PW} useradd -n 'test user'
187 atf_check -s exit:1 -o empty grep "^test user:.*" $HOME/master.passwd
194 user_name="test user"
195 # pw useradd should fail because of the space in the user
204 # Make sure the user isn't added even if the group exists
220 ${PW} useradd foo -e 20-03-2037
221 atf_check -o inline:"foo:*:1001:1001::0:2121120000:User &:/home/foo:/bin/sh\n" \
225 ${PW} useradd foo -e 20-03-37
226 atf_check -o inline:"foo:*:1001:1001::0:2121120000:User &:/home/foo:/bin/sh\n" \
230 ${PW} useradd foo -e 20-Mar-2037
231 atf_check -o inline:"foo:*:1001:1001::0:2121120000:User &:/home/foo:/bin/sh\n" \
235 ${PW} useradd foo -e 20-Foo-2037
237 ${PW} useradd foo -e 20-13-2037
238 atf_check -s exit:0 ${PW} useradd foo -e "12:00 20-03-2037"
241 ${PW} useradd foo -e "12 20-03-2037"
242 atf_check -s exit:0 ${PW} useradd foo -e "20-03-2037 12:00"
255 atf_check -s exit:1 -e match:"Invalid user entry" ${PW} useradd foo2
313 test -d ${HOME}/a/b/c/foo || atf_fail "user directory not created"
473 -o inline:"foo:*:1001:442::0:0:User &:/home/foo:/bin/sh\n" \