#!/bin/bash source /etc/functions.magic ### # sudo installation script # Copyright (C) Thomas "ShALLaX" Pedley (gentoox@shallax.com) # # This program 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ### $important clear echo "This patch will allow you to run programs as root whilst logged in as gentoox" sleep 5 $busy echo "emerge sudo" sleep 2 emerge app-admin/sudo failCheck emerge $busy ### # Install a sudoers file that only lets 'gentoox' use sudo ### echo "Configuring sudoers files" sleep 2 cd /etc rm -rf /etc/sudoers $downloading $wget --limit-rate=$limitrate $gentooxurl/patch-files/sudoers failCheck download $busy chmod 440 /etc/sudoers clear $important echo "When you want to run a program as root just type:" echo "'sudo program' e.g.: 'sudo gmplayer'. You can use this command line to" echo "make shortcuts!" sleep 10