#!/bin/bash #Framework, welches ein komplettes Linux System aus den Sourcen erstellt #dieses Framework wird im CVS Repository #:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt # #Lage dieser Datei im Archiv: $Source$ # #(c) 2003 Harald Kueller, Germany #This program is free software; you can redistribute it and/or #modify ist 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. # #Script: inn postinstall # #Letzte Änderung von: $Author$ #Datum der letzten Änderung: $Date$ #Version der Datei: $Revision$ # #$Log$ #Revision 1.8 2007/04/29 12:39:32 kueller #Festlegung der GID und UID fuer uucp. GID wird ein alias fuer dialout # #Revision 1.7 2006/09/26 10:33:04 segler #pullnews likes the home directory /opt/inn owned by news:uucp # #Revision 1.6 2006/09/26 10:32:00 segler #Viitor_inn->postinstall und tools/inn setzen ein paar Rechte neu #die Tools newsx und suck fliegen raus, weil das perlscript pullnews das nun #tut und pullnews Bestandteil vom inn est # #Revision 1.5 2006/09/25 10:53:31 segler #bug in startup script: if ... - f (-f is correct) #postinstall gives all in /opt/inn/db/* to news (not only active files) # #Revision 1.4 2006/06/29 14:44:33 segler #user news.uucp likes to have (42/42) # #Revision 1.3 2006/06/29 13:31:50 segler #some ownership / rights modifications to db.active # #Revision 1.2 2006/06/29 13:19:58 segler #group news now is uucp # #Revision 1.1.1.1 2006/06/29 12:58:23 segler #initial # # if ! getent group uucp 2>&1 >/dev/null; then groupadd -o -g 10 uucp fi if ! getent passwd uucp 2>&1 >/dev/null; then useradd -u 52 -g uucp -d /opt/inn news fi chown news /opt/inn/db/* chgrp uucp /opt/inn/db/* chmod 0664 /opt/inn/db/* chown news /opt/inn chgrp uucp /opt/inn # check with inncheck chmod 0640 /etc/inn/control.ctl chmod 0640 /etc/inn/expire.ctl chmod 0640 /etc/inn/expire.ctl chmod 0640 /etc/inn/nntpsend.ctl chmod 0640 /etc/inn/readers.conf