Anon-FTP not creating user

Discussion in 'General' started by danie.robberts, Jul 25, 2006.

  1. danie.robberts

    danie.robberts New Member

    I enable anonymous FTP in the control panel and no errors are displayed. When I try and FTP into the site, using user-name and Pass, works, but as anon. login fails.

    in /etc/passwd there is an id for the sire admin, but not for the anon user.

    Host OS is Ubuntu Dapper.


    contents of /etc/proftpd.conf and proftpd_ispconfig.cong below:

    danier@server1:/etc$ more proftpd.conf
    #
    # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    #

    ServerName "Debian"
    ServerType standalone
    DeferWelcome off
    DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."

    MultilineRFC2228 on
    DefaultServer on
    ShowSymlinks on

    TimeoutNoTransfer 600
    TimeoutStalled 600
    TimeoutIdle 1200

    DisplayLogin welcome.msg
    DisplayFirstChdir .message
    ListOptions "-l"

    DenyFilter \*.*/

    # Uncomment this if you are using NIS or LDAP to retrieve passwords:
    #PersistentPasswd off

    # Uncomment this if you would use TLS module:
    #TLSEngine on

    # Uncomment this if you would use quota module:
    #Quotas on

    # Uncomment this if you would use ratio module:
    #Ratios on

    # Port 21 is the standard FTP port.
    Port 21

    # To prevent DoS attacks, set the maximum number of child processes
    # to 30. If you need to allow more than 30 concurrent connections
    # at once, simply increase this value. Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances 30

    # Set the user and group that the server normally runs at.
    User nobody
    Group nogroup

    # Umask 022 is a good standard umask to prevent new files and dirs
    # (second parm) from being group and world writable.
    Umask 022 022
    # Normally, we want files to be overwriteable.
    AllowOverwrite on

    # Delay engine reduces impact of the so-called Timing Attack described in
    # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
    # It is on by default.
    #DelayEngine off

    # A basic anonymous configuration, no upload directories.

    # <Anonymous ~ftp>
    # User ftp
    # Group nogroup
    # # We want clients to be able to login with "anonymous" as well as "ftp"
    # UserAlias anonymous ftp
    # # Cosmetic changes, all files belongs to ftp user
    # DirFakeUser on ftp
    # DirFakeGroup on ftp
    #
    # RequireValidShell off
    #
    # # Limit the maximum number of anonymous logins
    # MaxClients 10
    #
    # # We want 'welcome.msg' displayed at login, and '.message' displayed
    # # in each newly chdired directory.
    # DisplayLogin welcome.msg
    # DisplayFirstChdir .message
    #
    # # Limit WRITE everywhere in the anonymous chroot
    # <Directory *>
    # <Limit WRITE>
    # DenyAll
    # </Limit>
    # </Directory>
    #
    # # Uncomment this if you're brave.
    # # <Directory incoming>
    # # # Umask 022 is a good standard umask to prevent new files and dirs
    # # # (second parm) from being group and world writable.
    # # Umask 022 022
    # # <Limit READ WRITE>
    # # DenyAll
    # # </Limit>
    # # <Limit STOR>
    # # AllowAll
    # # </Limit>
    # # </Directory>
    #
    # </Anonymous>

    DefaultRoot ~

    Include /etc/proftpd_ispconfig.conf



    --------------------------------------------------------------------
    danier@server1:/etc$ more proftpd_ispconfig.conf
    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost 192.168.244.92>
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    <Anonymous /var/www/web5/ftp>
    User web5_anonftp
    Group web5_anonftp
    UserAlias anonymous web5_anonftp
    UserAlias guest web5_anonftp
    MaxClients 10
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>
    <Directory /var/www/web5/ftp/incoming>
    Umask 002
    <Limit STOR>
    AllowAll
    </Limit>
    <Limit READ>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    </VirtualHost>


    Cheers!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    grep anonftp /etc/passwd
    ?
    What's the output of
    Code:
    ls -la /root/ispconfig
    ?
     
  3. ibrahimak

    ibrahimak New Member

    I have got the same problem.


    total 104
    drwxr-xr-x 9 root root 4096 Apr 14 12:49 .
    drwxr-x--- 19 root root 4096 Apr 13 14:28 ..
    -rwxr-xr-x 1 root root 33079 Apr 12 14:14 cronolog
    -rwxr-xr-x 1 root root 9673 Apr 12 14:14 cronosplit
    drwxr-xr-x 12 root root 4096 Apr 12 13:53 httpd
    drwxr-xr-x 14 root root 4096 Apr 12 14:14 isp
    -rw-r--r-- 1 root root 8 Apr 14 12:49 .old_path_httpd_root
    drwxr-xr-x 6 root root 4096 Apr 12 13:49 openssl
    drwxr-xr-x 6 root root 4096 Apr 12 13:58 php
    drwxr-xr-x 4 root root 4096 Apr 12 14:14 scripts
    drwxr-xr-x 4 root root 4096 Apr 12 14:14 standard_cgis
    drwxr-xr-x 2 root root 4096 Apr 12 14:14 sv
    -rwx------ 1 root root 9389 Apr 12 14:14 uninstall

    What now ??
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use? Any errors in your log files?
    With what user do you have this problem?
     
  5. ibrahimak

    ibrahimak New Member

    Fedora 6 is my distr.My problem is when i type ftp.lilainsaat.com its ask me user and password.i can login with my web&email user and pass but i wanted havent asked me for user , password.Anonymous FTP's mean public ftp i know isnt it ? So how can i enter ANONYMOUS FTP in ISP_CONFIG ... ???
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please answer falkos second question too:
    Just enable the anonymous FTP checkbox in the web settings.
     
  7. ibrahimak

    ibrahimak New Member

    I enabled it but how can i use anonymous FTP Function ?? What i need to write Explorer to login for anonymous.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    The third try to gat an answer to this question ;)

    Any errors in your log files?

    If you dont answer all our questions, we are not able to help you!
     
  9. ibrahimak

    ibrahimak New Member

    In /var/log/proftpd/ directory there is no file so thats mean there is no error.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Please try a regular FTP client such as WS_FTP, Smart-FTP, or gFTP instead of Internet Explorer.
    Did you disable SELinux?
    With what user do you have this problem?
     
  11. ibrahimak

    ibrahimak New Member

    Yes its disabled ( SELINUX )
    I tried with WinSCP but it asked me username and password.HOW CAN I LOGIN WITH ANONYMOUS.And What user that asking me ? I need a user for login anony ?
     
  12. Murder4Al

    Murder4Al New Member

    To login using anonymous FTP, upon the login/passwd prompt of the FTP server,
    by convention, use 'anonymous' or 'ftp' as username, but any username will do, and enter a random password (if you are polite, use your e-mail address)

    Most FTP clients have a checkbox/option to login anonymous to an FTP server (niet IE of course, that's NOT a valid FTP client)
     
  13. ibrahimak

    ibrahimak New Member

    Nope i tried and its failed.I cant login with ftp user or anonymous..
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Please try a regular FTP client such as WS_FTP, Smart-FTP, or gFTP instead of Internet Explorer.
     
  15. ibrahimak

    ibrahimak New Member

    lilainsaat.com is my address anyone can try ? i cant login with anony.
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the login with normal, non anonymous FTP users work?
     
  17. ibrahimak

    ibrahimak New Member

    Yes i can login with non anony users but anonymous.
     
  18. falko

    falko Super Moderator Howtoforge Staff

    Doesn't work.
    Can you comment out
    Code:
    DefaultAddress 127.0.0.1
    in /etc/proftpd_ispconfig.conf and restart Proftpd? Does it work then?
     
  19. ibrahimak

    ibrahimak New Member

    Nope it doesnt work. again.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    netstat -tap | grep ftp

    and your proftpd.conf file, comments stripped.
     

Share This Page