Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] change home user on /etc/passwd when clone #592

Closed
mufigilang opened this issue Jan 21, 2023 · 0 comments
Closed

[Suggestion] change home user on /etc/passwd when clone #592

mufigilang opened this issue Jan 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mufigilang
Copy link

Sorry my english quite bad, tried my best to convey my experience

Is your feature request related to a problem? Please describe.
Yesterday, i'm cloning my ubuntu box, it has custom home directory /home/mufi/dev-box. I also set custom home dir for the new box /home/mufi/Boxes/development-box and move all my home files to the new one, including .ssh directory.

After that i tried to clone my repo from github on my new box. It works!!!, but i got this error
Could not create directory '/home/mufi/dev-box/.ssh' (No such file or directory).
Failed to add the host to the list of known hosts (/home/mufi/dev-box/.ssh/known_hosts).

Then i try to create new ssh key, but the prompt suggest me to save it to /home/mufi/dev-box/.ssh/

Curious, i check my $HOME, it point to /home/mufi/Boxes/development-box, so it's correct.
then i check my /etc/passwd with cat /etc/passwd | grep mufi and it output this mufi:x:1000:1000::/home/mufi/dev-box:/bin/bash.
It still point to the old home dir, so i have to changed it manually.

Describe the solution you'd like
it will be cool if home dir on /etc/passwd can be changed when cloning with custom home directory

Describe alternatives you've considered
I don't really know, i'm linux noob.

Additional context
Anyway thanks for creating this, i'm not really well versed on docker so this is a god send. Really help me in big way.

@mufigilang mufigilang added the enhancement New feature or request label Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant