I am currently working on a .NET Core project on macOS where I need to
mount an encrypted VeraCrypt volume via the command-line interface (CLI).
At the moment, I am using osascript to execute the VeraCrypt CLI commands
for mounting and unmounting the volume. However, I am encountering an issue
where macOS prompts for the administrator password every time the volume is
mounted or unmounted. During a single application session, this prompt
appears multiple times, which is quite inconvenient and negatively affects
the user experience.
I would like to ask if there is any way to mount and unmount a VeraCrypt
volume on macOS without displaying the administrator password dialog each
time.
For example:
-
Is there a recommended configuration or permission setting to avoid
repeated admin prompts?
-
Is it possible to run VeraCrypt CLI with elevated privileges in a more
persistent or seamless way?
-
Are there any best practices for handling this scenario programmatically
on macOS?
Any guidance or suggestions would be greatly appreciated.
Hello,
I am currently working on a .NET Core project on macOS where I need to
mount an encrypted VeraCrypt volume via the command-line interface (CLI).
At the moment, I am using osascript to execute the VeraCrypt CLI commands
for mounting and unmounting the volume. However, I am encountering an issue
where macOS prompts for the administrator password every time the volume is
mounted or unmounted. During a single application session, this prompt
appears multiple times, which is quite inconvenient and negatively affects
the user experience.
I would like to ask if there is any way to mount and unmount a VeraCrypt
volume on macOS without displaying the administrator password dialog each
time.
For example:
-
Is there a recommended configuration or permission setting to avoid
repeated admin prompts?
-
Is it possible to run VeraCrypt CLI with elevated privileges in a more
persistent or seamless way?
-
Are there any best practices for handling this scenario programmatically
on macOS?
Any guidance or suggestions would be greatly appreciated.
Thank you very much for your time and support.