so I am writing a program in mainly C/C++, though I think this question fits under server fault as it is related to the Linux distro Ubuntu.
So what I am looking for is a way (possibly hackerish-way) to install Ubuntu 12.04 (or later), BUT without setting username/password upon installation. I know, if you have used Windows Server 2008/2012 with Active Directory that you can specify that users are to change/set password upon next boot-up, though I am unsure as to how this could be done in a Linux environment.
Basically what is the goal here; normal installation (Ubuntu)
-> Boot once, tweaking
-> next bootup set username/password
. All but the last part is done by me and the program that I am making, at ease for the users.
Now I have though about perhaps deleting/modifying files such as passwd, though this would not be sufficient. While a bit off-topic I think this part is also relevant, the program basically sets up files/directories with correct permissions and modifies conf files accordingly.
For Ubuntu 12.X++ (actual OS files being served over TFTP/NFS) then the user should be prompted for a username/password
once as if they were doing a clean install of the OS.
Is this at all possible or would I have to set a default username/password and tell users to manually delete/setup their own user/password by themselves? This is what I have done for now, though I would prefer another way to do this.
Other information: this is being done on Ubuntu Server, possibility to chroot
and mount
filesystems to make changes are possible.
Hopefully nobody misunderstood me, I look forward to answers.
-- Dusz