NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Anonymous's avatar
Anonymous
Aug 28, 2016

FTP 'Home Folder' Directory access for all?

I've recently factory reset a RN316 on OS 6.5.1 and I've enabled FTP access on OS 6.5.1 using this with Authentication Mode as 'user', however it does not set location of the FTP user home folder correctly, instead it gives access to ALL users home folders on the NAS.

 

I log in via FTP with a standard 'user' u/p, goes to /home/ directory by default, and lists of all the user home folders. It should only go to the users' login directory, not /home/ for all users,

 

Username: Test

Password: Test

using an FTP client (FileZilla), it logs into the /home/ and lists ALL the users directories as sub-folders + files & subfolders therein... 

 

all home user folders are listed as 'drwxr-xr-x 1 admin admin', so if FTP'ing as admin accessing then would make sense, but I'm using a non-admin user FTP login (its just a plain user) and I have access to all the other users folders?

 

I've looked for the FTP sertings in the Home Folders setion as per here under the "Access" table (ie you can Enable FTP on Home Folders, but there are NO settings on how FTP behaves in this section)

 

Am I missing something here?

 

ps I've also enabled 'Enable FTP Server Log Transfer' yet it does not log anything...

 

21 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous

    Has anyone used TFTP Server - can it be used with Home Folders? is it configurable (IP black/white lists, retry attempt count, link IP per user account, etc)

     

     

    • Anonymous's avatar
      Anonymous

      I found the issue with ProFTPD giving full access to ALL the user home folders....

       

      This is from a factory reset of OS 6.5.1 and by default (when FTP is enabled), ProFTPD has the /etc/frontview/proftpd/User.conf set as follows:

       

      DefaultRoot /var/ftp

      RequireValidShell off

      Include /etc/frontview/proftpd/Shares.conf

       

      It should have been (to give the logged on user only their home folder access):

      DefaultRoot ~

       

      However, FTP access on normal Shares is broken when Home Folder FTP access is enabled...either way with DefaultRoot ~ and DefaultRoot /var/ftp (ie you can't access Home Folder AND normal Shares when FTP is enabled for both, its either 1 or the other and you have to disable Home Folder FTP access to access Normal Share FTP access) - this is not a very good implementation of FTP for OS 6.5.1 :(

      (I haven't found a workaround/fix for this yet, since Idk how Shares.conf is managed for the normal shares, and why the Home (DefaultRoot) would not allow other shares when enabled through the UI...)

       

      There is also a possible issue with changing FTP settings (enabled/disabling FTP shares, etc.), you have to turn off/on the FTP service from the System -> Seting UI to update the settings....if this is the case, its a big pain in the *** when making changes and not known, otherwise an inconvineince and poor way to manage the UI FTP settings.

      • Anonymous's avatar
        Anonymous

        Is there any documentation on the way Netgear ReadyNAS OS 6.5.1 FTP works?

         

        I wanted to clarify, specifically, of FTPS = FTP via SSL-TLS?

         

        I also wanted to clarify if that is different to SFTP?

         

         

        I've found the following circumstances, and just wanted some clarity on it:

         

        1) on the NAS-FrontView, I've enabled FTP with 'Enabled Forced FTPS'

         

        2) I've enabled FTP access on the Home Folders

         

        3) I then use Filezilla, with a non admin username and it logs in correctly to the correct folder, working fine, etc.

        Status: Connection established, waiting for welcome message...
        Status: Initializing TLS...
        Status: Verifying certificate...
        Status: TLS connection established.
        Status: Logged in
        Status: Retrieving directory listing...
        Status: Directory listing of "/" successful

         

        ...and for user account SSH enabled:

        Status: Connection established, waiting for welcome message...
        Status: Initializing TLS...
        Status: Verifying certificate...
        Status: TLS connection established.
        Status: Logged in
        Status: Retrieving directory listing...
        Status: Server sent passive reply with unroutable address. Using server address instead.
        Status: Directory listing of "/" successful

         

        (note: idk where the welcome.msg file should be stored for the NAS, the default proftpd locations don't work :()

         

        4) Using Filezilla with the admin account works fine too - it logs into /home/admin/ 

         

        5) But then, I then try to mount a share on a client machine using a SFTP mount point, the non-admin username fails and admin username accesses the whole NAS like root access (/)....

         

        6) I enable SSH -> 'allow shell access' on each user account, and the client machine SFTP mount point works fine per user account and in the correct /home/ folder....and I beleive admin SFTP also mounts to /home/admin/ 

         

         

        I'm  a little confused - FileZilla uses TLS to access the correct home folder without enabling SSH on the user account on the NAS, yet mouting the share on a client machine using SFTP doesn't work until I enable SSH on the user account....admin works either way except it accesses as root via SFTP mount on the client machine...unless I enable SSH on a user account, then admin works like a normal user account (ie /home/admin/ is accessed).

         

         

         

         

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More