Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ownership and permission for root folder #1169

Closed
thomaslvz opened this issue May 3, 2024 · 3 comments
Closed

Ownership and permission for root folder #1169

thomaslvz opened this issue May 3, 2024 · 3 comments

Comments

@thomaslvz
Copy link

thomaslvz commented May 3, 2024

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.

@hestiacn
Copy link

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

@thomaslvz
Copy link
Author

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

@hestiacn
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants