How to resolve error “Authentication is needed to run /bin/cp’ as the super user” error

While editing code in sublime text, I got error. I got away from this error by savin my file by providng the password but it became irritating when I need to provide password everytime saving the file.

Here is the snapshot of the error:


This error is coming because the directory is not owned by the logged in user. to avoid this error simply you need to transfer ownership. Run following command on terminal

sudo chown $USER -R /foldername



Leave a Reply

Your email address will not be published. Required fields are marked *