Debian Codegraph @

debian/tests/login

raw
1 #!/usr/bin/bash
2
3 set -e
4
5 nologin | grep "This account is currently not available"
6
7 # Password: hellothere
8 useradd --password '$y$j9T$ZLi71y6HSLZJfI4icrkue1$JJlJEL9y7BVuWYthlQ7tNiFMCXHKNlWZFOiz/PbRo/9' \
9 --create-home \
10 --shell /usr/bin/bash \
11 obiwan
12
13 groupadd -f jedi
14
15 # Let obiwan not be a jedi when logging in, but get promoted after enough time to log in
16 (sleep 4 && usermod -aG jedi obiwan) &
17
18 expect ./debian/tests/login.exp