Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 use Terminal a lot. And just recently noticed this line popping in right after I stop being root (after i type exit).

/bin/rm: cannot remove `/run/user/root/gvfs': Is a directory

Why/What is this stand from?

enter image description here

Does this affect somehow my system's functionality (as I didn't noticed)?

  • If so, How can I fix this?
share|improve this question
Possibly duplicate of rm: cannot remove `/run/user/root/gvfs': Is a directory – meskobalazs Jul 24 '13 at 18:25
In my case is /bin/rm:... instead of rm:.... Not sure if this is a big difference, but this is exactly why I couldn't see this post from the search engine... – Gediminas Jeremiah Gudelis Jul 24 '13 at 18:31
it is the same, /bin is in the PATH :) – meskobalazs Jul 24 '13 at 18:33
I understood that the same problem, even the solution is the same. But I just could not find it, as nor Head nor Body have this PATH. AskUbuntu (google as well I assume) search engine did not give me any results... Sorry for the duplicate. Should I delete this question and improve the other (older) one? – Gediminas Jeremiah Gudelis Jul 24 '13 at 18:42
up vote 3 down vote accepted

According to this Launchapad bug report you should run

umount /run/user/root/gvfs

before exiting.

share|improve this answer
Do I have to run this every time before exiting terminal? – Gediminas Jeremiah Gudelis Jul 24 '13 at 18:33
Well, hopefully no – meskobalazs Jul 24 '13 at 18:34
Nope, It worked for many times since once typed this in... Thank you. – Gediminas Jeremiah Gudelis Jul 24 '13 at 18:44

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.