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 11 of 123 FirstFirst ... 9101112132161111 ... LastLast
Results 101 to 110 of 1225

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

  1. #101
    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)

    Be careful that your server name should be as simple as possible, some characters may create some problems, is it the whole configuration file ?

  2. #102
    Join Date
    Jan 2005
    Location
    Oklahoma City, OK
    Beans
    53
    Distro
    Ubuntu 6.06

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

    Hello frodon,

    First off - as everyone has pointed out - excellent howto. I at first tried the gproftpd gui option, but wasnt all that impressed and decided to go the other option. After some tinkering, reading, and time - I am successfully connecting to my home box from work right now. My only problem is that I'm having trouble with PASV. I can't seem to get it to work. Is there anything special you've seen to getting PASV to work? I specified PassivePorts 60000 60049 in my proftpd.conf and forwarded those ports to my internal IP on my router. I'm also masquerading my external IP.

    Like I said, all works fine in active mode, but I'd like to get passive mode working properly. Any ideas would be much appreciated. Thanks!

  3. #103
    Join Date
    Sep 2005
    Location
    New York
    Beans
    166
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by frodon
    Be careful that your server name should be as simple as possible, some characters may create some problems, is it the whole configuration file ?
    I'm jammed here.

    I'll be upfront, I have two dyndns configurations. One which is sub'd off my main web host, and another with gotdns.com just in case.

    I'm only using the masqueradeaddress as the one i'm technically using with filezilla, which is only specified as the main web host address.

    On the lan, by IP address I don't even need to worry about passive mode, goes right on through. Logs in just the way I want it to for each user.

    When trying from the LAN through the web address, I get:

    Response: 500 Illegal PORT command
    Error: Could not retrieve directory listing

    When trying from LAN to web address using PASV:

    Response: 200 Type set to A
    Command: LIST
    Error: Disconnected from server
    Error: Could not retrieve directory listing
    Error: Timeout detected!

    FTP from win32 command prompt results in a 425 error, when going through web address and typing "ls" as usual. So it leads me to believe something is silly with the PASV mode set up. The specified port ranges are opened on the router by the way.

    I must have made a mess somewhere, but I'm running out of ideas. I included my proftpd.conf file which I'm sure will seem a bit sloppy.

    I'm hoping someone will show me the light here. I really should be able to use the web address to do this, whether inside my LAN or not.



    edit: I've tested inbound works perfectly fine, I guess I'll just deal with the provided setup as is.
    Attached Files Attached Files
    Last edited by trinaryouroboros; February 20th, 2006 at 05:44 AM.
    -Shawn Q {64-bit...like Atari Jaguar?}
    MSI K9A2 Platinum 790FX;Phenom 9600;G.Skill 4x2GB DDR2 1066;2x Radeon HD 4800 series;Antec TruePower Quattro TPQ-1000
    "The road to hell is paved with good intentions."-Wyrm by Mark Fabi

  4. #104
    Join Date
    Apr 2005
    Location
    Canada
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Hi,
    My FTP server is up and running.
    I can access it from outside and I can browse the folders.
    I tried to mount a folder in my /home/FTP-shared/download but i've got the error
    Code:
    $ sudo mount -o Photos /home/FTP-shared/download/
    mount: can't find /home/FTP-shared/download in /etc/fstab or /etc/mtab
    Then I created a folder
    Code:
    $ sudo mkdir /home/FTP-shared/download/Photos
    and I created a permanent entry in my fstab as proposed in this howto.
    I can browse this folder, but I'm unable to download a file from my ftp server....

    Any help ??

  5. #105
    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)

    Is it a typo ? the command is :
    Code:
    sudo mount -o bind Photo_directory_path /home/FTP-shared/download
    I think it's not needed to create a Photos directory under download if what you want is only to mount your photo directory in /home/FTP-shared/download.

    If you're still not able to download in this directory post your proftpd.conf file and check that you put the good rights on this directory because proftpd won't overwrite the system rights you set on this directory.

  6. #106
    Join Date
    Dec 2005
    Location
    Portugal
    Beans
    2

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

    need some help ...

    i have 2 diferent users to get in 2 diferent directories

    "/home/shared"

    and other to

    "/online/forum/"

    the problem is that both of then enter in the same directory ...

    user1 i created it like
    useradd user1 -p passuser1 -d /home/shared -s /bin/false

    and user 2
    useradd user2 -p passuser2 -d /online/forum -s /bin/false

    config lines:
    Code:
    ...
    ...
    ...
    # Set /home/FTP-shared directory as home directory
    # DefaultRoot /home/FTP-shared
    DefaultRoot ~
    
    # Lock all the users in home directory, ***** really important *****
    DefaultRoot ~
    ...
    ...
    ...
    <Directory /home/shared/*>
    Umask 022 022
    AllowOverwrite on
            AllowUser user1
    </Directory>
    
    <Directory /online/forum/>
    Umask 022 022
    AllowOverwrite on
            AllowAll
    </Directory>
    so 1 want 1 user to access both directorys and the other only to 1 ... if possible or each user for each directory ...

    can anyone help me ?

  7. #107
    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 command DefaultRoot ~ define the user home directory as home directory for the FTP, so each user will be locked in his home directory thanks to this command, so the way you use sounds good but i never used it so i don't know if it works but it should.

    Add a section like that before setting the directories :
    Code:
    #VALID LOGINS
    <Limit LOGIN>
    AllowUser user1
    AllowUser user2
    DenyALL
    </Limit>
    Thus you will be sure to allow only your 2 users to login.
    Try to modify your directory section like that :
    Code:
    <Directory /home/shared/*>
    Umask 022 022
    AllowOverwrite on
           <Limit ALL>
    		Order Allow,Deny
    		AllowUser user1
    		Deny ALL
    	</Limit>
    
           <Limit READ RMD DELE>
          	DenyAll
        	</Limit>
    
        	<Limit STOR CWD MKD>
          	AllowAll
        	</Limit>
    </Directory>
    
    <Directory /online/forum/>
    Umask 022 022
    AllowOverwrite on
           <Limit ALL>
    		Order Allow,Deny
    		AllowUser user2
    		Deny ALL
    	</Limit>
    
           <Limit READ RMD DELE>
          	DenyAll
        	</Limit>
    
        	<Limit STOR CWD MKD>
          	AllowAll
        	</Limit>
    </Directory>
    </Directory>
    I assume that your directories are upload/download directories and therefore you gave 777 rights to them.

    However, you can use also the way i gave in this post and then keep the guide spirit with the home/FTP-shared home directory for all the users and allow the user you want to enter in the directory you want. After that you can mount the directory you want in home/FTP-shared/upload, create more directories if you need.

    Let me know if it works, i'm curious.

  8. #108
    Join Date
    Dec 2005
    Location
    Portugal
    Beans
    2

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

    ok so far so good ... i've changed something ... and now directory's work fine each user can enter in diferent directory.

    user1 -> directory1
    user2 -> directory2

    the changes:

    the Valid logins section was already there so no changes there

    Code:
    <Directory /home/shared/*>
    Umask 022 022
    AllowOverwrite on
           	AllowAll
    </Directory>
    
    <Directory /online/forum/>
    Umask 022 022
    AllowOverwrite on
          	AllowAll
    </Directory>
    and now they both enter in diferent directory's
    1º move ok

    now the 2º fase ... i was thinking arround and it seems to be impossible to 1 of those users to access diferent directory's since i've defined when creating them their "home" directory, since in config i'm forcing them to be in their home directory it's gome be a bit hard ...

  9. #109
    Join Date
    Jan 2005
    Beans
    199

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

    Why not just install SSH server ?

  10. #110
    Join Date
    Jan 2006
    Location
    New Jersey, United States
    Beans
    303
    Distro
    Ubuntu 6.06

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

    What am i doing wrong

    - no such group 'nobody'
    - Fatal: Group: Unknown group 'nobody'. on line 20 of '/etc/proftpd.conf'

    what group should it be?

Page 11 of 123 FirstFirst ... 9101112132161111 ... 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
  •