scripts-bash/ecoleA/change_username.sh

13 lines
183 B
Bash
Raw Normal View History

2022-11-06 21:27:50 +01:00
#!/bin/bash
# Test du user ROOT
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
2022-11-06 21:27:50 +01:00
usermod -l aoste aosteadmin
usermod -d /home/aoste -m aoste
chfn -f aoste aoste
exit