Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 am trying to delete a file created with a SELECT ... INTO OUTFILE statement into the /tmp directory

The file belongs to the mysql user (who doesn't have a login shell).

I have administrative privileges on the database (i.e. I can login into mysql as the root user), but I don't have the root password of the machine onto which the service runs.

Is there a way to delete the file myself, or do I need to relay the task to the administrator of that machine each time?



share|improve this question
up vote 1 down vote accepted

If your system user doesn't own the file in tmp or is at least member of the same group as the file belongs to, you can't delete, edit or move it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.