'Not being able to change my cluster to Minikube

What Happened? I wanted to change the cluster in my kubeconfig file, when I ran the minikube update-context it is giving me this error... Exiting due to HOST_KUBECONFIG_UPDATE: write: Error creating directory: /path/to/your: mkdir /path: permission denied

Attach the log file I am not able to get any files after running this command ``minikube logs --file=logs.txt`

ERROR:

-bash: /tmp/minikube_update-context_092fe500482509904744a9cbb77cde3455423584_0.log: Permission denied Exiting due to HOST_KUBECONFIG_UPDATE: write: Error creating directory: /path/to/your: mkdir /path: permission denied



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source