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

Question: is it possible to use login tokens that limit full access to a specific folder ? #1028

Open
softlion opened this issue Feb 6, 2025 · 1 comment

Comments

@softlion
Copy link

softlion commented Feb 6, 2025

Question:
is it possible to use login tokens that limit full access to a specific folder ?

Usage scenario:

  • sync a specific folder on a server (secure, but has a non 0 possiblity of being hacked)
@polmr
Copy link
Collaborator

polmr commented Feb 6, 2025

You can use writable exported folders for that case:

Loged in your account

mega-export -a --writable /path/to/folder

This will print something like:

Exported /path/to/folder: https://mega.nz/folder/PPPPPPPP#SSSSSSSSSSSSSSSSSSSSSS
          AuthToken = PPPPPPPP#SSSSSSSSSSSSSSSSSSSSSS:AAAAAAAAAAAAA

Then, on the server:

login https://mega.nz/folder/PPPPPPPP#SSSSSSSSSSSSSSSSSSSSSS --auth-key=AAAAAAAAAAAAA

You can then create files within that folder. Caveat: some functionality may not be available. e.g: sync.

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