Failed to save 'go.mod': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser. 1

Failed to save ‘go.mod’: Insufficient permissions. Select ‘Retry as Sudo’ to retry as superuser.

sudo chown -c -R $USER:$USER $HOME

Here is what the above code is Doing:
1. Create a new user
2. Add the user to the sudo group
3. Create a new directory for the user
4. Copy the contents of the root directory to the new user’s directory
5. Change the ownership of the new user’s directory to the new user

Similar Posts