Tag Info

Hot answers tagged


You can use useradd and chpasswd to automate user creation. e.g. useradd -c "Bob Smith" -m bob echo "bob:mypassword" | chpasswd If you don't want the plain text password to appear in the script, use the --encrypted flag echo "bob:encrypted_mypassword" | chpasswd --encrypted


Depending on what files you want, you can create a new group (/etc/group) and make the file writable (and the directory containing it if you want the user to create new files) by that group (e.g., chgrp <groupname> <file>; chmod g+w <file>

Only top voted, non community-wiki answers of a minimum length are eligible