I'm creating a shell script to automate the creationg of web space on my server.
Basically, the first step is it creates a new user and sets the proper permissions to the user and public_html directories.
I perform the following line
$1 is obviously a parameter. Now, when I try to access the folder via ftp, it recognized the username but password fails. I want to set the password from within the script. Am I doing it wrong?
Thanks in advance.
Basically, the first step is it creates a new user and sets the proper permissions to the user and public_html directories.
I perform the following line
Code:
useradd -G ftp,apache -m -n -p password $1
$1 is obviously a parameter. Now, when I try to access the folder via ftp, it recognized the username but password fails. I want to set the password from within the script. Am I doing it wrong?
Thanks in advance.