FTP Limiting Access on Folder

Sep 2
10:52

2015

Rossy Guide

Rossy Guide

  • Share this article on Facebook
  • Share this article on Twitter
  • Share this article on Linkedin

You are using a shared webserver on which you can manage FTP accounts. Then, how to set access restrictions a folder as follows:

mediaimage

The file is:

www.somepage. com/ftp/import/

 

which is named someData.txt

Why is it that you can access this file by hitting:

www.somepage. com/ftp/import/someData.txt

 

If the file is just lying there,FTP Limiting Access on Folder Articles why make an FTP user with login/password to access it. If you check the file restrictions, public has read/write/execute/sticky.

You probably need to change the permissions on that file or the folder it is in to 770 which will prevent anyone except the user and group from viewing, writing or executing commands on it. It sounds like the permissions are currently set to 777 which allows anyone to do anything. You can set access restrictions through command line/terminal with chmod.

Try using chmod to change the permissions on your files/folders on the server through command line/terminal. It seems like your permissions are currently set to 777 which allows anyone to do anything.

  • 7 allow user to read/write/execute
  • 7 allow group to read/write/execute
  • 7 allow world to read/write/execute

You would probably want to use something like 770 which will prevent anyone except the user and groups doing anything to the files and folders. These permissions are pretty important for security as you could be the victim of an attack if they aren't set properly.