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

Suggestion: UNauthenticated dirs #39

Open
fimmspin opened this issue May 6, 2024 · 2 comments
Open

Suggestion: UNauthenticated dirs #39

fimmspin opened this issue May 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@fimmspin
Copy link

fimmspin commented May 6, 2024

I have enabled global authentication on / for security.
But I need to add some UNauthenticated dirs like for /public dir
How is it possible?
A setting like --unauth dir1#dir2#dir3 could be nice to override auth requirement :)

@marjune163
Copy link
Collaborator

marjune163 commented May 6, 2024

Then that will be too many negative options like --no-mkdir, --no-upload, etc. I thought about this problem before, but to keep the program simple, I didn't implement all the negative control features.

Is the possible to create 2 alias? One for authenticated user and one for guests?

ghfs --empty-root \
  --alias :/confidential:/fs/path/that/require/auth-access \
  --alias :/public:/fs/path/to/public-access \
  --auth /confidential \
  --user username:password

@fimmspin
Copy link
Author

fimmspin commented May 6, 2024

It may be a solution using aliases. thanks!

Another possibility could be (without requiring negative rules you want to avoid): to define an hardcoded 'noauthusr' (noauth, - or the symbol you prefer, so like a 'user' not needing for any auth and not asking for auth in that folder) and then permit it in a rule like this:

--auth-user #/#user1#user2 #/pub#noauthusr #/user3#user3

@marjune163 marjune163 added the enhancement New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants