[RESOLVED] cannot see directories in FTP (v.6)

    • [RESOLVED] cannot see directories in FTP (v.6)

      Good morning,

      I have setup my ftp server as follows:-

      - created a new shared folder
      - created an FTP user
      - granted rw rights to the new user (using ACL)
      - changed user shell to bash
      - enabled ftp service
      - added shared folder to ftp shares list
      - saved config

      now, I am able to log into the ftp server using a windows client (smartftp), however, the client dumps me at the Root folder with no visible sub directories.

      how do i either get to my FTP enabled folder (in this instance called "sites") or make it so that the ftp user defaults to the sites folder?

      what am i missing?

      thanks

      Dan
    • Re: cannot see directories in FTP (v.6)

      yep .... log listing from filezilla below (edited!!)

      Source Code

      1. Status: Resolving address of server.XXXXXXXXX.com
      2. Status: Connecting to xxx.xxx.xxx.xxx:21...
      3. Status: Connection established, waiting for welcome message...
      4. Response: 220 ProFTPD 1.3.4a Server (xxx) [::xxx:xxx.xxx.xxx.xxx]
      5. Command: USER daniel
      6. Response: 331 Password required for daniel
      7. Command: PASS ****************
      8. Response: 230-welcome to HOTP FTP Server
      9. Response: 230 User daniel logged in
      10. Command: SYST
      11. Response: 215 UNIX Type: L8
      12. Command: FEAT
      13. Response: 211-Features:
      14. Response: LANG en-US.UTF-8;en-US*
      15. Response: MDTM
      16. Response: MFMT
      17. Response: TVFS
      18. Response: UTF8
      19. Response: MFF modify;UNIX.group;UNIX.mode;
      20. Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
      21. Response: SITE MKDIR
      22. Response: SITE RMDIR
      23. Response: SITE UTIME
      24. Response: SITE SYMLINK
      25. Response: REST STREAM
      26. Response: SIZE
      27. Response: 211 End
      28. Command: OPTS UTF8 ON
      29. Response: 200 UTF8 set to on
      30. Status: Connected
      31. Status: Retrieving directory listing...
      32. Command: PWD
      33. Response: 257 "/" is the current directory
      34. Command: TYPE I
      35. Response: 200 Type set to I
      36. Command: PASV
      37. Response: 227 Entering Passive Mode (109,152,219,85,55,20).
      38. Command: MLSD
      39. Response: 150 Opening ASCII mode data connection for MLSD
      40. Response: 226 Transfer complete
      41. Status: Directory listing successful
      Display All
    • Re: cannot see directories in FTP (v.6)

      Here is the end of a successful connection:

      Source Code

      1. Status: Retrieving directory listing...
      2. Command: PWD
      3. Response: 257 "/" is the current directory
      4. Command: TYPE I
      5. Response: 200 Type set to I
      6. Command: PASV
      7. Response: 227 Entering Passive Mode (192,168,1,29,55,20).
      8. Command: MLSD
      9. Response: 150 Opening ASCII mode data connection for MLSD
      10. Response: 226 Transfer complete
      11. Status: Directory listing successful
      12. Status: Retrieving directory listing...
      13. Command: CWD public
      14. Response: 250 CWD command successful
      15. Command: PWD
      16. Response: 257 "/public" is the current directory
      17. Command: PASV
      18. Response: 227 Entering Passive Mode (192,168,1,29,55,20).
      19. Command: MLSD
      20. Response: 150 Opening ASCII mode data connection for MLSD
      21. Response: 226 Transfer complete
      22. Status: Directory listing successful
      Display All


      Yours did not complete. Please show screenshot of your Settings. Did you follow the guide in the guides section of the forum?
    • Re: cannot see directories in FTP (v.6)

      tekkbebe,

      today out of despair more than anything else I enabled root and anonymous access ... no other changes

      if i log into the ftp from filezilla with username "anonymous" I can see the subdirectories ... but not as my real user..

      does that help diagnose the problem any further?
    • Re: cannot see directories in FTP (v.6)

      Change directory to the level above the sites folder and give me results of this:

      stat sites

      Also, never access a ftp with root user. Take off anonymous too. Undo the acl and then give the user you want to use privileges instead.
      If you follow instructions precisely you should not have issues. Don't know what you did.

      Post copy of this file too /etc/proftpd/proftpd.conf
    • Re: cannot see directories in FTP (v.6)

      stats sites

      root@homeserver:/media/de54d6c1-f9f3-4cd3-a2c3-06d97c9196fe# stat sites
      File: `sites'
      Size: 4096 Blocks: 16 IO Block: 4096 directory
      Device: 97fh/2431d Inode: 540803073 Links: 5
      Access: (2777/drwxrwsrwx) Uid: ( 0/ root) Gid: ( 100/ users)
      Access: 2014-07-06 11:54:37.229019581 +0100
      Modify: 2014-06-24 12:41:32.257216884 +0100
      Change: 2014-07-06 11:54:34.916993637 +0100
      Birth: -
      root@homeserver:/media/de54d6c1-f9f3-4cd3-a2c3-06d97c9196fe#
    • Re: cannot see directories in FTP (v.6)

      Why are we going through this? You need to follow instructions. No ACL... take off any acl check marks and then "save and apply". You need to use privileges.

      In Access Right Management/Shared Folders

      highlight the sites folder by clicking it and then above click on Privileges, not ACL. Remove any ACL check marks. There are 2 buttons, one for Privileges and one for ACL.

      After this disble the server and re-enable it. Then try again.

      You are very close.