reseller's username

Thanks, I've just added the lines:
Code:
                #the dovecot passwd file uses the same format as the ftp.passwd file.
                ftp_pass_swap $1 $2 /etc/virtual/$i/passwd
to the email_swap() function. I then moved ftp_pass_swap above email_swap so that it would work.

John

John, thank you.

Just one more little "bugfix": it also doesn't update sshd_config regarding SSH access ("AllowUsers oldusername" -> "AllowUsers newusername").
 
Thanks.
I've added:
Code:
        #update sshd_config if user exists:
        TEMP="/usr/bin/perl -pi -e 's/AllowUsers ${1}\$/AllowUsers ${2}/' /etc/ssh/sshd_config"
        eval $TEMP;
to the bottom of the system_swap() function.

John
 
Back
Top