Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to copy files in /var/lib/mysql/database/* yo another dir with admin user. File in /var/lib/mysql/database has 660 mysql:mysql

I already add admin user to mysql group, but it didn't work.

share|improve this question

Copy the files using root:

sudo cp -r /var/lib/mysql/database/ /path/to/destination/here/

root is the only real admin user, all of the other "admin" users on a system just have permission to pretend to be root, but aren't actually admins themselves.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .