[GH-ISSUE #1169] Ownership and permission for root folder #751

Closed
opened 2026-03-02 16:01:12 +03:00 by kerem · 3 comments
Owner

Originally created by @thomaslvz on GitHub (May 3, 2024).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1169

Hi all,
I have read a lot of issues here and it is not clear to me, so I make a new one

My root path is set to :
$root_path = $_SERVER['DOCUMENT_ROOT'].'files';

and i want to know what ownership and permission settings should be granted for my folder files. It is currently set to

drw-rw---- tinyfilemanager www-data

But this doesnt work, and I dont want to set it to 777 (even though this makes it work) to keep things clean.

Originally created by @thomaslvz on GitHub (May 3, 2024). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1169 Hi all, I have read a lot of issues here and it is not clear to me, so I make a new one My root path is set to : `$root_path = $_SERVER['DOCUMENT_ROOT'].'files';` and i want to know what ownership and permission settings should be granted for my folder `files`. It is currently set to `drw-rw---- tinyfilemanager www-data` But this doesnt work, and I dont want to set it to `777` (even though this makes it work) to keep things clean.
kerem closed this issue 2026-03-02 16:01:12 +03:00
Author
Owner

@hestiacn commented on GitHub (May 3, 2024):

Just in the root directory of your web page. There is no point in setting this up. Please refer to: chmod 644 /home/admin/web/Example.com/public_html

<!-- gh-comment-id:2093759367 --> @hestiacn commented on GitHub (May 3, 2024): Just in the root directory of your web page. There is no point in setting this up. Please refer to: chmod 644 /home/admin/web/Example.com/public_html
Author
Owner

@thomaslvz commented on GitHub (May 14, 2024):

Thanks for answering.
What you say does not seem right to me.
My web page is within /var/www/tinyfilemanager, my root directory is set to /var/www/tinyfilemanager/files.
If I do chmod -R 644 /var/www/tinyfilemanager/files my files are not visible from my web browser.
I did chmod -R 755 /var/www/tinyfilemanager/files , this seems to work now

<!-- gh-comment-id:2110417704 --> @thomaslvz commented on GitHub (May 14, 2024): Thanks for answering. What you say does not seem right to me. My web page is within `/var/www/tinyfilemanager`, my root directory is set to `/var/www/tinyfilemanager/files`. If I do `chmod -R 644 /var/www/tinyfilemanager/files` my files are not visible from my web browser. I did `chmod -R 755 /var/www/tinyfilemanager/files` , this seems to work now
Author
Owner

@hestiacn commented on GitHub (May 14, 2024):

In fact, /tinyfilemanager can be set to lindex.php and it can become the default access file by directly opening the domain name.

<!-- gh-comment-id:2110609366 --> @hestiacn commented on GitHub (May 14, 2024): In fact, /tinyfilemanager can be set to lindex.php and it can become the default access file by directly opening the domain name.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#751
No description provided.