View Poll Results: Do you think that gproftpd is useful ?

Voters
872. You may not vote on this poll
  • Yes, it's easy to use and really powerful

    473 54.24%
  • Yes, but i won't use it

    136 15.60%
  • No, the GUI has to be improved

    263 30.16%
Page 13 of 123 FirstFirst ... 311121314152363113 ... LastLast
Results 121 to 130 of 1225

Thread: HOWTO : Create a FTP server with user access (proftpd)

  1. #121
    Join Date
    Mar 2006
    Beans
    8

    Re: HOWTO : Create a FTP server with user access (proftpd)

    Quote Originally Posted by frodon
    I By the way, I'm wondering if i should add that in the guide itself and not in the misc section because many users have a router and sometimes they don't read the misc section which contain those informations.
    So should i add the router things in the guide itself instead of the misc section ?
    As you can tell I am no export in this OS, but I am sure it would help many of us newbie's if it was.

    Thank you for you assistance, I will research those links today.

  2. #122
    Join Date
    Jan 2006
    Beans
    4

    Re: HOWTO : Create a FTP server with user access (proftpd)

    Hello,

    I'm a real newbie at this stuff. I just started and I decided to use the GUI to set up the FTP for me.

    I'm behind a router, I have all the forwarding ports (60000 - 65534) passive and (77) ftp set up. I have set all the folders to what was stated in the begining of this how to.

    I go to ftp://myhost:77 and I can log in fine and the gui shows that I have logged in but I don't get a response from the ftp for the files... i have folder in there to test.

    The response I get is that it puts me in the current directory "/"
    TYPE A
    PASV
    227 Entering Passive Mode (69,17,133,157,253,50).
    Opening Data connection to 69.176.133.157 Port:64818
    LIST -aL
    A connection attempt failed because the connected party did not respond.
    Timeout (40s).
    Client Close Connection

    Please help me...
    I tried what had been said earlier but i got confused
    I let the gui set up the proftpd.conf.

  3. #123
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO : Create a FTP server with user access (proftpd)

    If you are really accessing the "/" directory (your ubuntu partition) the LIST command will surely fail because of rights. Indeed you can access and list directories only if you have rights for it.
    So my first advice would be to be sure that the directory you access when you login (set a good home directory not "/") the FTP server has the good rights (755 for a download directory).

  4. #124
    Join Date
    Jan 2006
    Beans
    4

    Re: HOWTO : Create a FTP server with user access (proftpd)

    Quote Originally Posted by frodon
    If you are really accessing the "/" directory (your ubuntu partition) the LIST command will surely fail because of rights. Indeed you can access and list directories only if you have rights for it.
    So my first advice would be to be sure that the directory you access when you login (set a good home directory not "/") the FTP server has the good rights (755 for a download directory).
    I looked at my settings and none of them are set to go to directory "/".

    I am going to provide what config my gproftpd-8.2.2 has and maybe you can tell me if it is in there that something is set wrong.
    I am using a netgear router, and I have all the ports forwarded as it does connect and verify the password and username.
    If there is anything I need to do I will appreciate the help.

    ServerType standalone
    DefaultServer on
    Umask 022
    ServerName "192.168.1.4"
    ServerIdent on "Richards Server"
    Bind "192.168.1.4"
    ServerAdmin RichardGiesige@hotmail.com

    IdentLookups off
    UseReverseDNS off
    Port 77
    PassivePorts 60000 65534

    MasqueradeAddress 69.176.133.157

    TimesGMT off
    MaxInstances 30
    MaxLoginAttempts 3
    TimeoutLogin 300
    TimeoutNoTransfer 120
    TimeoutIdle 120
    User snugglej
    Group adm
    DirFakeUser off nobuddy
    DirFakeGroup off nogroup
    DefaultTransferMode binary
    AllowForeignAddress on
    AllowRetrieveRestart on
    AllowStoreRestart on
    DeleteAbortedStores off
    TransferRate RETR 30
    TransferRate STOR 40
    TransferRate STOU 40
    TransferRate APPE 40

    SystemLog /var/log/secure
    #gp_random_username_length 6
    #gp_random_password_length 6
    #gp_randomize_case lower
    #gp_useradd_root_path /home/FTP-shared
    #gp_useradd_upload_path /upload
    #gp_html_path /var/www/ftp.html
    #gp_welcome_name welcome.msg
    <IfModule mod_tls.c>
    TLSEngine off
    TLSRequired off
    TLSVerifyClient off
    TLSProtocol TLSv1
    TLSLog /var/log/proftpd_tls.log
    TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
    </IfModule>

    <Limit LOGIN>
    AllowUser snugglej
    AllowUser ftp
    DenyALL
    </Limit>


    <Anonymous /home/snugglej>
    User snugglej
    Group snugglej
    AnonRequirePassword on
    MaxClients 3 "The server is full, hosting %m users"
    DisplayLogin welcome.msg
    DisplayFirstChdir .msg
    AllowOverwrite off
    <Limit LOGIN>
    Allow from all
    Deny from all
    </Limit>
    <Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
    AllowAll
    </Limit>
    <Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
    DenyAll
    </Limit>
    <Directory /upload>
    AllowOverwrite on
    <Limit UPLOAD_DIR_ALLOW LIST NLST STOR STOU APPE RETR MKD XMKD SITE_CHMOD SITE_CHGRP STAT MDTM PWD XPWD SIZE CWD XCWD CDUP XCUP SITE >
    AllowAll
    </Limit>
    <Limit UPLOAD_DIR_DENY RNFR RNTO DELE RMD XRMD >
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>

    <Anonymous /home/FTP-shared>
    User ftp
    Group userftp
    AnonRequirePassword on
    MaxClients 3 "The server is full, hosting %m users"
    DisplayLogin welcome.msg
    DisplayFirstChdir .msg
    AllowOverwrite off
    <Limit LOGIN>
    Allow from all
    Deny from all
    </Limit>
    <Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
    AllowAll
    </Limit>
    <Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
    DenyAll
    </Limit>
    <Directory /upload>
    AllowOverwrite on
    <Limit UPLOAD_DIR_ALLOW LIST NLST STOR STOU APPE RETR MKD XMKD STAT MDTM PWD XPWD SIZE CWD XCWD CDUP XCUP SITE >
    AllowAll
    </Limit>
    <Limit UPLOAD_DIR_DENY RNFR RNTO DELE RMD XRMD SITE_CHMOD SITE_CHGRP >
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>

  5. #125
    Join Date
    Jan 2006
    Beans
    4

    Re: HOWTO : Create a FTP server with user access (proftpd)

    Okay I finally got it to work, all along it was my fault because I had firestarter running on Ubuntu and it was blocking the ports to the passive mode.

    Once I enabled the ports by setting inbound allow traffic for ports 60000 and 65000 it worked like a charm!

    so if anybody has this problem where they can't connect because it freezes at the locating files check if you have firestart or some sort of firewall installed on ubuntu.

    *NEW PROBLEM*
    But now i run into the problem where I try transfer something and I get Transfer Failed.
    I'm trying to upload into the upload file but it's not working any ideas??
    Rich.
    Last edited by Snugglej; April 5th, 2006 at 02:08 AM.

  6. #126
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO : Create a FTP server with user access (proftpd)

    hi Snugglej, glad to know that you solved your first problem.

    In which directory do you get this error ?
    If it's /home/FTP-shared, run this command :
    Code:
    sudo chmod 777 /home/FTP-shared
    You have to know that proftpd don't overwrite the system rights and therefore if the system rights are too restrictive you won't be able to upload even if you've well set your FTP server.

  7. #127
    Join Date
    May 2005
    Location
    INDIA
    Beans
    78

    Re: HOWTO : Create a FTP server with user access (proftpd)

    i was trying to add more user accounts with different usernames and passwords using conf files given in this thread. Also i don't know where to give passwords.....i have been trying to configure proftpd for a long time but could get only one account working that too anonymous...now when i tried again to introduce new users i am stuck........

    How do i add more than 1 user with diff username and passwords

    Searched the net ......the proftp guide itself is very confusing....put in a lot of fight with no results.....

    Please help me to configure proftpd

    Code:
    #
    # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    # 
    AuthAliasOnly                   on
    UserAlias Junta userftp
    UserAlias UPLOAD userftp1
    
    
    ServerName			"BATMAN'S DEN"
    ServerType			standalone
    DeferWelcome			on
    
    MultilineRFC2228		on
    DefaultServer			on
    ShowSymlinks			off
    
    TimeoutNoTransfer		40
    TimeoutStalled			100
    TimeoutIdle			40
    
    DisplayLogin                    welcome.msg
    DisplayFirstChdir               .message
    ListOptions                	"-l"
    
    RequireValidShell 		off
    
    TimeoutLogin 20
    
    RootLogin 			off
    
    ExtendedLog 			/var/log/ftp.log
    TransferLog 			/var/log/xferlog
    SystemLog			/var/log/syslog.log
    
    #DenyFilter			\*.*/
    DefaultRoot                       ~
    
    AllowStoreRestart		on
    
    # 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			10
    
    # 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
    
    MaxClientsPerUser 5
    AccessGrantMsg "Welcome to BATMAN'S DEN"
    
    DefaultRoot /home/ftp
    
    #VALID LOGINS
    <Limit LOGIN>
    AllowUser userftp userftp1 
    DenyALL
    </Limit>
    
    
    
    <Directory /home/ftp/Junta/*>
    Umask 022 022
    AllowOverwrite off
    <Limit ALL>
    		Order Allow,Deny
    		AllowUser userftp 
    		Deny ALL
    	</Limit>
    	<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
    	DenyAll
    	</Limit>
    </Directory>
    
    <Directory> /home/ftp/Upload/>
    Umask 022 022
    AllowOverwrite on
     <Limit ALL>
    		Order Allow,Deny
    		AllowUser userftp1 
    		Deny ALL
    	</Limit>
    	<Limit READ RMD DELE>
          	DenyAll
        	</Limit>
    
        	<Limit STOR CWD MKD>
          	AllowAll
        	</Limit>
    </Directory>
    Last edited by animesh; April 11th, 2006 at 09:35 PM.

  8. #128
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO : Create a FTP server with user access (proftpd)

    Your proftpd.conf file looks good, create your new user using the GUI, the password for the user is always the password you set when you created the user, and the username you use to login the FTP server is the alias you set in the proftpd.conf file.
    What meassage error do you get with the user who don't work ?
    Last edited by frodon; April 12th, 2006 at 08:50 AM.

  9. #129
    Join Date
    Nov 2005
    Location
    Södertälje, Sweden
    Beans
    7
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO : Create a FTP server with user access (proftpd)

    Thanks. This was really useful. I finally got everyting to work.

  10. #130
    Join Date
    Feb 2006
    Beans
    10
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO : Create a FTP server with user access (proftpd)

    H all!! this is my firts post here!!

    I am trying to set up my proftpd server according to this howto.
    Because i am newbie in linux world and espesially in proftpd i have some problems.

    I followed the howto everything seems nice but i can not log in to my ftp server,neither from the same machine nor from my win pc.Always the same error
    (530 Login incorrect).

    i have add two user one is userftp the other is student.I follow the same command(sudo useradd userftp -p your_password -d /home/FTP-shared -s /bin/false).I dont want to install gui in my server so is it possible to create these users in a other way??
    One more i dont understand what is the useralias

    Thanks a lot guys!!!!

    AA here is my proftpd.conf file


    # To really apply changes reload proftpd after modifications.
    AllowOverwrite on
    AuthAliasOnly on

    # Choose here the user alias you want !!!!
    UserAlias student userftp

    ServerName "Miltos ftp server"
    ServerType standalone
    DeferWelcome on

    MultilineRFC2228 on
    DefaultServer on
    ShowSymlinks off

    TimeoutNoTransfer 600
    TimeoutStalled 100
    TimeoutIdle 2200

    DisplayFirstChdir .message
    ListOptions "-l"

    RequireValidShell off

    TimeoutLogin 20

    RootLogin off

    # It's better for debug to create log files
    ExtendedLog /var/log/ftp.log
    TransferLog /var/log/xferlog
    SystemLog /var/log/syslog.log

    #DenyFilter \*.*/

    # I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)
    UseFtpUsers off

    # Allow to restart a download
    AllowStoreRestart on

    # Port 21 is the standard FTP port, so don't use it for security reasons (choose here the port you want)
    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 8

    # 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

    PersistentPasswd off

    MaxClients 8
    MaxClientsPerHost 8
    MaxClientsPerUser 8
    MaxHostsPerUser 8

    # Display a message after a successful login
    AccessGrantMsg "welcome !!!"
    # This message is displayed for each access good or not
    ServerIdent on "you're at home"

    # Set /home/FTP-shared directory as home directory
    DefaultRoot /home/FTP-shared

    # Lock all the users in home directory, ***** really important *****
    DefaultRoot ~

    MaxLoginAttempts 5

    #VALID LOGINS
    <Limit LOGIN>
    AllowUser userftp
    DenyALL
    </Limit>

    <Directory /home/FTP-shared>
    Umask 022 022
    AllowOverwrite off
    <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
    DenyAll
    </Limit>
    </Directory>

    <Directory /home/FTP-shared/download/*>
    Umask 022 022
    AllowOverwrite off
    <Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
    DenyAll
    </Limit>
    </Directory>

    <Directory> /home/FTP-shared/upload/>
    Umask 022 022
    AllowOverwrite on
    <Limit READ RMD DELE>
    DenyAll
    </Limit>

    <Limit STOR CWD MKD>
    AllowAll
    </Limit>
    </Directory>
    Last edited by slapper; April 15th, 2006 at 12:26 PM.

Page 13 of 123 FirstFirst ... 311121314152363113 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •