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 51 of 123 FirstFirst ... 41495051525361101 ... LastLast
Results 501 to 510 of 1225

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

  1. #501
    Join Date
    Jun 2007
    Beans
    12

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

    Hello,

    Thankyou for your guide,

    Im having this problem, and i dont know what it means:
    (the IPv4 gettaddrinfo 'MAINSERVER' bit)


    And had i mention same thing while trying ot install, so not sure about what the current users/passes are set to as default etc.


  2. #502
    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)

    First post your proftpd.conf and run a synthax check just to be sure that there's no errors in your proftpd.conf file :
    Code:
    proftpd -nd5

  3. #503
    Join Date
    Jun 2007
    Beans
    12

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

    Here is the Config:
    Code:
    # To really apply changes reload proftpd after modifications.
    AllowOverwrite on
    AuthAliasOnly on
    
    # Choose here the user alias you want !!!!
    UserAlias sauron userftp
    
    ServerName			"KALM-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 you may prefer to use another port for security reasons (choose here the port you want)
    Port				1980
    
    # 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>

  4. #504
    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)

    And about the syntax check, does it return errors ?

    Anyway, proftpd don't like complex name with special characters like "-" so i would advice you to choose a simple name instead then test again your server.

  5. #505
    Join Date
    Jun 2007
    Beans
    12

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

    Quote Originally Posted by frodon View Post
    And about the syntax check, does it return errors ?

    Anyway, proftpd don't like complex name with special characters like "-" so i would advice you to choose a simple name instead then test again your server.
    Changed the name so config is now:

    Code:
    # To really apply changes reload proftpd after modifications.
    AllowOverwrite on
    AuthAliasOnly on
    
    # Choose here the user alias you want !!!!
    UserAlias sauron userftp
    
    ServerName			"kalmftp"
    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 you may prefer to use another port for security reasons (choose here the port you want)
    Port				1980
    
    # 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>
    and screenshot of the test u said to do:



    And if i use:

    Code:
    sudo /etc/init.d/proftpd start
    IT comes up with:

    Code:
    david@MAINSERVER:~$ sudo /etc/init.d/proftpd start
    Password:
     * Starting ftp server proftpd                                                   - IPv4 getaddrinfo 'MAINSERVER' error: No address associated with hostname
     - warning: unable to determine IP address of 'MAINSERVER'
     - error: no valid servers configured
     - Fatal: error processing configuration file '/etc/proftpd/proftpd.conf'
                                                                             [fail]
    david@MAINSERVER:~$
    Last edited by seodavid; June 21st, 2007 at 02:08 PM.

  6. #506
    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)

    Ok if "proftpd -nd5" give you erros then that's not worth to try to start the server because it's sure it will fail. I advice you to take the time to read this thread, if you would have read it before posting you would have surely found this post (post #41) where a user already had a similar problem and explained how to solve it, thanks for using the search function :
    http://ubuntuforums.org/showpost.php...&postcount=409

  7. #507
    Join Date
    Jun 2007
    Beans
    12

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

    Quote Originally Posted by frodon View Post
    Ok if "proftpd -nd5" give you erros then that's not worth to try to start the server because it's sure it will fail. I advice you to take the time to read this thread, if you would have read it before posting you would have surely found this post (post #41) where a user already had a similar problem and explained how to solve it, thanks for using the search function :
    http://ubuntuforums.org/showpost.php...&postcount=409
    Thanx for the link, I used the search, just not well enough

    Anyway, proftpd -nd5 now gives:

    Code:
    root@MAINSERVER:~# proftpd -nd5
     - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
     - parsing '/etc/proftpd/proftpd.conf' configuration
     - <Directory /home/FTP-shared>: deferring resolution of path
     - <Directory /home/FTP-shared/download/*>: deferring resolution of path
     - <Directory /home/FTP-shared/upload/>: deferring resolution of path
     - IPv6 getaddrinfo 'MAINSERVER' error: No address associated with hostname
    localhost - 
    localhost - Config for kalmftp:
    localhost - /home/FTP-shared/upload/
    localhost -  Limit
    localhost -   AllowAll
    localhost -  Limit
    localhost -   DenyAll
    localhost -  Umask
    localhost -  DirUmask
    localhost -  AllowOverwrite
    localhost -  AuthAliasOnly
    localhost -  UserAlias
    localhost -  ShowSymlinks
    localhost -  DisplayFirstChdir
    localhost -  ListOptions
    localhost -  RequireValidShell
    localhost -  RootLogin
    localhost -  TransferLog
    localhost -  UseFtpUsers
    localhost -  AllowStoreRestart
    localhost -  MaxClients
    localhost -  MaxClientsPerHost
    localhost -  MaxClientsPerUser
    localhost -  MaxHostsPerUser
    localhost -  AccessGrantMsg
    localhost - /home/FTP-shared/download/*
    localhost -  Limit
    localhost -   DenyAll
    localhost -  Umask
    localhost -  DirUmask
    localhost -  AllowOverwrite
    localhost -  AuthAliasOnly
    localhost -  UserAlias
    localhost -  ShowSymlinks
    localhost -  DisplayFirstChdir
    localhost -  ListOptions
    localhost -  RequireValidShell
    localhost -  RootLogin
    localhost -  TransferLog
    localhost -  UseFtpUsers
    localhost -  AllowStoreRestart
    localhost -  MaxClients
    localhost -  MaxClientsPerHost
    localhost -  MaxClientsPerUser
    localhost -  MaxHostsPerUser
    localhost -  AccessGrantMsg
    localhost - /home/FTP-shared
    localhost -  Limit
    localhost -   DenyAll
    localhost -  Umask
    localhost -  DirUmask
    localhost -  AllowOverwrite
    localhost -  AuthAliasOnly
    localhost -  UserAlias
    localhost -  ShowSymlinks
    localhost -  DisplayFirstChdir
    localhost -  ListOptions
    localhost -  RequireValidShell
    localhost -  RootLogin
    localhost -  TransferLog
    localhost -  UseFtpUsers
    localhost -  AllowStoreRestart
    localhost -  MaxClients
    localhost -  MaxClientsPerHost
    localhost -  MaxClientsPerUser
    localhost -  MaxHostsPerUser
    localhost -  AccessGrantMsg
    localhost - Limit
    localhost -  AllowUser
    localhost -  DenyAll
    localhost - AllowOverwrite
    localhost - AuthAliasOnly
    localhost - UserAlias
    localhost - DeferWelcome
    localhost - DefaultServer
    localhost - ShowSymlinks
    localhost - TimeoutNoTransfer
    localhost - TimeoutStalled
    localhost - TimeoutIdle
    localhost - DisplayFirstChdir
    localhost - ListOptions
    localhost - RequireValidShell
    localhost - TimeoutLogin
    localhost - RootLogin
    localhost - ExtendedLog
    localhost - TransferLog
    localhost - UseFtpUsers
    localhost - AllowStoreRestart
    localhost - UserID
    localhost - UserName
    localhost - GroupID
    localhost - GroupName
    localhost - Umask
    localhost - DirUmask
    localhost - MaxClients
    localhost - MaxClientsPerHost
    localhost - MaxClientsPerUser
    localhost - MaxHostsPerUser
    localhost - AccessGrantMsg
    localhost - ServerIdent
    localhost - DefaultRoot
    localhost - DefaultRoot
    localhost - MaxLoginAttempts
    localhost - mod_ctrls/0.9.4: binding ctrls socket to '/var/run/proftpd/proftpd.sock'
    localhost - deleting existing scoreboard '/var/run/proftpd/proftpd.scoreboard'
    localhost - error setting IPV6_V6ONLY: Protocol not available
    localhost - Failed binding to ::, port 1980: Address already in use
    localhost - Check the ServerType directive to ensure you are configured correctly.
    root@MAINSERVER:~#
    And when u run "sudo /etc/init.d/proftpd start":
    (I did not expect to work)
    Code:
    root@MAINSERVER:~# sudo /etc/init.d/proftpd start
     * Starting ftp server proftpd                                                                                                                    - IPv6 getaddrinfo 'MAINSERVER' error: No address associated with hostname
                                                                                                                                              [ OK ]
    root@MAINSERVER:~#
    the "IPv6 getaddrinfo 'MAINSERVER' error: No address associated with hostname" bit does not seem right :s

    Thanx for your help so far btw.

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

    From what i read on the proftpd forum the IPv6 error don't prevent the FTP server to work properly (i have it as well because i use IPv4 address) so you can just forget this one, you get this error because you don't use IPv6 address, anyway if you want to solve this error message read this post :
    http://ubuntuforums.org/showpost.php...68&postcount=2

  9. #509
    Join Date
    Mar 2007
    Location
    Stockholm, Schweden
    Beans
    67
    Distro
    Edubuntu 6.10 Edgy

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

    Newb question

    Is there a FTP server for linux that you can share other HDDs/directories? When I had a Windows server running I used the old trustworthy FTP server G6 and in that you could just share whatever directory you wanted too and make links so you could see all the shared dirs in the root dir. Is this possible with some linux FTP server?

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

    It is exactly what you do here, just mount the directoty/hdd you want in the dowload or upload directory and you are all done
    Look in the first post the mount command details are given

Page 51 of 123 FirstFirst ... 41495051525361101 ... 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
  •