Skip to content

Commit

Permalink
- Fix #77.
Browse files Browse the repository at this point in the history
- Fix #86.
  • Loading branch information
HappyBasher committed Mar 7, 2020
1 parent 0f531fc commit 5cf5735
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 160 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
@@ -1,3 +1,10 @@
linuxmuster-base7 (7.0.51-0ubuntu0) lmn7; urgency=low

* Fix #86: added sudo users student & teacher.
* Fix #77: Removed remnant files in /etc/linuxmuster.

-- Thomas Schmitt <thomas@linuxmuster.net> Sat, 07 Mar 2020 21:08:58 +0100

linuxmuster-base7 (7.0.50-0ubuntu0) lmn7; urgency=low

* postinst: improved recognition of already configured opnsense firewall.
Expand Down
8 changes: 7 additions & 1 deletion debian/postinst
Expand Up @@ -2,7 +2,7 @@
#
# postinst script for linuxmuster-base
# thomas@linuxmuster.net
# 20200306
# 20200307
# GPL v3
#

Expand Down Expand Up @@ -110,6 +110,12 @@ case "$1" in
systemctl start ntp.service
fi

# add sudo users for webui
id teacher &> /dev/null || useradd -u 901 -g nogroup -G sudo -c 'teacher sudo user' -s /bin/sh -M teacher
id student &> /dev/null || useradd -u 902 -g nogroup -G sudo -c 'student sudo user' -s /bin/sh -M student
chmod 400 /etc/sudoers.d/teacher
chmod 400 /etc/sudoers.d/student

# fix #83, patch opnsense's web-proxy sso configuration (only if system is configured)
if [ -e "$FWAPIKEYS" ]; then
if ssh -q -oStrictHostKeyChecking=accept-new "$firewallip" exit; then
Expand Down
9 changes: 0 additions & 9 deletions etc/linuxmuster/allowed_ports

This file was deleted.

10 changes: 0 additions & 10 deletions etc/linuxmuster/base_ports

This file was deleted.

13 changes: 0 additions & 13 deletions etc/linuxmuster/blocked_ports

This file was deleted.

4 changes: 0 additions & 4 deletions etc/linuxmuster/classrooms

This file was deleted.

15 changes: 0 additions & 15 deletions etc/linuxmuster/clientcert.conf

This file was deleted.

39 changes: 0 additions & 39 deletions etc/linuxmuster/cyrus-mbox.conf

This file was deleted.

10 changes: 0 additions & 10 deletions etc/linuxmuster/printers

This file was deleted.

29 changes: 0 additions & 29 deletions etc/linuxmuster/room_defaults

This file was deleted.

15 changes: 0 additions & 15 deletions etc/linuxmuster/samba/root-postexec.d/README

This file was deleted.

15 changes: 0 additions & 15 deletions etc/linuxmuster/samba/root-preexec.d/README

This file was deleted.

1 change: 1 addition & 0 deletions etc/sudoers.d/student
@@ -0,0 +1 @@
student ALL=(ALL) NOPASSWD: /usr/sbin/sophomorix-passwd,/usr/sbin/sophomorix-query
1 change: 1 addition & 0 deletions etc/sudoers.d/teacher
@@ -0,0 +1 @@
teacher ALL=(ALL) NOPASSWD: /usr/sbin/sophomorix-passwd,/usr/sbin/sophomorix-query

0 comments on commit 5cf5735

Please sign in to comment.