Script in bash wchich creating a new users...

Hi, I am a new on this forum but i like :slight_smile: I need a script in bash which will be crating a new user with folder for websites. For example: I will run this program and he creating a new user(with my name) and folder whcich name like user and if i will localho/~user in browser, she show me files from the folder user. Could read somebody? I have not written anything like this.
Please :slight_smile:

You don't really need a script for this. Put the things you want to be created when a user is created in /etc/skel/, and new users will get it. In this case, I guess you'd want a public_html directory with a .htaccess file containing Options Indexes

Read man useradd for details.