[GH-ISSUE #1060] How to disable authentication for users #677

Closed
opened 2026-03-02 16:00:45 +03:00 by kerem · 4 comments
Owner

Originally created by @Gilbertdelyon on GitHub (Jun 22, 2023).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1060

In config.php we can set $use_auth = false; or $use_auth = true; .
When set to "false" everybody has full rights.

but our need would be a little bit finer grained, as follows:

  • without authentication everybody can only read,
  • only admin needs athentication
    Please, is there a way to set config.php in this way?
Originally created by @Gilbertdelyon on GitHub (Jun 22, 2023). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1060 In `config.php` we can set `$use_auth = false;` or `$use_auth = true; `. When set to "false" everybody has full rights. but our need would be a little bit finer grained, as follows: - without authentication everybody can only read, - only admin needs athentication Please, is there a way to set `config.php` in this way?
kerem closed this issue 2026-03-02 16:00:45 +03:00
Author
Owner

@prasathmani commented on GitHub (Jun 22, 2023):

set $use_auth = false; and $global_readonly = true;

<!-- gh-comment-id:1603282071 --> @prasathmani commented on GitHub (Jun 22, 2023): set `$use_auth = false;` and `$global_readonly = true;`
Author
Owner

@Gilbertdelyon commented on GitHub (Jun 22, 2023):

@prasathmani
Thank you for prompt answer.

set $use_auth = false; and $global_readonly = true;

It doesn't work as expected:

  • The good point: without authentication everybody can only read,
  • The bad point: admin cannot log and consequently he can only read, while I would like him to get all the rights
<!-- gh-comment-id:1603300623 --> @Gilbertdelyon commented on GitHub (Jun 22, 2023): @prasathmani Thank you for prompt answer. > set $use_auth = false; and $global_readonly = true; It doesn't work as expected: - The good point: without authentication everybody can only read, - The bad point: admin cannot log and consequently he can only read, while I would like him to get all the rights
Author
Owner

@prasathmani commented on GitHub (Jun 22, 2023):

for admin use duplicate tfm with auth enabled. #825

<!-- gh-comment-id:1603323649 --> @prasathmani commented on GitHub (Jun 22, 2023): for admin use duplicate tfm with auth enabled. #825
Author
Owner

@Gilbertdelyon commented on GitHub (Jun 22, 2023):

Thank you,
This is what I did in the meantime. It works, but I thought there would be a simpler way.

<!-- gh-comment-id:1603376990 --> @Gilbertdelyon commented on GitHub (Jun 22, 2023): Thank you, This is what I did in the meantime. It works, but I thought there would be a simpler way.
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#677
No description provided.