Users – How to Create a File for a New User

users

I'm creating custom build of Ubuntu with some installed packages.
My question is how to put a file on desktop automatically after creating new user? For example something.txt containing some text.

Best Answer

Put the file in directory

/etc/skel/Desktop/ 

in the chrooted version of you custom build. If the directory does not exist yet you need to create it. /etc/skel/ is used to create the "skeleton" for the new users /home/$USER/ directories and content.

Related Question