What's the correct permission setting on the suggested "files" directory under drupal and the content under that directory? I want to only allow authorized users to access the files under that directory.

I tried to play with various permissions, it either blocks out anyone for that directory, or let the worldwide to access it.

For example, say I have:
drupal_install_dir/files/my_files.txt

How should I set up permission on "files" and "my_files.txt" so that ONLY users who already logined in can access "my_files.txt"?

thanks for advise...

Comments

Anonymous’s picture

switch it from "public" to "private" does not help either. it seems I have to open "files" directory. Where can I store some private media(video,music) files under drupal 5.x? thanks again.

vm’s picture

to use private files the folder must be stored above the root doc. than you need the absolute path to the private folder added to adminster -> settings -> file system settings

the folder needs 777 permissions 775 may work as well.

Anonymous’s picture

thank you!