Blame tests/p_shadow-utils/12-usermod_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 - Modify user shadowuser"
|
|
 |
40b4c8 |
|
|
Athmane Madjoudj |
536354 |
usermod -c "Comment plugh" shadowuser
|
|
Athmane Madjoudj |
536354 |
t_CheckExitStatus $?
|
|
Athmane Madjoudj |
536354 |
echo "Check /etc/passwd was modified"
|
|
Athmane Madjoudj |
536354 |
grep "^shadowuser" /etc/passwd | grep -q "Comment plugh"
|
|
Athmane Madjoudj |
536354 |
t_CheckExitStatus $?
|
|
Athmane Madjoudj |
536354 |
|