I take added the directory '/' and enabled the the role 'anonymous user'.

When I try to open up an image past using the url http://example.com/system/files/image.jpeg, I get an 'access denied' for 'system/files/image.jpeg'.

Whatever ideas?

Comments

rida.fatima's picture

Make sure your directory has the required permissions, if yous are using linux go with 777 or 775 and see if you tin can view the images at present

Chipie's picture

Thank you for the prompt reply.

The permissions are ready correctly.

When I login to the site, I can see the image. Only bearding tin can't meet information technology.

rida.fatima's picture

hmm...and so accept you set up the permissions for the anonymous user to see the prototype at admin/people/permissions ?

Chipie's picture

I accept enabled the following permissions for anonymous user under permissions:

File entity:
Featherbed file access control
Epitome: Download any files
View individual files

Private files download permission:
Featherbed Private files download permission

Did I miss something?

Chipie's picture

I have enabled the post-obit permissions for anonymous user under permissions:

File entity:
Featherbed file access command
Epitome: Download any files
View private files

Private files download permission:
Bypass Private files download permission

Did I miss something?

zanonmark's picture

Hi Chipie,

first, I think yous should not "bypass Individual files download permission" for anonymous users: unless you know what you are doing, it generally poses security threats.

Please report me:
* the full schema of your Private files download permission directories;
* the path of your media directory.

Thanks,
Marco

zanonmark's picture

Assigned: Unassigned » zanonmark
Status: Agile » Postponed (maintainer needs more info)

ktrev's picture

Hi,

I am having the aforementioned issue.
I want anonymous users to access i directory called 'assignments' in the individual folder
The private binder has permission 777 recursively.
In the modules configuration page, I have added /assignments and enabled role anonymous users.
But I am getting access denied, for the path http://sitename/system/files/assignments/Lab6_2_4.txt, for bearding users.

(Delight inform, if you lot demand more information)
Thanks in advance :)

chrisgross's picture

jm_drupal's picture

Howdy
I am getting 'Access denied' error msg for Admin users while trying to download private files.
Few settings:
Drupal version vii.26
admin/config/media/file-organisation
private file arrangement path: /var/www/sitename/sites/default/private
Default download method set to : Individual local files served past Drupal.

admin/config/media/private-files
folder_name -> [Logged in Users] selected

admin/config/media/individual-files-download-permission
Default was: /var/www/sitename/sites/default/private => Added "/private_folder_name" in the box
/private_folder_name -> enabled the user and administrator role
Binder permission ready to 775 recursively

.htaccess within the private folder:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Deny from all
Options None
Options +FollowSymLink

Private file URL, eg.: http://sitename/system/files/private-folder-name/filename.pdf

Ambassador has full permissions to the site. Even so i become 'Access denied' when try to view/download whatever private files.

Any ideas? Cheers for your time in advance.

zanonmark's picture

How-do-you-do jm_drupal, and sorry for the late reply,

"private_folder_name" and "private-folder-proper name" are two different paths: are you certain there's no mispelling in the test you made?

Thanks,
Marco

zanonmark's picture

Hello ktrev, lamentable for the belatedly respond,

nevertheless getting that fault, fifty-fifty with the latest version? and simply with bearding users?

Thank you,
Marco

zanonmark's picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Miao1994's picture

Hullo
I'thou reporting the following. I need that an anonymous user can download a file (place in a subdirectory of the private file arrangement) fastened to a node, having the specific link. So, creating the node with private file field the link is like this (of course):
https://xxxxx/system/files/folder1/folder2/filename1.pdf
Then I did that:
ane-Add that path /folder1/folder2 to private file download permission config, setting user anonymous and role bearding;
upshot: access denied
two-Give permission to anonymous user to create/edit the content type attached to the file;
result: access denied
3-Requite "Bypass Private files download permission" to anonymous user;
result: access denied (log: Bearding non verified organization/files/folder1/folder2/filename1.pdf)
iv-For more info, examination download for other private file similar: https:// xxxxx /organization/files/folder1/folder2/filename2.pdf (in this case uploaded by IMCE, serving private file disabled);
effect:admission granted (log: User 0 (-) granted permission to download uri "individual:// folder1/folder2/filename2.pdf ".
Revoking step three, footstep 4 failed: access denied. Seems the module control access to private file just non those attached to a node.
Adding "Bypass to Enable to make this module ignore the above path", as expected, seem non have effect.
Have advices?
Thank you