Skip to content
Snippets Groups Projects
Verified Commit 09f4a059 authored by David Beniamine's avatar David Beniamine
Browse files

Reset.sh

parent 0d7cd528
No related branches found
No related tags found
No related merge requests found
reset.sh 0 → 100644
#!/bin/bash
read -p "This script should be run on Primtux to synchronise ldap do you want to continue [y/N]" ans
if [ "$ans" != "y" ]
then
exit 1
fi
echo "Re creating users"
for user in 01-mini 02-super 03-maxi direction prof
do
sudo adduser --force-badname $user
done
echo "Disabling LDAP"
sudo sed -ie 's/ ldap//' /etc/nsswitch.conf
echo "Removing Proxy"
for f in /home/*/.profile
do
sudo sed -ie 's/export .*_PROXY=.*slis:3128.*$//' $f
done
echo "All done, exit and re-open your session to see the changes"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment