Signierten GPG-Schluessel importiert.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 26 Apr 2007 12:27:41 +0000 (12:27 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 26 Apr 2007 12:27:41 +0000 (12:27 +0000)
smartctrl geschrieben.
Passwort kann nichtmehr im Webinterface geaendert werden.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@504 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/cfgroot/cacert.asc [new file with mode: 0644]
config/cfgroot/ipfire.gpg
config/menu/10-system.menu
config/rootfiles/common/apache2
config/rootfiles/common/misc-progs
doc/language_issues.de
doc/language_issues.en
html/cgi-bin/changepw.cgi [deleted file]
lfs/gnupg
src/misc-progs/Makefile
src/misc-progs/smartctrl.c [new file with mode: 0644]

diff --git a/config/cfgroot/cacert.asc b/config/cfgroot/cacert.asc
new file mode 100644 (file)
index 0000000..120f516
--- /dev/null
@@ -0,0 +1,30 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.2.2 (GNU/Linux)
+
+mQGiBD8OdRwRBACEr0/NPA88qp8f6KyIMMveLQ1FOuLi0aDQDPybG7u1nrBoi3VI
+tSRyfYcdExVxWQjTGd9qbShzXBw2DsxjA6YjiGzWKpVcqtj9uUDpSlylBaoadUzu
+Sf3r3IkOHR2QJeC+9v2il30xy5XLMxDRbQYaSmf4uwTlIOUWNn118KpdawCgoNny
+p4DR9EvRgCmY5z6IKHA2WscD/AhAKDVHCIAoZHzSB/puNOuVUSKRbIWNAqUAYosz
+GRzYWb8O/3Ja4fNb3IMQ1gIsEcnUJFHnzID3pTjqWyiCId/NSX3fLuQxZHZE9n8P
+PqlZIvqMrOfCT0RJQa0zTFcrgepnmnHLj7qmtXQZm+YkTvlihOZNtVA4JNzrxDrQ
+egkqA/4hr0LezNJfkUhWnbW604p7AmmKK7Hi/ZixAfnxN0adgnV7oC3Q4VM8aB2i
+g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0lbYjVy
+=Oda/
 -----END PGP PUBLIC KEY BLOCK-----
index 47d70f6..81eed3a 100644 (file)
                                'title' => "$Lang::tr{'alt dialup'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'30.passwords'} = {
-                               'caption' => $Lang::tr{'sspasswords'},
-                               'uri' => '/cgi-bin/changepw.cgi',
-                               'title' => "$Lang::tr{'sspasswords'}",
-                               'enabled' => 1,
-                               };
-    $subsystem->{'40.ssh'} = {
+    $subsystem->{'30.ssh'} = {
                                'caption' => $Lang::tr{'ssh access'},
                                'uri' => '/cgi-bin/remote.cgi',
                                'title' => "$Lang::tr{'ssh access'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'50.gui'} = {
+    $subsystem->{'40.gui'} = {
                                'caption' => $Lang::tr{'gui settings'},
                                'uri' => '/cgi-bin/gui.cgi',
                                'title' => "$Lang::tr{'gui settings'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'60.shutdown'} = {
+    $subsystem->{'50.shutdown'} = {
                                'caption' => $Lang::tr{'shutdown'},
                                'uri' => '/cgi-bin/shutdown.cgi',
                                'title' => "$Lang::tr{'shutdown'} / $Lang::tr{'reboot'}",
index 9ca53eb..4f1b507 100644 (file)
@@ -1261,7 +1261,7 @@ srv/web/ipfire/cgi-bin/aliases.cgi
 #srv/web/ipfire/cgi-bin/asterisk.cgi/calls
 #srv/web/ipfire/cgi-bin/asterisk.cgi/conf
 #srv/web/ipfire/cgi-bin/asterisk.cgi/status
-srv/web/ipfire/cgi-bin/changepw.cgi
+#srv/web/ipfire/cgi-bin/changepw.cgi
 srv/web/ipfire/cgi-bin/chpasswd.cgi
 srv/web/ipfire/cgi-bin/connections.cgi
 srv/web/ipfire/cgi-bin/connscheduler.cgi
index 43f5817..b9570de 100644 (file)
@@ -24,5 +24,6 @@ usr/local/bin/setdmzholes
 usr/local/bin/setfilters
 usr/local/bin/setportfw
 usr/local/bin/setxtaccess
+usr/local/bin/smartctrl
 usr/local/bin/timecheckctrl
 usr/local/bin/upnpctrl
index a032638..c0c8063 100644 (file)
@@ -195,6 +195,7 @@ WARNING: translation string unused: modulation
 WARNING: translation string unused: mount
 WARNING: translation string unused: nat-traversal
 WARNING: translation string unused: network configuration
+WARNING: translation string unused: network status information
 WARNING: translation string unused: new optionsfw later
 WARNING: translation string unused: new optionsfw must boot
 WARNING: translation string unused: no cfg upload
@@ -252,6 +253,7 @@ WARNING: translation string unused: squid fix cache
 WARNING: translation string unused: ssh access tip
 WARNING: translation string unused: ssnetwork status
 WARNING: translation string unused: sssystem status
+WARNING: translation string unused: sstraffic graphs
 WARNING: translation string unused: successfully refreshed updates list
 WARNING: translation string unused: swap usage per
 WARNING: translation string unused: system cpu
index 4ef1375..f213190 100644 (file)
@@ -209,6 +209,7 @@ WARNING: translation string unused: monthly firewallhits
 WARNING: translation string unused: mount
 WARNING: translation string unused: nat-traversal
 WARNING: translation string unused: network configuration
+WARNING: translation string unused: network status information
 WARNING: translation string unused: new optionsfw later
 WARNING: translation string unused: new optionsfw must boot
 WARNING: translation string unused: no cfg upload
@@ -259,6 +260,7 @@ WARNING: translation string unused: squid extension methods
 WARNING: translation string unused: squid extension methods invalid
 WARNING: translation string unused: ssnetwork status
 WARNING: translation string unused: sssystem status
+WARNING: translation string unused: sstraffic graphs
 WARNING: translation string unused: successfully refreshed updates list
 WARNING: translation string unused: swap usage per
 WARNING: translation string unused: system cpu
diff --git a/html/cgi-bin/changepw.cgi b/html/cgi-bin/changepw.cgi
deleted file mode 100644 (file)
index e5595e1..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#!/usr/bin/perl
-#
-# SmoothWall CGIs
-#
-# This code is distributed under the terms of the GPL
-#
-# (c) The SmoothWall Team
-#
-# $Id: changepw.cgi,v 1.4.2.6 2005/03/07 21:28:03 eoberlander Exp $
-#
-
-use strict;
-
-# enable only the following on debugging purpose
-#use warnings;
-#use CGI::Carp 'fatalsToBrowser';
-
-require '/var/ipfire/general-functions.pl';
-require "${General::swroot}/lang.pl";
-require "${General::swroot}/header.pl";
-
-my %cgiparams=();
-my $errormessage='';
-
-&Header::showhttpheaders();
-
-$cgiparams{'ACTION_ADMIN'} = '';
-$cgiparams{'ACTION_DIAL'} = '';
-
-&Header::getcgihash(\%cgiparams);
-
-if ($cgiparams{'ACTION_ADMIN'} eq $Lang::tr{'save'})
-{
-       my $password1 = $cgiparams{'ADMIN_PASSWORD1'};
-       my $password2 = $cgiparams{'ADMIN_PASSWORD2'};  
-       if ($password1 eq $password2)
-       {
-               if ($password1 =~ m/\s|\"/) {
-                       $errormessage = $Lang::tr{'password contains illegal characters'};
-               }
-               elsif (length($password1) >= 6)
-               {
-                       system('/usr/sbin/htpasswd', '-m', '-b', "${General::swroot}/auth/users", 'admin', "${password1}");
-                       &General::log($Lang::tr{'admin user password has been changed'});
-               }
-               else {
-                       $errormessage = $Lang::tr{'passwords must be at least 6 characters in length'}; }
-       }
-       else {
-               $errormessage = $Lang::tr{'passwords do not match'}; }
-}
-
-if ($cgiparams{'ACTION_DIAL'} eq $Lang::tr{'save'})
-{
-       my $password1 = $cgiparams{'DIAL_PASSWORD1'};
-       my $password2 = $cgiparams{'DIAL_PASSWORD2'};   
-       if ($password1 eq $password2)
-       {
-               if($password1 =~ m/\s|\"/) {
-                       $errormessage = $Lang::tr{'password contains illegal characters'};
-                }
-               elsif (length($password1) >= 6)
-               {
-                       system('/usr/sbin/htpasswd', '-m', '-b', "${General::swroot}/auth/users", 'dial', "${password1}");
-                       &General::log($Lang::tr{'dial user password has been changed'});
-               }
-               else {
-                       $errormessage = $Lang::tr{'passwords must be at least 6 characters in length'}; }
-       }
-       else {
-               $errormessage = $Lang::tr{'passwords do not match'}; }
-}
-
-&Header::openpage($Lang::tr{'change passwords'}, 1, '');
-
-&Header::openbigbox('100%', 'left', '', $errormessage);
-
-if ($errormessage) {
-       &Header::openbox('100%', 'left', $Lang::tr{'error messages'});
-       print "<class name='base'>$errormessage\n";
-       print "&nbsp;</class>\n";
-       &Header::closebox();
-}
-
-print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n";
-
-&Header::openbox('100%', 'left', $Lang::tr{'administrator user password'});
-print <<END
-<table width='100%'>
-<tr>
-       <td width='20%' class='base'>$Lang::tr{'username'}&nbsp;'admin'</td>
-       <td width='15%' class='base' align='right'>$Lang::tr{'password'}&nbsp;</td>
-       <td width='15%'><input type='password' name='ADMIN_PASSWORD1' size='10' /></td>
-       <td width='15%' class='base' align='right'>$Lang::tr{'again'} </td>
-       <td width='15%'><input type='password' name='ADMIN_PASSWORD2' size='10' /></td>
-       <td width='20%' align='center'><input type='submit' name='ACTION_ADMIN' value='$Lang::tr{'save'}' /></td>
-</tr>
-</table>
-END
-;
-&Header::closebox();
-
-&Header::openbox('100%', 'left', $Lang::tr{'dial user password'});
-print <<END
-<table width='100%'>
-<tr>
-       <td width='20%' class='base'>$Lang::tr{'username'}&nbsp;'dial'</td>
-       <td width='15%' class='base' align='right'>$Lang::tr{'password'}&nbsp;</td>
-       <td width='15%'><input type='password' name='DIAL_PASSWORD1' size='10'/></td>
-       <td width='15%' class='base' align='right'>$Lang::tr{'again'}&nbsp;</td>
-       <td width='15%'><input type='password' name='DIAL_PASSWORD2' size='10' /></td>
-       <td width='20%' align='center'><input type='submit' name='ACTION_DIAL' value='$Lang::tr{'save'}' /></td>
-</tr>
-</table>
-END
-;
-&Header::closebox();
-
-print "</form>\n";
-
-&Header::closebigbox();
-
-&Header::closepage();
index dd4aa58..70df62f 100644 (file)
--- a/lfs/gnupg
+++ b/lfs/gnupg
@@ -78,5 +78,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        gpg --import $(DIR_SRC)/config/cfgroot/ipfire.gpg
+       gpg --import $(DIR_SRC)/config/cfgroot/cacert.asc
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 7576bda..af9a2f4 100644 (file)
@@ -10,7 +10,8 @@ SUID_PROGS = setdmzholes setportfw setfilters setxtaccess \
        restartapplejuice setdate rebuildhosts \
        restartsyslogd logwatch openvpnctrl timecheckctrl \
        restartwireless getipstat qosctrl launch-ether-wake \
-       redctrl extrahdctrl sambactrl upnpctrl tripwirectrl
+       redctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
+       smartctrl
 
 install : all
        install -m 755  $(PROGS) /usr/local/bin
@@ -56,6 +57,9 @@ sambactrl: sambactrl.c setuid.o ../install+setup/libsmooth/varval.o
 
 tripwirectrl: tripwirectrl.c setuid.o ../install+setup/libsmooth/varval.o
        $(COMPILE) -I../install+setup/libsmooth/ tripwirectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
+       
+smartctrl: smartctrl.c setuid.o ../install+setup/libsmooth/varval.o
+       $(COMPILE) -I../install+setup/libsmooth/ smartctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
 
 launch-ether-wake: launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o
        $(COMPILE) -I../install+setup/libsmooth/ launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o -o $@
diff --git a/src/misc-progs/smartctrl.c b/src/misc-progs/smartctrl.c
new file mode 100644 (file)
index 0000000..b3a4062
--- /dev/null
@@ -0,0 +1,28 @@
+/* This file is part of the IPFire Firewall.
+ *
+ * This program is distributed under the terms of the GNU General Public
+ * Licence.  See the file COPYING for details.
+ *
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include "setuid.h"
+
+int main(int argc, char *argv[]) {
+
+       if (!(initsetuid()))
+               exit(1);
+
+       if (argc < 2) {
+               fprintf(stderr, "\nNo argument given.\n\nsmartctrl <device>\n\n");
+               exit(1);
+       }
+       safe_system("smartctl -iHA /dev/%s", argv[1]);
+
+       return 0;
+}