Commit b87acdd0 authored by Klismann Smoger Mottin's avatar Klismann Smoger Mottin Committed by Lucas Manika Koeb

le-users: Create group for users with permission to change network options

Create group "leNetwork" and add user professor to it.
Signed-off-by: Klismann Smoger Mottin's avatarKlismann Smoger Mottin <ksm09@inf.ufpr.br>
Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent 7664659f
#!/bin/bash
# gerar.sh
# Copyright (c) 2006 by Bruno Ribas <ribas@ufpr.br>
DIRTMP=$(mktemp -d)
VERSAO=$(cat VERSAO)
#arrumar versao
#$1 tipo de incremento
MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
case $1 in
Minor)
((MINOR++))
REVISION=0
;;
Major)
((MAJOR++))
MINOR=0
REVISION=0
;;
help)
echo "Uso: $0 Major|Minor|Revision"
echo ' Major - Altera versao Major'
echo ' Minor - Altera versao Minor'
exit
;;
*)
((REVISION++))
;;
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -r pacote $DIRTMP
#Copia a documentacao compilada para dentro do pacote.
#cp doc/*.txt $DIRTMP/pacote/usr/share/doc/prd-*
cd $DIRTMP
find . -name ".svn" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
cd -
cp $DIRTMP/*deb .
rm -rf $DIRTMP
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
......@@ -42,6 +42,11 @@ usermod -aG admin $ADMIN_SYSTEM_NAME || true
# login screen
usermod -u 750 $ADMIN_SYSTEM_NAME
# Create group leNetwork for users with permission to change network modifications
groupadd leNetwork
# Add user professor to said group
usermod -aG leNetwork $PROFESSOR_SYSTEM_NAME
# Expire admin default password so the admin is asked to change it at
# the first login
# passwd -e $ADMIN_SYSTEM_NAME || true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment