Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • After running the greps on the /etc/passwd and /etc/group I realized the userid and gids for Ubuntu's daniel and the debian's first user are the same(1000), the debian's daniel is 1001. Is there a way to change an user's name safely so they can use the same home directory or the only solution is changing the user ids in both installations? Commented Nov 16, 2017 at 22:15
  • @Zeor137 Renaming and moving the home of an user is done by usermod -m -d "/home/new_home" -l new_login old_login. The modified account must not be in use. For this case, you should boot debian's rescue shell, remove daniel userdel daniel, rename your first account to daniel, and merge manually both homes. Commented Dec 25, 2017 at 23:52
  • @basile You made an annoying mistake ! You meant chmod o= /home/daniel not chmod -R a-rx /home/daniel . Commented Dec 25, 2017 at 23:57