We have recently taken ownership of a Linux server, on the server is a site creation script which works but seems to be missing the necessary chmod folder permissions (755?).
I think we need to add a chmod line to the following code so that it applies it to the correct 'newly created' folder
My knowledge of Linux is basic so any help would be appreciated.
echo "Please enter the domain name" read domainname echo "Please enter a username" read username echo "Please enter a password. This will be the FTP password, and MySQL Database password if used" read password echo "Please enter a database name. If empty, one will not be created" read databasename passcrypt=$(perl -e 'print crypt($ARGV, "password")' $password) mkdir /home/$domainname useradd -g webusers -d /home/$domainname -p $passcrypt $username chown $username:webusers /home/$domainname
(i have removed some code towards the end as i suspect it may need to be private)