Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
    
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

1 Answer 1

up vote 0 down vote accepted

what I would do then is

in the proftpd.conf use the HideNoAccess directive

http://www.proftpd.org/docs/directives/linked/config_ref_HideNoAccess.html

if you want to hide it from everybody

<Directory ~/public_html/cms>
  HideNoAccess on
</Directory>

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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