-3

How do I change the user back to user space instead of root?

I accidentally edit my code as root and then the user name changes from "yuki" to "root". After that, I could not edit my code as "yuki" anymore...

before:

-rw-rw-r--. 1 yuki yuki  5777 Apr 10 14:24 Makefile

after:

-rw-r--r--. 1 root    root     5828 Apr 24 19:42 Makefile

Could someone please help?

Thanks.

1

1 Answer 1

2

As root use:

chown yuki:yuki Makefile

to change owner back.

2
  • Hi Michael, after I used your command, it changes to "-rw-rw-r--. 1 yuki root 5777 Apr 10 14:24 Makefile". How do I change both yukis back? Thanks.
    – Shan
    Apr 30, 2014 at 7:48
  • Use chown yuki:yuki - the last part is the group name Apr 30, 2014 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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