Is it possible / any recommendations on writing a shell script to automate the process of creating a new user/ftp user:
Currently the process:
sudo useradd -d /ftp-files/user-a -m user-a sudo passwd user-a
The issue is that I need to manually enter the passwords when prompted:
Enter new UNIX password: [enter pwd] Retype new UNIX password: [enter pwd-same] passwd: password updated successfully
With lots of accounts to generate this gets very time consuming.. If I could do it all via a script, that would be great.. But is it possible to input passwords on the fly via a bash script?