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