Blame tests/p_shadow-utils/11-useradd_tests
|
Athmane Madjoudj |
536354 |
#!/bin/bash
|
|
Athmane Madjoudj |
536354 |
# Author: Iain Douglas <centos@1n6.org.uk>
|
|
Athmane Madjoudj |
536354 |
|
|
Christoph Galuschka |
06c925 |
t_Log "Running $0"
|
|
Athmane Madjoudj |
536354 |
|
|
|
40b4c8 |
grep -q "^shadowuser" /etc/passwd && userdel -r shadowuser
|
|
|
40b4c8 |
|
|
Athmane Madjoudj |
536354 |
# Basic useradd tests
|
|
Athmane Madjoudj |
536354 |
echo "Add user shadowuser"
|
|
Athmane Madjoudj |
536354 |
useradd shadowuser
|
|
Athmane Madjoudj |
536354 |
t_CheckExitStatus $?
|
|
Athmane Madjoudj |
536354 |
echo "Check user was created"
|
|
Athmane Madjoudj |
536354 |
grep -q "^shadowuser" /etc/passwd
|
|
|
40b4c8 |
t_CheckExitStatus $?
|