leo128
June 12th, 2011, 04:44 PM
hi all!
when installing ubuntu, the installer asks for username/login/password of the first user which will be allowed to sudo and administer the system... let's call that user "ubuntu"
what if I want to:
1) Automate those answers (which preseed variables should I set if any?)
2) Change the default home directory only for that user... let say I want it to be /ubuntu instead of /home/ubuntu (because I want /home/ to be empty after setup).
I know I could tweak /etc/passwd after setup (before first reboot) but I would like to know if there is a "clean way" to do that.
Thank you!
when installing ubuntu, the installer asks for username/login/password of the first user which will be allowed to sudo and administer the system... let's call that user "ubuntu"
what if I want to:
1) Automate those answers (which preseed variables should I set if any?)
2) Change the default home directory only for that user... let say I want it to be /ubuntu instead of /home/ubuntu (because I want /home/ to be empty after setup).
I know I could tweak /etc/passwd after setup (before first reboot) but I would like to know if there is a "clean way" to do that.
Thank you!