Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Debian Linux 6.0 server with webmin/usermin running Apache & ProFtp

I need my default domain ftp user to access all the files under public_html directory except CMS folder.

I want to give web designer full access for layout, SEO optimisation etc, but not physical access on my CMS folder.

I have tried to restrict directory using chmod 770. This done the job but also denied http access on this directory from my browser.

My question is :

  1. is this the right method? (I also read about using <directory> settings on proFtp configuration files)
  2. Can I use chmod 770 and add somehow apache/www user to access all the content inside cms?
share|improve this question

closed as off-topic by HopelessN00b Apr 3 '15 at 13:40

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

can your cms be configured to be in a different Directory? that isn't under the docroot? are you authenticating with system(/etc/password) users? Do you just want to hide /prevent CMS from all users via FTP or only some? – Doon Mar 4 '13 at 12:26
Hello, CMS must be under docroot. By default webmin creates a user with full access under this domain/sub dirs etc. I want to restrict this user. Thank you for your reply – Vangelis Mar 4 '13 at 13:42
up vote 0 down vote accepted

what I would do then is

in the proftpd.conf use the HideNoAccess directive

if you want to hide it from everybody

<Directory ~/public_html/cms>
  HideNoAccess on

will make it so that directory is hidden for everybody, or if you only want it for a single user, you can put the full path to the directory in there, and it will hide/block access to it.

share|improve this answer
Thank you Doon! – Vangelis Mar 6 '13 at 12:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.