Skip to content Skip to sidebar Skip to footer

Superuser And Moving Files

I'm trying to move a XML file from my apps private directory to another apps private dir. It asks me for superuser properly, I grant him the rights but he doesn't move the file. fi

Solution 1:

You're executing two independent commands:

  • su starting a root shell (which you subsequently ignore)
  • mv ran as you, which is deemed to fail

What you need is a single command like

sudo mv src dst

Be careful when working as root.

Post a Comment for "Superuser And Moving Files"