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 54 of 123 FirstFirst ... 444525354555664104 ... LastLast
Results 531 to 540 of 1225

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

  1. #531
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,148
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    Quote Originally Posted by rev0 View Post
    I have read through all the posts here, read some 3rd party sites, and formatted my ubuntu box twice to try to get SSL/TLS secure ftp working.

    My ftp works fine without encryption, however with encryption I get these errors.

    Code:
    WinSock 2.0 -- OpenSSL 0.9.8b 04 May 2006
    [R] Connecting to 192.168.1.102 -> IP=192.168.1.102 PORT=21
    [R] Connected to 192.168.1.102
    [R] 220 ProFTPD 1.3.0 Server (Restricted-Access) [::ffff:192.168.1.102]
    [R] AUTH TLS
    [R] 234 AUTH TLS successful
    [R] Connected. Negotiating TLSv1 session..
    [R] error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
    [R] Failed TLSv1 negotiation, disconnected
    [R] Connection failed (Connection closed by client)
    [R] Delaying for 120 seconds before reconnect attempt #1
    Not quite sure...I have noticed other uses have had this similar problem, and any help would be much appreciated. Thank you in advance.
    if you notice the handshake is attempting sslv3 and your server is using TLSv1, I am guessing the client you're using isn't using the correct encryption handshake protocol BUT with that said, I couldn't get TLS to work either. Kind of sucks if you ask me. Why don't you just tunnel in with SSH, that way all your ftp stuff will be encrypted within the SSH tunnel. I only have 1 port open, and that's for ssh and even that has Public/Private Key pair for authentification, so it's very secure. I then tunnel my x11vnc, my ftp, my mythweb all thru that tunnel.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  2. #532
    Join Date
    Jul 2007
    Beans
    6

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

    I'm having trouble adding users.

    I understand that multiple people can use the original user name, but I want some users to have a different home directory.

    Can someone please explain how to successfully add users and be able to connect through smartftp

    Thanks

  3. #533
    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)

    You should find some examples in this thread, some users have posted configurations with several users and different home directory.

  4. #534
    Join Date
    Apr 2007
    Beans
    4

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

    Hi
    I have created proftp server on RHES, and it works fine, thanks to this post but I have some complaints when users try to log in. They say it is very slow when u try to log in and also when u browse the folders, some say it took them 2 min to log in. Download speed is good. Here is my profto conf file


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

    # Choose here the user alias you want !!!!
    UserAlias user userftp
    UserAlias admins administrator
    UserAlias admin spejs

    ServerName "Net Cable"
    ServerType standalone
    DeferWelcome on

    MasqueradeAddress 89.185.223.5
    #PassivePorts 50000 65534

    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 100

    # 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 1000
    MaxClientsPerHost 1000
    MaxClientsPerUser 1000
    MaxHostsPerUser 1000

    # Display a message after a successful login
    AccessGrantMsg "welcome !!!"
    # This message is displayed for each access good or not
    ServerIdent on "NetCable's Freeserver"

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

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

    MaxLoginAttempts 5

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

    <Directory /ftproot/>
    Umask 022 022
    AllowOverwrite off

    <Limit ALL>
    Order Allow,Deny
    AllowUser userftp
    AllowUser spejs
    Deny ALL
    </Limit>


    <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
    Order Allow,Deny
    AllowUser spejs
    DenyAll
    </Limit>
    </Directory>

    <Directory /ftproot/*>
    Umask 022 022
    AllowOverwrite off
    <Limit ALL>
    Order Allow,Deny
    AllowUser userftp
    AllowUser spejs
    Deny ALL
    </Limit>

    <Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
    Order Allow,Deny
    AllowUser spejs
    DenyAll
    </Limit>
    </Directory>

    <Directory> /ftproot/upload/>
    Umask 022 022
    AllowOverwrite on


    <Limit ALL>
    Order Allow,Deny
    AllowUser spejs
    # AllowUser userftp
    Deny ALL
    </Limit>

    <Limit READ RMD DELE>
    DenyAll
    </Limit>

    <Limit STOR CWD MKD>
    AllowAll
    </Limit>
    </Directory>

    <Directory /admin/>
    Umask 022 022
    AllowOverwrite off

    <Limit ALL>
    Order Allow,Deny
    AllowUser administrator
    Deny ALL
    </Limit>


    <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
    Order Allow,Deny
    AllowUser administrator
    DenyAll

  5. #535
    Join Date
    Jul 2007
    Beans
    4

    Run proftpd as non root

    I have successfully installed proftpd and run it as root. It works fine when I connect to it from inside or outside my local network.
    I want to change the permissions so that the server runs as non root. However when I run it, I get the following error.

    anoopk@app1:~$ sudo -u ftpuser service proftpd start
    open: Permission denied
    * Starting ftp server proftpd - notice: unable to bind to Unix domain socket at '/var/run/proftpd/test.sock': Permission denied
    - notice: unable to listen to local socket: Address already in use
    app1.home.net - 127.0.1.1:75 masquerading as 75.58.60.212
    app1.home.net - PRIVS_ROOT: unable to seteuid(): Operation not permitted
    app1.home.net - PRIVS_ROOT: unable to setegid(): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
    app1.home.net - mod_delay/0.5: error opening DelayTable '/var/run/proftpd/proftpd.delay': No such file or directory
    app1.home.net - PRIVS_ROOT: unable to seteuid(): Operation not permitted
    app1.home.net - PRIVS_ROOT: unable to setegid(): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
    app1.home.net - unable to set daemon groups: Operation not permitted
    app1.home.net - PRIVS_ROOT: unable to seteuid(): Operation not permitted
    app1.home.net - PRIVS_ROOT: unable to setegid(): Operation not permitted
    app1.home.net - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
    open: Permission denied

    I have attached my conf file for the configuration details.

    I have also tried adding the ip to the iptables
    sudo iptables -A INPUT -p tcp -m tcp --dport 75 -j ACCEPT


    I have searched on google and havent found anything to point me in the right direction, not sure if I missed anything in the forums either.
    Any help will be greatly appreciated.
    Thanks in advance,
    Attached Files Attached Files

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

    Re: Run proftpd as non root

    Quote Originally Posted by anpk View Post
    I want to change the permissions so that the server runs as non root.
    Why such a need ? It makes your computer more secure to require root rights to run or modify services

  7. #537
    Join Date
    Jul 2007
    Beans
    12

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

    hi, i'm new to ubuntu 6.10 and i'm trying to setup an ftp on it and after I finish the setup I receive this error:

    ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.

    Setting up gproftpd (8.2.6-1) 3

    here my config file

    #
    # /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    #

    # Includes DSO modules
    Include /etc/proftpd/modules.conf

    ServerName "Debian"
    ServerType inetd
    DeferWelcome off

    MultilineRFC2228 on
    DefaultServer on
    ShowSymlinks on

    TimeoutNoTransfer 600
    TimeoutStalled 600
    TimeoutIdle 1200

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

    DenyFilter \*.*/

    # Port 21 is the standard FTP port.
    Port 21

    # In some cases you have to specify passive ports range to by-pass
    # firewall limitations. Ephemeral ports can be used for that, but
    # feel free to use a more narrow range.
    # PassivePorts 49152 65534

    # 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 proftpd
    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

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

    # Be warned: use of this directive impacts CPU average load!
    #
    # Uncomment this if you like to see progress and transfer rate with ftpwho
    # in downloads. That is not needed for uploads rates.
    # UseSendFile off

    TransferLog /var/log/proftpd/xferlog
    SystemLog /var/log/proftpd/proftpd.log

    <IfModule mod_tls.c>
    TLSEngine off
    </IfModule>

    <IfModule mod_quota.c>
    QuotaEngine on
    </IfModule>

    <IfModule mod_ratio.c>
    Ratios on
    </IfModule>


    # Delay engine reduces impact of the so-called Timing Attack described in
    # http://security.lss.hr/index.php?pag...LSS-2004-10-02
    # It is on by default.
    <IfModule mod_delay.c>
    DelayEngine on
    </IfModule>

    <IfModule mod_ctrls.c>
    ControlsEngine on
    ControlsMaxClients 2
    ControlsLog /var/log/proftpd/controls.log
    ControlsInterval 5
    ControlsSocket /var/run/proftpd/proftpd.sock
    </IfModule>

    <IfModule mod_ctrls_admin.c>
    AdminControlsEngine on
    </IfModule>

    # 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>

    thx all for your help

  8. #538
    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)

    The guide is for a standalone server no support is provided for the inetd mode. The line "ServerType inetd" shows that you are using the inetd mode.

  9. #539
    Join Date
    Jul 2007
    Beans
    12

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

    I try using the standalone also & still giving me an error!

  10. #540
    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)

    Then please give the error message, i can't guess what the problem is without error log.

Page 54 of 123 FirstFirst ... 444525354555664104 ... 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
  •