1

I accidently moved root into my home/user folder without really doing anything...I don't quite know how this has happened!! How on earth can this happen with the permissions on root?? I've now been locked out of root.

I have user access which is good.

However - I'm not sure how I can move the root directory back to / ?? Tried moving it with FileZilla but to no avail.

Here is my directory structure:

enter image description here

closed as off-topic by Kusalananda, roaima, Jeff Schaller, G-Man, slm Jul 27 '18 at 17:28

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, roaima, Jeff Schaller, slm
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Wow, this is quite odd! Are you sure you cannot move root back with the command line and sudo? – Stan Strum Nov 4 '17 at 23:54
  • Hi Stan - I don't even remember moving root! Crazy - no I haven't tried with sudo - how could I do that from within "user" – GCien Nov 5 '17 at 0:00
  • 4
    Do you have command line access? If so, use sudo to elevate your access and it depends but I’d guess you’d use sudo mv /home/whatever/root / – Stan Strum Nov 5 '17 at 0:01
  • This worked - was really worried about doing it to be honest! How on earth did I move it? Never mind :) – GCien Nov 5 '17 at 0:07
  • Great, have a nice day – Stan Strum Nov 5 '17 at 0:08