Web-FTP user and other Problems

Discussion in 'General' started by pillul, Aug 24, 2006.

  1. pillul

    pillul New Member

    Good Morning guys,

    My ISPconfig works now nearly fine, i have just some questions.
    I createt a Customer and a web. Adde for this web a user for email and ftp. Login via Email and FTP works ! But if i log in via Web-FTP with the user (mc1_1 or mc1_2) i am redirected to /srv/www/web2/user/mc2_2. This directory should be accessable via www.manqoo.de/~mc2_2/. right ? (Manqoo.de is linked to this web and works ! If i go to the link mentioned above i get a error 403 access denied. I read in this forum that a web oder email user must have Administration rights to copy files to /srv/www/web2/web/ (and not users!). But i can only add 1 Administrator, is there a solution for this ?

    pillul
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The administartor checkbox must be checked only for the web administartor, not for the user websites like www.manqoo.de/~mc2_2/.

    Are you really sure you coped the file to the web folder (/srv/www/web2/user/mc2_2/web/ that you want to access over the URL www.manqoo.de/~mc2_2/ ?
     
  3. pillul

    pillul New Member

    Hello Till,

    thx for your reply.

    I uploaded a picture over webftp for mc1_2:

    http://www.manqoo.de/~mc1_2/sl.jpg

    The file exist ! Otherways a Error 404 would appear, i think :confused:.

    KlICK <-- hier is a screenshoot, so you can see that the file exists !

    The second question:

    I added a customer mc1 and i added a web for mc1. Now i click on the web and then on users and mail there i added mc1_1 and mc1_2 and i can grant only one mc1_x Administrator privilegs. Which are neccessary for uploading files in the webroot of mc1 or ?

    thx

    pillul
     
  4. falko

    falko Super Moderator Howtoforge Staff

    I also get a 403 for http://www.manqoo.de/~mc1_2/index.html ... What's the output of
    Code:
    ls -la /srv/www/web1/user/mc1_2/web/
    ?

    Yes, only the site admin can do that.
     
  5. pillul

    pillul New Member

    Good Morning

    Shows :


    alpha861:~ # ls -la /srv/www/web1/user/mc1_2/web/
    total 420
    drwxrwxr-x 2 mc1_2 web1 4096 Aug 24 13:18 .
    drwxr-xr-x 4 mc1_2 web1 4096 Aug 23 13:59 ..
    -rwxrwxr-x 1 mc1_2 web1 1232 Aug 23 13:59 index.html
    -rwxrwxrwx 1 root root 141237 Aug 24 12:09 mc1.JPG
    -rw-r--r-- 1 mc1_2 web1 264870 Aug 24 08:49 sl.jpg

    Files exists ! Okay only 1 Adminsitrator so it is not possible to add 2 or 3 users how can upload in the webroot ?

    thx again

    Andreas
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's in Apache's error log? Did you disable AppArmor?
    You can only have one site admin, and only the site admin can upload to the web root.
     
  7. pillul

    pillul New Member

    The "only 1 site admin" thing sucks, hope you think about changig this ;)

    Access_log apache :
    Code:
    217.91.12.138 - - [28/Aug/2006:10:36:26 +0200] "GET /~mc1_2/sl.jpg HTTP/1.1" 403 1223 "-" "Opera/9.00 (Windows NT 5.1; U; en)"
    217.91.12.138 - - [28/Aug/2006:10:36:26 +0200] "GET /favicon.ico HTTP/1.1" 404 1257 "http://www.manqoo.de/~mc1_2/sl.jpg" "Opera/9.00 (Windows NT 5.1; U; en)"
    217.91.12.138 - - [28/Aug/2006:10:36:38 +0200] "GET /~mc1_2/sl.jpg HTTP/1.1" 403 1223 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)"
    
    what ist AppArmor ? sounds like security technology
     
  8. falko

    falko Super Moderator Howtoforge Staff

    This will be possible in ISPConfig 3 when we switch to virtual users, but in ISPConfig 2 we use system users, and therefore this is impossible.

    Is 85.25.133.104 your server's public IP address?

    Yes, similar to SELinux. SuSE uses AppArmor, and Fedora, for example, uses SELinux. http://en.opensuse.org/Apparmor
     
  9. pillul

    pillul New Member

    Hello Till,

    thanks for your help so far....

    85.25.133.104 <--- yes thats the public ip

    Yast says no AppArmor is installed !
     
  10. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ifconfig
    , and what's in Vhosts_ispconfig.conf?
     
  11. pillul

    pillul New Member

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:30:05:B9:71:C0
              inet addr:85.25.133.104  Bcast:85.25.133.255  Mask:255.255.255.0
              inet6 addr: fe80::230:5ff:feb9:71c0/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:273110571 errors:0 dropped:0 overruns:0 frame:0
              TX packets:213399699 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:552448624 (526.8 Mb)  TX bytes:2274690900 (2169.3 Mb)
              Interrupt:9 Base address:0xe000
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:4473424 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4473424 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:365679269 (348.7 Mb)  TX bytes:365679269 (348.7 Mb)
    
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 85.25.133.104:80
    <VirtualHost 85.25.133.104:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: http.s4ualpha.mine.nu:80
    ######################################
    #
    #
    <VirtualHost 85.25.133.104:80>
    ServerName http.s4ualpha.mine.nu:80
    ServerAdmin [email][email protected][/email]
    DocumentRoot /srv/www/web1/web
    ServerAlias s4ualpha.mine.nu 85.25.133.104
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /srv/www/web1/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /srv/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/srv/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web1/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: [url]www.manqoo.de:80[/url]
    ######################################
    #
    #
    <VirtualHost 85.25.133.104:80>
    ServerName [url]www.manqoo.de:80[/url]
    ServerAdmin [email][email protected][/email]
    DocumentRoot /srv/www/web2/web
    ServerAlias [url]www.manqoo.de[/url] http.manqoo.de manqoo.de
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /srv/www/web2/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    Alias /error/ "/srv/www/web2/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web2/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web2/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. What's in Apache's error log?
     

Share This Page