NetVision-Technik

NetVision-Technik (http://www.netvision-technik.de/forum/index.php)
-   Betriebssysteme (http://www.netvision-technik.de/forum/forumdisplay.php?f=8)
-   -   torrentflux hilfe (http://www.netvision-technik.de/forum/showthread.php?t=4979)

wasnun 01.03.2010 14:35

torrentflux hilfe
 
gibt es ne möglich keit, ein user im flux, die rechte zu entziehen, in einen download ordner eines anderen users reinzusehen ?

bzw. kann ich bei einem user einstellen, wie viel speicherplatz er zur Verfügung hatt? in seinem download ordner ?

__________
andere frage.

habe auf nem server : root/datan Ordner

der ist knap 1,5TB groß

kann ich irgendwie machen, das ich aus dem ordner / FP zwei machen ?

Deto® 01.03.2010 14:37

wenn es dein Flux ist und du als Admin drinne bist kannst du einem angelegtem User alles entziehen und sicher kannst du auch in den Ordner schauen.
Schaue doch mal in die Directory vom Flux oder nehme winscp und gehe auf den Flux.

wasnun 01.03.2010 14:43

jaklar in seinen ordner kann ich schauen, aber möchte nicht das er in meinen schauen kann. und zudem möcht ich gern begrentzen, wie viel speicherplatz er zur verfügung haben darf

vaio03 02.03.2010 08:14

Hiho,
da kann ich mich mal anschliessen. Ein ähnliches problem.
Habe mehrere root´s bei OVH laufen. Doch bei einem ist es genauso, wie @wasnun beschreibt.

Mit einem root kann ich volle Pulle saugen, mit einem homeclienten (zb. uTorrent) nur 6kb/s!
Ftp verbindung ebenso.

Also das ist mir auch rätselhaft. :confused:

Ich weiss da auch nicht mehr weiter. Schon mehrmals neu aufgesetzt.
Komme da nicht weiter.:confused:

gruß

Deto® 02.03.2010 08:44

klicke auf dem Flux auf Admin und dann Transfer dort schaue mal auf was up und download begrenzt ist

.:.Uranus.:. 02.03.2010 10:01

Man kann auf den root selber user anlegen die nur bestimmte bereiche sehen darf das geht ,aber wie es dann ist wenn man einen flux drauf ist weiss ich nicht genau schau dir mal das hier an
NetVision-Technik

pullermann 02.03.2010 12:08

genau lege im ordner home/downloads einen user an z.b:

sollte genau so heißen wie der user im flux

useradd /home/downloads xxxxxxxx der ordner sollte dann automatsch erstellt werden

oder mkdir /home/downloads/xxxxxxxx
useradd xxxxxxxxx


wenn der flux root rechte hat dürfte das klappen bleibt aber die frage offen ob der user dann wirklich nicht in deinen ordner reinschauen kann

kann man aber villeicht im flux einstellen müßte ich mal sellber ausprobieren

wasnun 02.03.2010 13:57

hab jetzt einfach die FP aufgeteilt, und einen eigenen flux erstellt auf der platte

Deto® 02.03.2010 14:37

damit haste aber auch eine unnötige Belastung erstellt denn zweimal Flux heißt auch zweimal Systembelastung.

wasnun 02.03.2010 16:12


hab ja nur ne flux2 verknüfung gemacht, und dort die zweite FP eingebunden. (quasi das selbe als wenn ich 2 user auf nem flux laufen lasse)

Lex 03.03.2010 06:35

Das was "wasnun" möchte, ist einfacher als ihr ihm alle hier erklärt.
Das einrichten von FTP-Homedir. ist dabei ziemlich nutzlos, denn der Flux liest das Verzeichniss mit dem User www-data aus.
Dem sind seine FTP Rechte egal.

Lösung => http://deineadresse.cx/admin.php?op=dirSettings
Zitat:

Public Read:
Enable/disable public read permission for all files/folders in torrentflux-b4rt - when enabled, all files and folders within torrentflux-b4rt will be readable by all torrentflux-b4rt users.
Je nach wunsch auf True or False stellen.

Das mit dem Speicherplatz ist bei mir auch so eine Sache. Ich habs mal mit DiscQuote versucht, hat aber nicht geklappt. Andere Methoden hab ich noch nicht
probiert.

Wenn du deinen Usern auch einen FTP User anlegst verwende das VSFTP Tutorial von Dark-Evil, an das halte ich mich auch immer => NetVision-Technik


Lg Lex

vaio03 03.03.2010 06:52

Zitat:

Zitat von Deto® (Beitrag 52460)
klicke auf dem Flux auf Admin und dann Transfer dort schaue mal auf was up und download begrenzt ist

Up und down sind auf 0, also unbegrenzt!

mit root kann ich ja saugen, nur mit keinem andern Homeclienten!

schluepperpirat 03.03.2010 09:06

Hast du die Unlimited Serie?
Da werden die Roots Nachmittags per FTP usw. begrenzt ....
Um Mitternacht müsstest du per FTP vollen Speed kriegen...

wasnun 03.03.2010 11:24

Liste der Anh?nge anzeigen (Anzahl: 1)
Hab ein Prob.
wenn ich dann auf ordner gehe, und ein file runterladen möchte, zeigt er mir an :

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 81

oder bei nem anderen file :
Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 144

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 145

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /var/www/e8w45w75c4/dir.php:27) in /var/www/e8w45w75c4/dir.php on line 147

und irgendwelche zeichen (siehe bild)

hier die dir.php :
Zeile 77 - 82
PHP-Code:

         $arTemp explode("/"$down);
        if (
count($arTemp) > 1) {
            
array_pop($arTemp);
            
$current implode("/"$arTemp);
        }
        if (
file_exists($path)) {
            
header("Content-type: application/octet-stream\n");
            
header("Content-disposition: attachment; filename=\"".$file."\"\n");
            
header("Content-transfer-encoding: binary\n");
            
header("Content-length: " file_size($path) . "\n");
            
// write the session to close so you can continue to browse on the site. 

Komplett

PHP-Code:


/* $Id: dir.php 1874 2006-12-12 00:46:52Z b4rt $ */

/*******************************************************************************

 LICENSE

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 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.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/

include_once("config.php");
include_once("functions.php");
?>
<center><img src="images/logo.png" border="0" alt="" /></a></center>
<?
checkUserPath();

// Setup some defaults if they are not set.
$del = getRequestVar('del');
$down = getRequestVar('down');
$tar = getRequestVar('tar');
$dir = urldecode(getRequestVar('dir'));
// check dir-var
if (isValidPath($dir) !== true) {
    AuditAction($cfg["constants"]["error"], "ILLEGAL DIR: ".$cfg["user"]." tried to access ".$dir);
    $dir = "";
}
$dir = stripslashes($dir);

// -----------------------------------------------------------------------------

// Are we to delete something?
if ($del != "") {
    $current = delDirEntry($del);
    header("Location: dir.php?dir=".urlencode($current));
}

// Are we to download something?
if ($down != "") {
    // is enabled ?
    if ($cfg["enable_file_download"] != 1) {
        AuditAction($cfg["constants"]["error"], "ILLEGAL ACCESS: ".$cfg["user"]." tried to use download (".$down.")");
        showErrorPage("download is disabled.");
    }
    $current = "";
    // Yes, then download it
    // we need to strip slashes twice in some circumstances
    // Ex.  If we are trying to download test/tester's file/test.txt
    // $down will be "test/tester\\\'s file/test.txt"
    // one strip will give us "test/tester\'s file/test.txt
    // the second strip will give us the correct
    //  "test/tester's file/test.txt"
    $down = stripslashes(stripslashes($down));
    if (isValidPath($down)) {
        $path = $cfg["path"].$down;
        $p = explode(".", $path);
        $pc = count($p);
        $f = explode("/", $path);
        $file = array_pop($f);
        $arTemp = explode("/", $down);
        if (count($arTemp) > 1) {
            array_pop($arTemp);
            $current = implode("/", $arTemp);
        }
        if (file_exists($path)) {
            header("Content-type: application/octet-stream\n");
            header("Content-disposition: attachment; filename=\"".$file."\"\n");
            header("Content-transfer-encoding: binary\n");
            header("Content-length: " . file_size($path) . "\n");
            // write the session to close so you can continue to browse on the site.
            @session_write_close();
            //$fp = fopen($path, "r");
            $fp = popen("cat ".escapeshellarg($path), "r");
            fpassthru($fp);
            pclose($fp);
            // log
            AuditAction($cfg["constants"]["fm_download"], $down);
            exit();
        } else {
            AuditAction($cfg["constants"]["error"], "File Not found for download: ".$cfg['user']." tried to download ".$down);
        }
    } else {
        AuditAction($cfg["constants"]["error"], "ILLEGAL DOWNLOAD: ".$cfg['user']." tried to download ".$down);
    }
    header("Location: dir.php?dir=".urlencode($current));
}

// Are we to download something?
if ($tar != "") {
    // is enabled ?
    if ($cfg["enable_file_download"] != 1) {
        AuditAction($cfg["constants"]["error"], "ILLEGAL ACCESS: ".$cfg["user"]." tried to use download (".$tar.")");
        showErrorPage("download is disabled.");
    }
    $current = "";
    // Yes, then tar and download it
    // we need to strip slashes twice in some circumstances
    // Ex.  If we are trying to download test/tester's file/test.txt
    // $down will be "test/tester\\\'s file/test.txt"
    // one strip will give us "test/tester\'s file/test.txt
    // the second strip will give us the correct
    //  "test/tester's file/test.txt"
    $tar = stripslashes(stripslashes($tar));
    if (isValidPath($tar)) {
        // This prevents the script from getting killed off when running lengthy tar jobs.
        ini_set("max_execution_time", 3600);
        $tar = $cfg["path"].$tar;
        $arTemp = explode("/", $tar);
        if (count($arTemp) > 1) {
            array_pop($arTemp);
            $current = implode("/", $arTemp);
        }
        // Find out if we're really trying to access a file within the
        // proper directory structure. Sadly, this way requires that $cfg["path"]
        // is a REAL path, not a symlinked one. Also check if $cfg["path"] is part
        // of the REAL path.
        if (is_dir($tar)) {
            $sendname = basename($tar);
            switch ($cfg["package_type"]) {
                Case "tar":
                    $command = "tar cf - \"".addslashes($sendname)."\"";
                    break;
                Case "zip":
                    $command = "zip -0r - \"".addslashes($sendname)."\"";
                    break;
                default:
                    $cfg["package_type"] = "tar";
                    $command = "tar cf - \"".addslashes($sendname)."\"";
                    break;
            }
            // HTTP/1.0
            header("Pragma: no-cache");
            header("Content-Description: File Transfer");
            header("Content-Type: application/force-download");
            header('Content-Disposition: attachment; filename="'.$sendname.'.'.$cfg["package_type"].'"');
            // write the session to close so you can continue to browse on the site.
            @session_write_close();
            // Make it a bit easier for tar/zip.
            chdir(dirname($tar));
            passthru($command);
            AuditAction($cfg["constants"]["fm_download"], $sendname.".".$cfg["package_type"]);
            exit();
        } else {
            AuditAction($cfg["constants"]["error"], "Illegal download: ".$cfg['user']." tried to download ".$tar);
        }
    } else {
        AuditAction($cfg["constants"]["error"], "ILLEGAL TAR DOWNLOAD: ".$cfg['user']." tried to download ".$tar);
    }
    header("Location: dir.php?dir=".urlencode($current));
}

// -----------------------------------------------------------------------------

if ($dir == "")
    unset($dir);
if (isset($dir)) {
    if (isValidPath($dir) !== true)
        unset($dir);
    else
        $dir = $dir."/";
}

// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------

DisplayHead(_DIRECTORYLIST);
?>
<script language="JavaScript">
function MakeTorrent(name_file)
{
    window.open (name_file,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=430')
}
function ConfirmDelete(file)
{
    return confirm("<?php echo _ABOUTTODELETE ?>: " + file)
}
function checkCheck(thisIn)
{
    var form = thisIn.form, i = 0;
    for(i=0; i < form.length; i++)
    {
        if( form[i].type == 'checkbox' && form[i].name != 'checkall')
        {
            form[i].checked = thisIn.checked;
        }
    }
}
<!-- R.D. Robust UnRAR/UnZip hack -->
function UncompDetails(URL)
{
  window.open (URL,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=300');
}
</script>
<?php
displayDriveSpaceBar
(getDriveSpace($cfg["path"]));
echo 
"<br>";
if(!isset(
$dir)) $dir "";
ListDirectory($cfg["path"].$dir);
DisplayFoot();

// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------

//**************************************************************************
// ListDirectory()
// This method reads files and directories in the specified path and
// displayes them.
function ListDirectory($dirName) {
    global 
$dirModified$dir$cfg;
    
$bgLight $cfg["bgLight"];
    
$bgDark $cfg["bgDark"];
    
$entrys = array();
    
$bg $bgLight;
    
$dirName stripslashes($dirName);
    if (isset(
$dir)) {
        
//setup default parent directory URL
        
$parentURL "dir.php";
        
//get the real parentURL
        
if (preg_match("/^(.+)\/.+$/",$dir,$matches) == 1)
            
$parentURL="dir.php?dir=" urlencode($matches[1]);
        echo 
"<a href=\"" $parentURL "\"><img src=\"images/up_dir.gif\" width=16 height=16 title=\""._BACKTOPARRENT."\" border=0>["._BACKTOPARRENT."]</a>";
    }
    
//echo "<table cellpadding=2 width=740>";
    /* --- Multi Delete Hack --- */
    
echo '<table cellpadding="2"" width="740">';
    echo 
'<form action="multi.php" method="post" name="multidir">';
    
$handle opendir($dirName);
    while(
$entry readdir($handle))
        
$entrys[] = $entry;
    
natsort($entrys);
    foreach(
$entrys as $entry) {
        
//if ($entry != "." && $entry != ".." && substr($entry, 0, 1) != ".") {
        
if (($entry != ".") && ($entry != "..") && (substr($entry01) != ".") && ($entry != "lost+found")) {
            if (@
is_dir($dirName.$entry)) {
                echo 
"<tr bgcolor=\"".$bg."\"><td><a href=\"dir.php?dir=".urlencode($dir.$entry)."\"><img src=\"images/folder2.gif\" width=\"16\" height=\"16\" title=\"".$entry."\" border=\"0\" align=\"absmiddle\">".$entry."</a></td>";
                
// Some Stats dir hack
                
if ($cfg['enable_dirstats'] == 1) {
                    
$dudir = @shell_exec($cfg['bin_du']." -sk -h ".escapeshellarg($dirName.$entry));
                    
$dusize explode("\t"$dudir);
                    
$arStat = @lstat($dirName.$entry);
                    
$timeStamp = @filemtime($dirName.$entry);
                    echo 
"<td align=\"right\">".$dusize[0]."B</td>";
                    echo 
"<td width=140>".@date("m-d-Y h:i a"$timeStamp)."</td>";
                } else {
                    echo 
"<td>&nbsp;</td>";
                    echo 
"<td>&nbsp;</td>";
                }
                echo 
"<td align=\"right\" nowrap>";

                
// rename hack
                
include('rename_dir_extension.php');
                
// move hack
                
include('move_dir_extension.php');

                
// SFV Check
                
if ($cfg['enable_sfvcheck'] == 1) {
                    if(
false !== ($sfv findSFV($dirName.$entry))) {
                      echo 
'<a href="javascript:CheckSFV(\''.
                      
$sfv[dir] . '\',\''.$sfv[sfv].'\')"><img '.
                      
'src="images/sfv_enabled.gif" border="0" '.
                      
'width="16" height="16" alt="sfv check torrent"></a>';
                    } else {
                      echo 
'<img src="images/sfv_disabled.gif" border="0" width="16" height="16" alt="sfv check torrent (no sfv found)">';
                    }
                }
                
// maketorrent
                
if ($cfg["enable_maketorrent"])
                    echo 
"<a href=\"JavaScript:MakeTorrent('maketorrent.php?path=".urlencode($dir.$entry)."')\"><img src=\"images/make.gif\" width=16 height=16 title=\"Make Torrent\" border=0></a>";
                
// download
                
if ($cfg["enable_file_download"])
                    echo 
"<a href=\"dir.php?tar=".urlencode($dir.$entry)."\"><img src=\"images/tar_down.gif\" width=16 height=16 title=\"Download as ".$cfg["package_type"]."\" border=0></a>";
                
// The following lines of code were suggested by Jody Steele jmlsteele@stfu.ca
                // this is so only the owner of the file(s) or admin can delete
                // only give admins and users who "own" this directory
                // the ability to delete sub directories
                
if(IsAdmin($cfg["user"]) || preg_match("/^" $cfg["user"] . "/",$dir)) {
                    
//echo "<a href=\"dir.php?del=".urlencode($dir.$entry)."\" onclick=\"return ConfirmDelete('".addslashes($entry)."')\"><img src=\"images/delete_on.gif\" width=16 height=16 title=\""._DELETE."\" border=0></a>";
                    /* --- Multi Delete Hack --- */
                    /* checkbox appended to line */
                    
echo "<a href=\"dir.php?del=".urlencode($dir.$entry)."\" onclick=\"return ConfirmDelete('".addslashes($entry)."')\"><img src=\"images/delete_on.gif\" width=16 height=16 title=\""._DELETE."\" border=0></a><input type=\"checkbox\" name=\"file[]\" value=\"".urlencode($dir.$entry)."\">";
                    
/* --- Multi Delete Hack --- */
                
} else {
                    echo 
"&nbsp;";
                }
                echo 
"</td></tr>\n";
                if (
$bg == $bgLight)
                    
$bg $bgDark;
                else
                    
$bg $bgLight;
            }
        }
    }
    
closedir($handle);
    
$entrys = array();
    
$handle opendir($dirName);
    while(
$entry readdir($handle))
        
$entrys[] = $entry;
    
natsort($entrys);
    foreach(
$entrys as $entry) {
        if (
$entry != "." && $entry != "..") {
            if (@
is_dir($dirName.$entry)) {
                
// Do nothing
            
} else {
                
$arStat = @lstat($dirName.$entry);
                
$arStat[7] = ($arStat[7] == 0) ? @file_size($dirName.$entry ) : $arStat[7];
                if (
array_key_exists(10,$arStat))
                    
$timeStamp = @filemtime($dirName.$entry); // $timeStamp = $arStat[10];
                
else
                    
$timeStamp "";
                
$fileSize number_format(($arStat[7])/1024);
                
// Code added by Remko Jantzen to assign an icon per file-type. But when not
                // available all stays the same.
                
$image="images/time.gif";
                
$imageOption="images/files/".getExtension($entry).".png";
                if (
file_exists("./".$imageOption))
                    
$image $imageOption;
                echo 
"<tr bgcolor=\"".$bg."\">";
                echo 
"<td>";
                
// Can users download files?
                
if ($cfg["enable_file_download"]) {
                    
// Yes, let them download
                    
echo "<a href=\"dir.php?down=".urlencode($dir.$entry)."\" >";
                    echo 
"<img src=\"".$image."\" width=\"16\" height=\"16\" alt=\"".$entry."\" border=\"0\"></a>";
                    echo 
"<a href=\"dir.php?down=".urlencode($dir.$entry)."\" >".$entry."</a>";
                } else {
                    
// No, just show the name
                    
echo "<img src=\"".$image."\" width=\"16\" height=\"16\" alt=\"".$entry."\" border=\"0\">";
                    echo 
$entry;
                }
                echo 
"</td>";
                echo 
"<td align=\"right\">".$fileSize." KB</td>";
                
// Some Stats dir hack
                
if ($cfg['enable_dirstats'] == 1)
                    echo 
"<td width=140>".@date("m-d-Y h:i a"$timeStamp)."</td>";
                else
                    echo 
"<td>".@date("m-d-Y g:i a"$timeStamp)."</td>";
                echo 
"<td align=\"right\" nowrap>";

                
// rename hack
                
include('rename_dir_extension.php');
                
// move hack
                
include('move_dir_extension.php');

                if (
$cfg['enable_rar'] == 1) {
                    
// R.D. - Display links for unzip/unrar
                    //**************************************************************************************************************

                    
if(IsAdmin($cfg["user"]) || preg_match("/^" $cfg["user"] . "/",$dir))  {
                      if ((
strpos($entry'.rar') !== FALSE AND strpos($entry'.Part') === FALSE) OR (strpos($entry'.part01.rar') !== FALSE ) OR (strpos($entry'.part1.rar') !== FALSE ))
                        echo 
"<a href=\"javascript:UncompDetails('uncomp.php?file=".urlencode($dir.$entry)."&dir=".urlencode($dir)."&type=rar')\"><img src=\"images/rar_enabled.gif\" width=16 height=16 title=\"Unrar\" border=0></a>";
                      if (
strpos($dir.$entry'.zip') !== FALSE)
                        echo 
"<a href=\"javascript:UncompDetails('uncomp.php?file=".urlencode($dir.$entry)."&dir=".urlencode($dir)."&type=zip')\"><img src=\"images/zip.png\" width=16 height=16 title=\"Unzip\" border=0></a>";
                    }
                    
//**************************************************************************************************************
                
}

                
// nfo
                
if ($cfg["enable_view_nfo"] && ((substr(strtolower($entry), -) == ".nfo" ) || (substr(strtolower($entry), -) == ".txt" ) || (substr(strtolower($entry), -) == ".log" )))
                    echo 
"<a href=\"viewnfo.php?path=".urlencode(addslashes($dir.$entry))."\"><img src=\"images/view_nfo.gif\" width=16 height=16 title=\"View '$entry'\" border=0></a>";
                
// maketorrent
                
if ($cfg["enable_maketorrent"])
                    echo 
"<a href=\"JavaScript:MakeTorrent('maketorrent.php?path=".urlencode($dir.$entry)."')\"><img src=\"images/make.gif\" width=16 height=16 title=\"Make Torrent\" border=0></a>";

                
// download
                
if ($cfg["enable_file_download"]) {
                    
// Show the download button
                    
echo "<a href=\"dir.php?down=".urlencode($dir.$entry)."\" >";
                    echo 
"<img src=\"images/download_owner.gif\" width=16 height=16 title=\"Download\" border=0>";
                    echo 
"</a>";
                }
                
// The following lines of code were suggested by Jody Steele jmlsteele@stfu.ca
                // this is so only the owner of the file(s) or admin can delete
                // only give admins and users who "own" this directory
                // the ability to delete files
                
if(IsAdmin($cfg["user"]) || preg_match("/^" $cfg["user"] . "/",$dir)) {
                    
//echo "<a href=\"dir.php?del=".urlencode($dir.$entry)."\" onclick=\"return ConfirmDelete('".addslashes($entry)."')\"><img src=\"images/delete_on.gif\" width=16 height=16 title=\""._DELETE."\" border=0></a>";
                    /* --- Multi Delete Hack --- */
                    /* checkbox appended to line */
                    
echo "<a href=\"dir.php?del=".urlencode($dir.$entry)."\" onclick=\"return ConfirmDelete('".addslashes($entry)."')\"><img src=\"images/delete_on.gif\" width=16 height=16 title=\""._DELETE."\" border=0></a><input type=\"checkbox\" name=\"file[]\" value=\"".urlencode($dir.$entry)."\">";
                    
/* --- Multi Delete Hack --- */
                
} else {
                    echo 
"&nbsp;";
                }
                echo 
"</td></tr>\n";
                if (
$bg == $bgLight)
                    
$bg $bgDark;
                else
                    
$bg $bgLight;
            }
        }
    }
    
// Some Stats dir hack
    
closedir($handle);

    
/* --- Multi Delete Hack --- */
    
echo '<input type="hidden" name="action" value="fileDelete" />';
    echo 
'<tr><td align="right" colspan="4"><a href="javascript:document.multidir.submit()" onclick="return ConfirmDelete(\'Multiple Files\')"><img src="images/delete_on.gif" title="Delete" border="0" height="16" width="16"></a><input type="checkbox" onclick="checkCheck(this);" /></td></tr>';
    echo 
"</form>";
    
/* --- Multi Delete Hack --- */

    
echo "</table>";

    if (
$cfg['enable_dirstats'] == 1) {
        
$cmd $cfg['bin_du']." -ch ".escapeshellarg($dirName)." | ".$cfg['bin_grep']." \"total\"";
        
$du shell_exec($cmd);
        echo 
'<table cellpadding="0" width="740">';
        
$du2 substr($du0, -7);
        echo 
"<tr bgcolor=#ececec>";
        echo 
"<td align=\"center\">"._TDDU." ".$du2."B</td></tr>";
        echo 
"</table>";
    }
}

// ***************************************************************************
// ***************************************************************************
// Checks for the location of the users directory
// If it does not exist, then it creates it.
function checkUserPath() {
    global 
$cfg;
    
// is there a user dir?
    
if (!is_dir($cfg["path"].$cfg["user"])) {
        
//Then create it
        
mkdir($cfg["path"].$cfg["user"], 0777);
    }
}

// This function returns the extension of a given file.
// Where the extension is the part after the last dot.
// When no dot is found the noExtensionFile string is
// returned. This should point to a 'unknown-type' image
// time by default. This string is also returned when the
// file starts with an dot.
function getExtension($fileName) {
    
$noExtensionFile="unknown"// The return when no extension is found
    //Prepare the loop to find an extension
    
$length = -1*(strlen($fileName)); // The maximum negative value for $i
    
$i=-1//The counter which counts back to $length
    //Find the last dot in an string
    
while (substr($fileName,$i,1) != "." && $i $length) {$i -= 1; }
    
//Get the extension (with dot)
    
$ext substr($fileName,$i);
    
//Decide what to return.
    
if (substr($ext,0,1)==".") {$ext substr($ext,((-strlen($ext))+1)); } else {$ext $noExtensionFile;}
    
//Return the extension
    
return strtolower($ext);
}

?>


vaio03 04.03.2010 08:25

Zitat:

Zitat von schluepperpirat (Beitrag 52590)
Hast du die Unlimited Serie?
Da werden die Roots Nachmittags per FTP usw. begrenzt ....
Um Mitternacht müsstest du per FTP vollen Speed kriegen...

Na selsamerweise funzt das jetzt.
Nun gibt es ein weiteres Problem. Ich bekomme keine Verbindung mehr mit dem Tracker.

Ich brech bald ab.

Na, wenn nicht, dann nochmals neu machen.

gotthummer 04.03.2010 08:39

tracker und flux auf einen root ist auch ein nogo wann lernt ihr das endlich ?

schluepperpirat 04.03.2010 08:43

Da hat GH recht , das wird hier fast in jedem Theard geschrieben :D

Besonders hast du zwei ACC?
Oder warum schreibst du jetzt funzt alles und du bricht es bald ab?

Denke wasnun hat Probleme?

Verwirrt -.-

wasnun 08.03.2010 16:28

joa. wenn einer hilfe hat, währe net

[COLOR="Red"]





das mit dem ftp acc anlegen wie hier netvision-technik beschrieben funzt net.

weil zb. vsftpd ich nicht hab, bzw. das nicht erstellt wird weil nicht gefunden.

schluepperpirat 09.03.2010 13:24

Probiers doch mal hiermit...

NetVision-Technik

wasnun 10.03.2010 08:48

wenn ich das mache und einen user erstelle, und ihm ein verzeichniss zuordne, kann er nur dadrauf zugreifen oder trotzdem auf alle ?

quasi wenn ich aufm root bin zeigt er ja an :

bin
boot
datein1
datein2
dev
emul
usw....

wenn ich dan einen user erstelle bsp. user1 und weise ihm das verzeichniss bsp. datein2/user1 zu

so wenn er sich dan per winscp einlogt ist er ja geh ich mal von aus in dem Ordner datein2/user1

so kann er dann, wenn er ganz oben in der liste auf .. drückt zurück auf den root oder ist das dann gespert ?
(weil das kann ich daraus nicht ganz verstehhen.


Zeigt bei mir an :

Code:

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Lese Status-Informationen ein... Fertig
Paket proftpd-mysql ist nicht verfügbar, wird aber von einem anderen
Paket referenziert. Das kann heißen, dass das Paket fehlt, dass es veraltet
ist oder nur aus einer anderen Quelle verfügbar ist.
E: Paket proftpd-mysql hat keinen Installationskandidaten

und wenn ich danach suche finde ich keine

Woodstock 10.03.2010 10:10

einfach mal ausprobieren

Zero111 10.03.2010 11:09

du sprichts hier von 2 verschiedenen Systemen!!

WinSCP arbeitet mit den SSH Protokoll (sieht zwar wie FTP aus, hat aber nix mit FTP zu tun)

Von Daher: solange der User im Server eine gültige Shell hat so kann dieser sich via SSH einloggen und auch andere Verzeichnisse einsehen

Wenn man den User wirklich in sein Home Dir einsperren will sollte man die Shell des User sperren:

usermod -s /bin/false USERNAME

Danach wird der SSH Login des Users blockiert


dann sollte man die proftpd.conf bearbeiten:

dort gibt es 2 Zeilen die man ändern bzw auskommentieren sollte:

Code:

DefaultRoot                    ~

RequireValidShell              off

Die erste Zeile Sperrt den User in sein Home Verzeichnis ein.
Die zweite Zeile erlaubt User ohne gültige Shell ein FTP Login


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:43 Uhr.

Powered by vBulletin® Version 3.8.9 (Deutsch)
Copyright ©2000 - 2025, vBulletin Solutions, Inc.