Commit 7a44e8da authored by Lucas Manika Koeb's avatar Lucas Manika Koeb

le-users: Initial commit

Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent 65b89193
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
Bruno Cesar Ribas
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Eduardo Todt
Erik Alexandre Pucci
Juliana Bueno
Klismann Smoger Mottin
Laura Sanchez Garcia
Luis Carlos Erpen de Bona
Marcos Castilho
Thiago Henrique Dos Santos Picharski
le5-users
===========
This package creates and configures the default users for the Linux
Educacional 5.0.
Building the deb package
========================
To build the le5-greeter package simply use the "gerar.sh" script that is
located in this package main directory.
Package: le-users
Priority: important
Section: main
Version:
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Description: Linux Educacional 5.0 default user creation
Architecture: i386
#!/bin/bash
#
# Copyright (C) 2004-2012 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le5-users
#
# le5-users is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Add new users "professor" and "admin"
PROFESSOR_SYSTEM_NAME="professor"
PROFESSOR_USER_NAME="Professor"
ADMIN_SYSTEM_NAME="admin"
ADMIN_USER_NAME="Administrador"
adduser --shell /bin/bash --gecos $PROFESSOR_USER_NAME --disabled-password $PROFESSOR_SYSTEM_NAME || true
adduser --shell /bin/bash --gecos $ADMIN_USER_NAME --disabled-password $ADMIN_SYSTEM_NAME || true
# Set professor initial password
echo "$PROFESSOR_SYSTEM_NAME:$PROFESSOR_SYSTEM_NAME" | chpasswd
# Set admin initial password
echo "$ADMIN_SYSTEM_NAME:$ADMIN_SYSTEM_NAME" | chpasswd
# Add admin to sudo group
usermod -G sudo $ADMIN_SYSTEM_NAME || true
# Change admin's UID to 750 so, as a system user, it is not listed on the
# login screen
usermod -u 750 $ADMIN_SYSTEM_NAME
# Expire admin default password so the admin is asked to change it at
# the first login
# passwd -e $ADMIN_SYSTEM_NAME || true
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
Bruno Cesar Ribas
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Eduardo Todt
Erik Alexandre Pucci
Juliana Bueno
Klismann Smoger Mottin
Laura Sanchez Garcia
Lucas Manika Koeb
Lucas Falcão Radaelli
Luis Carlos Erpen de Bona
Marcos Castilho
Michael Liang
Thiago Henrique Dos Santos Picharski
This diff is collapsed.
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