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

This site uses Akismet to reduce spam. Learn how your comment data is processed.