I'd like to install a new linux system using for i.e: liveCD or USB boot.

But at the time of install new system I'd like to change the name home (home in /home/user1) to user (user in /user/user1)

Is there any way? Thanks in advance.

  • What distribution? – roaima Jun 2 '18 at 8:55
  • I try to make it in general but Ubuntu or archlinux would work. Thanks. – Tuyen Pham Jun 2 '18 at 9:32
  • I'm not familiar with Ubuntu but if it create initial user so I think we should avoid it for general purpose. How about archlinux in this case? – Tuyen Pham Jun 2 '18 at 9:47
  • If you do, please elaborate how to change initial user account after installation has completed and then I'll be able to translate it to other platforms. – Tuyen Pham Jun 2 '18 at 11:24

Since you seem not to be familiar with the system you're trying to install, it would be worth discussing this with a colleague who does understand it.

Alternatively use the installation defaults and amend them immediately afterwards. Here is one way to move the initial user's home directory, assuming that the user is called user1:

usermod --home /user/user1 --move-home user1

You can also change the default value for future user accounts:

useradd --defaults --base-dir /user
  • Possible work in step of setting up new user under chroot with archlinux. – Tuyen Pham Jun 3 '18 at 3:03

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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