I have a set of users I need to add to a new system as part of a BASH script that preps my server. How can I non-interactively add the user, create their home directory, set the group, and enter a default password?
For example, if I needed to add the following users, how would I go about that?
user: node
password: spoon
group: ultraMegaPermissions
user:serve
password: spoot
group: sortaNotMega
user:watcher
password: spoogle
group: notMega
useradd(different thanadduser, but form the same shadow package) handles command line parameters:useradd -p spoon -g ultraMegaPermissions -m node. – manatwork Sep 19 '11 at 14:52