Mise à jour de 'ecoleA/change_username.sh'
test du user ROOT
This commit is contained in:
parent
1c2cd7786c
commit
2137a9ce69
|
@ -1,4 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Test du user ROOT
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
usermod -l aoste aosteadmin
|
||||
usermod -d /home/aoste -m aoste
|
||||
chfn -f aoste aoste
|
||||
|
|
Loading…
Reference in New Issue