cryptonas-livecd/config/chroot_local-includes/etc/init.d/cnas-groups

33 lines
1.1 KiB
Text
Raw Normal View History

#!/bin/sh
# /etc/init.d/cnas-groups
# Add user cryptobox (cryptonas) to required groups for Live CD
# $Id: $
# Copyright 2005--2008 sense.lab <senselab@systemausfall.org>
#
# This file is part of CryptoNAS.
#
# CryptoNAS 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.
#
# CryptoNAS 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 CryptoNAS. If not, see <http://www.gnu.org/licenses/>.
#
# 2008-06-21 James Crofts adapted existing CryptoNAS code
# for Debian Live
#
ADD_GROUPS="floppy cdrom tape video plugdev"
# add the cryptobox user to some more groups
echo "Adding CryptoNAS user to required groups..."
for new_group in $ADD_GROUPS
do adduser cryptobox "$new_group"
done