Question

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.

Was it helpful?

Solution

As root use:

chown yuki:yuki Makefile

to change owner back.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top